[web2py:18699] Re: A couple of Oracle problems

2009-03-28 Thread SergeyPo
Sorry I was typing by memory; there is no syntax error in real code, database is created in reality. Only with those problems I described. On Mar 28, 5:32 am, mdipierro wrote: > > db.define_table('headers',...) > > > db.define_table('details', > >   SQLFIELD('header_id', 'header') > > ) > > shou

[web2py:18700] Can't display certain fields, and baffled as to why... And one other little question...

2009-03-28 Thread Jason Brower
It gives me an: AttributeError: 'str' object has no attribute 'nickname' on this line... response.write(person.nickname) but that all looks great... What the heck am I missing here... Second thing is the conditional I use in the view... I have "if (users):", is that the best way to check if there

[web2py:18701] Re: Can't display certain fields, and baffled as to why... And one other little question...

2009-03-28 Thread Vidul Petrov
Hi Jason, tags = db().select(db.tag.ALL,orderby=db.tag.name) users = db().select(db.users.ALL,orderby=db.users.nickname) tags = db.tag users = db.users should be: tags = db().select(db.tag.ALL,orderby=db.tag.name) users = db().select(db.users.ALL,orderby=db.users.nicknam

[web2py:18703] Re: Pycon 2009 - Important

2009-03-28 Thread TheDude
Let us know how it goes! :) Will there be a summary follow up? :D On Mar 28, 9:27 am, mdipierro wrote: > See you at the web2py booth after Guido's talk today. (free hats) > > Please attend the web2py Dojo tonight at 6pm in the Open Space. > > Massimo > > On Mar 28, 12:00 am, Steve Shepherd wrot

[web2py:18702] Re: Pycon 2009 - Important

2009-03-28 Thread mdipierro
See you at the web2py booth after Guido's talk today. (free hats) Please attend the web2py Dojo tonight at 6pm in the Open Space. Massimo On Mar 28, 12:00 am, Steve Shepherd wrote: > Hey you guys you need to setup a WebCam on the Stand so all of us guys that > are stuck around the world can tu

[web2py:18704] one2many field does not work on 1.59

2009-03-28 Thread Kacper Krupa
Hello, I wrote small gallery script, and i'm using one to many relationship. Here is the code: http://paste.pagenoare.net/default/show/62 It worked 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 web2

[web2py:18705] Re: Using command line -i and -p with -t

2009-03-28 Thread LordMax
HI On 27 Mar, 09:43, Iceberg wrote: > Hi Massimo, > > Now I want to do the same thing but this time let web2py (windows > distribution) stay on SysTray, so I do: >   web2py -i 0.0.0.0 -p 80 -a blah -t > web2py can start, BUT still using default 127.0.0.1 and port 8000. Not > what I want. To me

[web2py:18706] Re: Using command line -i and -p with -t

2009-03-28 Thread Iceberg
On Mar28, 11:25pm, LordMax wrote: > > On 27 Mar, 09:43, Iceberg wrote: > > > Hi Massimo, > > > Now I want to do the same thing but this time let web2py (windows > > distribution) stay on SysTray, so I do: > >   web2py -i 0.0.0.0 -p 80 -a blah -t > > web2py can start, BUT still using default 127.

[web2py:18707] Re: one2many field does not work on 1.59

2009-03-28 Thread mdipierro
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 wrote: > Hello, > > I wr

[web2py:18708] Re: one2many field does not work on 1.59

2009-03-28 Thread Kacper Krupa
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 wrote: > I see at least one typo: > > db.define_table('gallery', >     SQLField('n

[web2py:18709] Re: one2many field does not work on 1.59

2009-03-28 Thread mdipierro
It is not better. It is different. It allows many2many without doing a JOIN and that means it works on the Google App Engine without overhead. Massimo On Mar 28, 3:08 pm, Kacper Krupa wrote: > Yay, thanks i didn't know that is so simply. > > I've also next question - the field with ids (id|id|i

[web2py:18710] Re: one2many field does not work on 1.59

2009-03-28 Thread Kacper Krupa
OK, thanks for fast reply! On Mar 28, 9:13 pm, mdipierro wrote: > It is not better. It is different. It allows many2many without doing a > JOIN and that means it works on the Google App Engine without > overhead. > > Massimo > > On Mar 28, 3:08 pm, Kacper Krupa wrote: > > > Yay, thanks i didn't

[web2py:18711] Retrieve JSON message send to Server

2009-03-28 Thread Yannick
Hello mate, I have a question I don't know how to retrieve a JSON message sent to the Action from the client: # Here is a sample of my View: . . function Save() { var data = $.toJSON( # I convert JSON object to simple text here));

[web2py:18712] web2py and ruby together

2009-03-28 Thread weheh
I'm working in web2py with a team using ruby. I want to get our two apps to interact smoothly. Our apps share a user table in common. The user table is defined in the ruby app. I would like to use the auth routines, but I'm not sure I know how I would do it under these circumstances. In the absen

[web2py:18713] Re: Retrieve JSON message send to Server

2009-03-28 Thread Fran
On Mar 28, 9:38 pm, Yannick wrote: > URL(r=request,c='static/js',f='jquery-1.3.2.js') Should this not be: URL(r=request,c='static',f='js',args=['jquery-1.3.2.js']) F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:18714] Re: Retrieve JSON message send to Server

2009-03-28 Thread Yannick
No... Like i said there is no problem from the client side... I use this: URL(r=request,c='static/js',f='jquery-1.3.2.js') to import the Javascript which is on the directory 'static/js'... I'm not sending any argument to action. Thanks Fran for the note! Does anyone has any idea from my initial p

[web2py:18715] Re: Retrieve JSON message send to Server

2009-03-28 Thread DenesL
On Mar 28, 3:38 pm, Yannick wrote: > Hello mate, > I have a question I don't know how to retrieve a JSON message sent to > the Action from the client: > > # Here is a sample of my View: > > type="text/javascript"> > . > . > function Save() { > >                         var data =

[web2py:18716] Re: web2py and ruby together

2009-03-28 Thread weheh
Sorry for being long-winded above. The questions, simply stated: 1) How does one get web2py to point to and run directly off an existing db made and updated by a Ruby app? 2) How does one get a web2py app to share authentication and session information with a Ruby app? I imagine no magic is need

[web2py:18717] Re: web2py and ruby together

2009-03-28 Thread Vidul Petrov
Hi weheh , 1) You should "initialize" (in the term of Ruby) a SQLTable object with "migrate" flag set to False (see db.define_table), thus WEB2PY will assume that you already has this table and will use it without trying to create it. 2) All WEB2PY needs in order to store the sessions data in a d

[web2py:18718] Re: web2py and ruby together

2009-03-28 Thread weheh
Thanks, Vidul. Do I need to store the session data in the db? Why can't I just keep it session based? --~--~-~--~~~---~--~~ 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:18719] Re: web2py and ruby together

2009-03-28 Thread Vidul Petrov
The db storage of the sessions data is optional. By default it is stored in "app_name/sessions" directory. On Mar 29, 8:04 am, weheh wrote: > Thanks, Vidul. Do I need to store the session data in the db? Why > can't I just keep it session based? --~--~-~--~~~---~--~--

[web2py:18720] Including files?

2009-03-28 Thread Michael
Hey guys, I am trying build a small model file that includes a master.css, and replaces css variables. for instance, $site_font_face = font-family: georgia; So in web2py, i wanted to create a model to read in master.css, iterate through the file for $_vars. My questions are, How to i im

[web2py:18721] Re: jyte vote

2009-03-28 Thread Michael
I put that up! :) I am in love with web2py! I've been a web designer for years, always wanting to develop app ideas etc. I just never found the time to learn php, or sql, etc. Once all these new frameworks popped out, i spend tons of time trying to learn RoR, AppJet, etc. And got nowhere too fast