Per request internal variables

2007-07-06 Thread PoBK
I've got a case for passing an object between various components within my framework. The basic concept is similar to the way Mod_Python does things, where I can add an attribute to the request instance and that attribute will persist accross the current request only, irrespective of which handle

Request member availability in model managers or models

2006-09-25 Thread PoBK
Hi, I've just spent the last few hours looking around Django site, and google and the mailing lists for any hints on the following problem. I need to implement functionality similar to that of the django.contrib.sites module, the difference being that value of what would be the SITE_ID setting,

Re: UrlRegistry

2006-10-23 Thread PoBK
> urlregistry.py > 1KDownload Ignore the attachment... it's old, and wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Re: UrlRegistry

2006-10-23 Thread PoBK
On Oct 23, 8:01 pm, "Richard Smith" <[EMAIL PROTECTED]> wrote: > Hello people, I've managed to get it working from command line: # python Python 2.4.3 (#2, Apr 27 2006, 14:43:58) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information

Re: UrlRegistry

2006-10-23 Thread PoBK
On Oct 23, 10:52 pm, "PoBK" <[EMAIL PROTECTED]> wrote: Blah, never mind. Managed to boil it down and get it working... here's the code if anyone's interested: ### code: from mod_python import apache import sys class UrlRegistry(object): def __init__(sel

Template tags and contexts

2006-11-13 Thread PoBK
Umm guys, I think I'm being a bit dense this evening... I'm attempting to build set of template tags for some widget framework. The current way it works is: {% use_widget [pythonic path to widget] [args if required]%} tag loads a module/class. The class does it's magic, and and sets a load of

Re: Template tags and contexts

2006-12-14 Thread PoBK
On Nov 13, 9:31 pm, "PoBK" <[EMAIL PROTECTED]> wrote: > Umm guys, > > I think I'm being a bit dense this evening... > > I'm attempting to build set of template tags for some widget framework. > > The current way it works is: > > {% use_widg

Re: Template tags and contexts

2007-01-16 Thread PoBK
On Dec 15 2006, 1:55 am, limodou <[EMAIL PROTECTED]> wrote: You can run your code outside of the block tag, so the block tag will not push your context into the stack. I changed the entire thing... looked at it from another angle, which allowed me to do what I want to do. --~--~-~--~