Not sure I understand what is status enumeration. Any constant defined in models will be visible in controllers
On Jan 11, 4:53 pm, "KONTRA, Gergely" <pihent...@gmail.com> wrote: > Hmm, seems to be not a good idea to write more topics in one > message... Anybody on the enumeration part? > +-[ Gergely Kontra <pihent...@gmail.com> ]------------------+ > | | > | Mobile:(+36 20)356 9656 | > | | > +- "Olyan lángész vagyok, hogy poroltóval kellene járnom!" -+ > > On Mon, Jan 11, 2010 at 13:13, KONTRA, Gergely <pihent...@gmail.com> wrote: > > Hi! > > I have a status "enumeration" for a status in one of my tables. I'd > > like to store it, as an integer, and access it with constants. Where > > should I define these constants (I guess I should in db.py), and how > > can I access them in the controller? > > [...]
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.