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
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
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
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
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
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
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
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.
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
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
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
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
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));
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
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
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
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 =
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
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
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
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?
--~--~-~--~~~---~--~--
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
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
23 matches
Mail list logo