http://bazaar.launchpad.net/~mdipierro/web2py-wiki/trunk/annotate/head%3A/models/db.py
change the following:

db.define_table('page',
   db.Field('uuid',length=128,writable=False,default=str(uuid.uuid4
())),
   db.Field('title'),
   db.Field('menu',length=128),
   db.Field('public','boolean',default=False),
   db.Field('active','boolean',default=True),
   db.Field('body','text'),
   db.Field('tags','text'),
   db.Field('created_by',db.auth_user,default=who,writable=False),
   db.Field('created_on','datetime',default=now,writable=False))

into:
db.define_table('page',
   db.Field('uuid',length=128,writable=False,default=str(uuid.uuid4
())),
   db.Field('title'),
   db.Field('menu',length=128),
   db.Field('public','boolean',default=False),
   db.Field('active','boolean',default=True),
   db.Field('body','text'),
   db.Field('tags','text'),
   db.Field('category','string'),  # one page can only be in one
category (like a folder) but have more than one tag. prepopulate with
predefined categories!!!
   db.Field('created_by',db.auth_user,default=who,writable=False),
   db.Field('created_on','datetime',default=now,writable=False))

What do you think?


On 5 Mai, 08:58, Tim Michelsen <timmichel...@gmx-topmail.de> wrote:
> > The question of what is appropriate to add, what needs updating, what is
> > out of date, what belongs grouped together...
>
> I tried to use the tags for this. but some pages have multiple tag
> entries...
> Well, why not have tags and categories? a category should be singular
> and can then server as grouping item?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to