Hello. The example starts on page 72(scribd page number. Its page 56 in the documentation). The following page contains the db.py example.
I thought I have to replace the existing content. That was my fault. Thx a lot. On 2 Jan., 22:52, mdipierro <[email protected]> wrote: > Hi, > > just to make sure I understand. Can you point me to the image blog > example? > > When you edited db.py did you append the content or did you replace > it? > You are supposed to append it since db.py defines auth. > > On Jan 2, 3:49 pm, joscha <[email protected]> wrote: > > > Hello, > > > I am new to web2py. I am trying to follow the documentation, but I > > cannot get the image blog example to work. I copied the lines into the > > db.py. If I select the database administration, I get the following > > traceback: > > > Traceback (most recent call last): > > File "C:\Users\sharky\Documents\_MEINE.DATEN\Programmierung\eclipse > > \web2py\gluon\restricted.py", line 173, in restricted > > exec ccode in environment > > File "C:/Users/sharky/Documents/_MEINE.DATEN/Programmierung/eclipse/ > > web2py/applications/images/views/appadmin.html", line 44, in <module> > > <p>{{=T('The "query" is a condition like "db.table1.field1==\'value > > \'". Something like "db.table1.field1==db.table2.field2" results in a > > SQL JOIN.')}}<br/> > >NameError: name 'auth' is not defined > > > The line 44 contains: > > if not auth.user: > > > I tried the windows version, the current hg clone and the source > > version of web2py. It is always the same. What is my fault ? > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

