Re: Extend URL resolver support for HTTP Methods / REST support

2006-09-22 Thread Slowness Chen
Since you can judge request method in view, dispatching the same url with different methods to proper views isn't a problem. I did similar dispatching in  http://mashup.googlecode.com/svn/trunk/mashup/views.py.     - Original Message - From: Simon de Haan To: django-develop

Re: allow simple_tag to set context?

2006-08-30 Thread Slowness Chen
I've attached my patch with the ticket. After patching both of the following work: # return a string , as before @register.simple_tag def func(...): ... return 'a string' # return a dict, items of the dict will be set to context @register.simple_tag def func(...): ... return

Re: allow simple_tag to set context?

2006-08-29 Thread Slowness Chen
Done. Ticket #2619 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EM

allow simple_tag to set context?

2006-08-28 Thread Slowness Chen
simple_tag and inclusion_tag make writing simple template tags much more convenient. As the document says, "Another common type of template tag is the type that displays some data by rendering another template", e.g. {% for choice in choices %} {{ choice }} {% endfor %} But if there a

some document bugs

2006-05-05 Thread slowness
Model reference -> Model methods: methods ' indent is at the same level of class. Model reference -> Modifying initial Manager QuerySets: Model reference -> AutoField Model reference -> Using models Model reference -> The field_options dictionary can have the following keys "System Mess