GAE - facilityAddress = db.PostalAddressProperty(required=True)

2009-03-22 Thread nwalt...@sprynet.com

Using GoogleAppEngine:

I have a field defined in my model:
facilityAddress = db.PostalAddressProperty(required=True)

How should this be treated on a Django form?  It currently seems to
behave just like any other db.StringProperty.  I can enter "abc" for
the value, click the save button, and no errors or complaints about
the field.


Here are my related imports just to clarify:

from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.db import djangoforms
#from django import newforms as forms

import django
from django import http
from django import shortcuts
from django import newforms as forms

Thanks,
Neal Walters


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: urlize

2009-03-22 Thread nwalt...@sprynet.com

Can you point me to an example of how to write my own template
filter?
Where would I find the code for the existing urlize filter?  I'm new
to Django - and don't know all the class structures yet.

In my case, I want to add the phrase "target='_blank'" to the
urlizetrunc filter.
This isn't already available and I'm missing it?

Thanks,
Neal Walters

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---