Yay, thanks i didn't know that is so simply.
I've also next question - the field with ids (id|id|id etc) is better than another table which stores relations? Why / Why not? Thanks. On Mar 28, 8:40 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > I see at least one typo: > > db.define_table('gallery', > SQLField('name', 'string'), > SQLField('images', 'string', db.image), > ) > > should be > > db.define_table('gallery', > SQLField('name', 'string'), > SQLField('images', 'string'), > ) > > On Mar 28, 9:28 am, Kacper Krupa <pageno...@gmail.com> wrote: > > > Hello, > > > I wrote small gallery script, and i'm using one to many relationship. > > Here is the code:http://paste.pagenoare.net/default/show/62Itworked > > on 1.58 but on the newset (1.59) not. What is wrong? I still get > > ValueError: invalid literal for int() with base 10: '|1|2|' error. I > > seams that web2py trying add string into int field, on 58 i change > > type to string and it worked (as you can see on the code above). > > > Thanks for any advices. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---