Questions tagged [repoze.bfg]

9 questions
4
votes
2 answers

When PersistentDict, when Folder?

When should I use a PersistentDict, and when should I use a Folder? What is the difference between them in terms of updates, internal structure, performance, etc?
Claudiu
  • 224,032
  • 165
  • 485
  • 680
2
votes
1 answer

How do I make Varnish to stop caching ESI fragments

I am having problem using ESI with Varnish 3.0 with a repoze.bfg project successfully. I have an ESI fragment that displays a notice for logged in users, included via an ESI tag. However, varnish caches the included ESI fragment, so changes made to…
Dami
  • 920
  • 6
  • 12
1
vote
1 answer

Change the view prefix in pyramid traversal from "@@" to "+"

I am looking at moving a web app from pylons to pyramid (formally repoze.bfg) because traversal will fit my app much better than url dispatch. Currently, when I have a obj with a number of views, I have the view names prefixed with a '+' in the url.…
Gary van der Merwe
  • 9,134
  • 3
  • 49
  • 80
1
vote
0 answers

pyramid_mailer send_to_queue()

So I have configured my pyramid application to send all mails to a mailqueue, this was no problem. I created the maildir as such: mkdir -p /home/luke/Maildir/{cur,new,tmp} Now, I send my mail to the queue, and check the contents…
crooksey
  • 8,521
  • 6
  • 30
  • 52
1
vote
1 answer

python: is it possible to detect whether I am in the paster shell?

I'm using Python + ZOPE/ZODB/Repoze BFG (the acronyms all get quite confusing) + paster. I have a paster shell that I can run by doing: paster --plugin repoze.bfg bfgshell site.ini zodb Everything works fine. However, I have a bunch of monitoring…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
0
votes
2 answers

configuring repoze.bfg to use utf-8 encoding

I'm using repoze.bfg v1.3 and chameleon v2 (zpt templates). I got troubles with encoding while rendering template: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128) How can i configure repoze.bfg to…
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78
0
votes
1 answer

how to get object batchwise(pagination) in ZODB

my zodb having some objects of user class. user objects are indexed using location attribute. all user obj are indexed with his location. if i searched user with some location will get near about 50 users. want to apply pagination. for first time…
Shrinivas Mese
  • 69
  • 1
  • 1
  • 8
0
votes
1 answer

How do I plug a new templating language into repoze.bfg?

What do I need to implement to add a new templating language to repoze.bfg? Will the framework send my plugin absolute paths or package relative paths, or both depending?
joeforker
  • 40,459
  • 37
  • 151
  • 246
0
votes
1 answer

How should I perform cleanup at the end of a repoze.bfg response?

Example code for the repoze.bfg web framework performs post-response cleanup by adding a __del__ method to an object attached to the request's environ. Is there a better way to clean up database connections, etc. after the response has been…
joeforker
  • 40,459
  • 37
  • 151
  • 246