List Info

Thread: can i extend manipulators?




can i extend manipulators?
user name
2006-02-16 05:31:52
Hiya. I have a largeish form, and I want to add customised
choices and
validation for one field. I can only seem to find doc
references to
creating a whole new manipulator, and I'd rather not have
to re-define
every field in the form.
Is there a way I can extend the standard manipulators to do
so?
(And have I missed something quite obvious?)
Please be gentle with me.... ;)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

comments broken in magic-removal?
user name
2006-02-18 21:01:11
I'm trying to use the contrib.comments in the magic-removal
branch.  
Is this broken?

TemplateSyntaxError at /
'comments' is not a valid tag library: Could not load
template  
library from django.templatetags.comments, No module named
template

Request Method:
GET
Request URL:
http://127.0.0.1:8000/
Exception Type:
TemplateSyntaxError
Exception Value:
'comments' is not a valid tag library: Could not load
template  
library from django.templatetags.comments, No module named
template
Exception Location:
/Users/me/django-src/magic-removal/django/template/defaultta
gs.py in  
load, line 651


10
                   <div
class="excuse-left">
11
                       {{ forloop.counter }}
12
                   </div>
13
                   <div
class="excuse-right">
14
                       {{ excuse.excuse }}
15
                   </div>
16
                   <div
class="clearfix"></div>
17
              </div>
18
          {% endfor %}
19

--->>> ERROR HERE 20
          {% load comments %}
21
          {% get_free_comment_list for excuses23.excuses
topic.id as  
comment_list %}
22

23
          <div id="subcontent">
24
              {% for comment in comment_list %}
25
              <div class="comment"
id="c{{ comment.id }}">
26
                   {{ comment.person_name }}
27
                   {{ comment.comment }}
28
              </div>
29

30
              <div id="commentform">


Or did i do something wrong?


---
Andrew Gwozdziewycz
apgwozgmail.com
http://ihadagreatview.org
http://and.rovir.us



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )