[web2py:27412] Re: invalid table name: auth_user

2009-07-25 Thread leo
Massimo ,thanks for your help, It's all fine!!! On Jul 25, 10:24 pm, mdipierro wrote: > A minor problem: > > auth.define_tables() # creates all needed tables > > should go after > > auth_table= db.define_table(auth.settings.table_user_name, ) > > Massimo > > On Jul 25, 9:04 am,

[web2py:27410] Re: override default application

2009-07-25 Thread Bottiger
Well I would say that if you started customizing, you would be using routes.py anyway. On Jul 25, 10:21 pm, Jonathan Lundell wrote: > The default application logic right now is: init if present, otherwise   > welcome. > > Would it not be useful to be able to specify a default application   > fro

[web2py:27411] Re: override default application

2009-07-25 Thread Yarko Tymciurak
You can do this by linking your application to /applications/init/ On Sun, Jul 26, 2009 at 12:21 AM, Jonathan Lundell wrote: > > The default application logic right now is: init if present, otherwise > welcome. > > Would it not be useful to be able to specify a default application > from the com

[web2py:27409] override default application

2009-07-25 Thread Jonathan Lundell
The default application logic right now is: init if present, otherwise welcome. Would it not be useful to be able to specify a default application from the command line? web2py --app myapplication ... ...with new logic: use --app specification if present else use init if pre

[web2py:27408] Re: Beijing University anybody?

2009-07-25 Thread Yarko Tymciurak
...but thanks for all the feedback, comments... interesting in-and-of itself... On Sat, Jul 25, 2009 at 10:46 PM, Yarko Tymciurak wrote: > well, the attempt at being of useful service ("Hey - tell them something on > their site isn't quite right") apparently fell on deaf ears too > > The hu

[web2py:27407] Re: Beijing University anybody?

2009-07-25 Thread Yarko Tymciurak
well, the attempt at being of useful service ("Hey - tell them something on their site isn't quite right") apparently fell on deaf ears too The humor was really more aimed at Massimo (who I expected to smile; Oh, well...) On Sat, Jul 25, 2009 at 10:40 PM, weheh wrote: > > Yarko - I've lived

[web2py:27406] Re: Beijing University anybody?

2009-07-25 Thread weheh
Yarko - I've lived in many different places and countries and I've found it virtually impossible to devise cross-cultural humor that works. For what it's worth, I got it. ;^) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[web2py:27405] Re: Beijing University anybody?

2009-07-25 Thread Yarko Tymciurak
To Iceberg: Thanks for the clarification; I was just pointing out _something_ (js, whatever) not right... The suggestion of web2py intro was just a little light humor clearly missed its mark! - Yarko On Sat, Jul 25, 2009 at 10:00 PM, Iceberg wrote: > > To Yarko: By default the Lakeview

[web2py:27404] Re: Bugs in tools.py

2009-07-25 Thread mdipierro
It should be @service.amfrpc3('somedomain') is this what you are using? Massimo On Jul 25, 12:04 pm, Miguel Lopes wrote: > A little typo! > Should be "isinstance" > > Traceback (most recent call last): >   ... >     @service.amfrpc3 >   File "/Applications/web2py/gluon/tools.py", line 2128,

[web2py:27403] Re: Beijing University anybody?

2009-07-25 Thread mdipierro
This is off topic. I am not selling development services. I am here for a conference. I will be happy to meet web2py users if in the area. Massimo On Jul 25, 10:00 pm, Iceberg wrote: > To Yarko: By default the Lakeview Hotel homepage is already shown in > Chinese. The button you mentioned is J

[web2py:27402] Re: Beijing University anybody?

2009-07-25 Thread Iceberg
To Yarko: By default the Lakeview Hotel homepage is already shown in Chinese. The button you mentioned is Japanese. But anyway what is the point? If your purpose is to meet somebody in the hotel who is in charge of the IT department, perhaps you can just ring to front desk and ask. Even so I doubt

[web2py:27401] Re: GAE upload from appadmin (site)

2009-07-25 Thread Yarko Tymciurak
If you look at applications/admin/models/0.py, you will see the last line: # To upload on google app engine this has to point to the proper # appengine config file GAE_APPCFG = '/Applications/GoogleAppEngineLauncher.app/. http://code.google.com/appengine/docs/python/gettingstarted/uploading.h

[web2py:27400] Re: GAE upload from appadmin (site)

2009-07-25 Thread mdipierro
I just mean it needs to be tested more. On Jul 25, 5:53 pm, Tim Michelsen wrote: > mdipierro schrieb:> I assume you have configured admin/models/0.py and > (before hit deply) > > You have checked some app to deply. > > > The interface you are using is experimental. If you still have > > problem

[web2py:27399] Re: OpenID for Web2Py

2009-07-25 Thread mdipierro
fantastic! On Jul 25, 1:06 pm, hcvst wrote: > Hi, > > Here is a sample openid provider: > > http://w2popenid.appspot.com/oidprovider > > The Web2pyStore class implements the OpenIDStore interface. It is used > to > store associations and nonces in the DB as the opend id library only > offers > i

[web2py:27398] Re: error messages in Auth.change_password

2009-07-25 Thread mdipierro
thank you On Jul 25, 10:47 am, "Sebastian E. Ovide" wrote: > eccolo > > > > On Sat, Jul 25, 2009 at 3:42 PM, mdipierro wrote: > > > Can you please email it to me? > > > Massimo > > > On Jul 19, 2:14 pm, "Sebastian E. Ovide" > > wrote: > > > just in case it could be useful: > > > > Index: tools

[web2py:27397] Re: GAE upload from appadmin (site)

2009-07-25 Thread Tim Michelsen
mdipierro schrieb: > I assume you have configured admin/models/0.py and (before hit deply) > You have checked some app to deply. > > The interface you are using is experimental. If you still have > problems use the google Launcher of shell scripts. sorry, I don't understand. do you mean that thi

[web2py:27396] auth login on GAE.

2009-07-25 Thread Victor
Hello Everyone, I have a google apps account, and I just wanted to know if anyone has implemented auth.login() over HTTPS , and how it was carried out. For example, if I show visitors the custom domain name, this means they can't use the https protocol over the appspot domain name (Same Origin

[web2py:27395] Re: interesting :)

2009-07-25 Thread Horst Herb
On Fri, Jul 24, 2009 at 7:20 PM, Oleg wrote: > > http://visitmix.com/labs/gestalt/ nice concept, but utterly useless for real world web apps 1) requires MS Silverlight on the *end user* side - which already excludes a large number of platforms 2) designed to run poorly or not at all in Firfefox

[web2py:27394] Re: OpenID for Web2Py

2009-07-25 Thread hcvst
Hi, Here is a sample openid provider: http://w2popenid.appspot.com/oidprovider The Web2pyStore class implements the OpenIDStore interface. It is used to store associations and nonces in the DB as the opend id library only offers implementations to store this data in the filesystem or memory, wh

[web2py:27393] Re: Beijing University anybody?

2009-07-25 Thread Yarko Tymciurak
Maybe you could help the Lakeview Hotel, introduce them to web2py? Try this: - Follow link below; - Select "English" - Select Chinese (I'm guessing the middle button next to English is 'simplified" Chinese) Hover over menu items, etc. On Sat, Jul 25, 2009 at 9:29 AM, mdipierro wrote: > > I

[web2py:27392] Bugs in tools.py

2009-07-25 Thread Miguel Lopes
A little typo! Should be "isinstance" Traceback (most recent call last): ... @service.amfrpc3 File "/Applications/web2py/gluon/tools.py", line 2128, in amfrpc3 if not ininstance(domain,str): NameError: global name 'ininstance' is not defined web2py version 1.65.5 (2009-07-15 17:10:40

[web2py:27391] Re: error messages in Auth.change_password

2009-07-25 Thread Sebastian E. Ovide
eccolo On Sat, Jul 25, 2009 at 3:42 PM, mdipierro wrote: > > Can you please email it to me? > > Massimo > > On Jul 19, 2:14 pm, "Sebastian E. Ovide" > wrote: > > just in case it could be useful: > > > > Index: tools.py > > === > >

[web2py:27390] Re: mssql datetime problem/bug?

2009-07-25 Thread CS_teach
Found it. I had a "timestamp" column included in each table def that generated the error. Also, I gave you a poor example of the table def'n. The following table def reproduced the error: db.define_table('dateTest', SQLField('modDate','smalldatetime'), SQLField('date2','datetime'), SQ

[web2py:27389] Re: error messages in Auth.change_password

2009-07-25 Thread mdipierro
Can you please email it to me? Massimo On Jul 19, 2:14 pm, "Sebastian E. Ovide" wrote: > just in case it could be useful: > > Index: tools.py > === > --- tools.py    (revision 1140) > +++ tools.py    (working copy) > @@ -396,6 +396

[web2py:27388] Beijing University anybody?

2009-07-25 Thread mdipierro
I am at the conference center of Beijing University (www.thelakeviewhotel.com.cn) until Thursday. If there are any web2py users around here and want to meet for a coffee/tea just send me an email. --~--~-~--~~~---~--~~ You received this message because you are subsc

[web2py:27387] Re: error messages in Auth.change_password

2009-07-25 Thread Sebastian E. Ovide
Hi Massimo, just to remind you that it is not in the trunk yet. thanks On Sun, Jul 19, 2009 at 8:14 PM, Sebastian E. Ovide < sebastianov...@gmail.com> wrote: > just in case it could be useful: > > Index: tools.py > === > --- tools.

[web2py:27386] Re: invalid table name: auth_user

2009-07-25 Thread mdipierro
A minor problem: auth.define_tables() # creates all needed tables should go after auth_table= db.define_table(auth.settings.table_user_name, ) Massimo On Jul 25, 9:04 am, zenghua wrote: > Hi,everyone: > I am a new to web2py,today,I type these code in my "db.py" : > > ---

[web2py:27385] Re: session.flash not working on auth password recovery

2009-07-25 Thread Randell
This is the only content of my auth.settings from storage import Storage settings = Storage() What I want to happen is to enter the email of the user from retrieve_password form and when submitted, should display a flash message for confirmation that an email has been sent that allows the user t

[web2py:27384] Re: mssql datetime problem/bug?

2009-07-25 Thread CS_teach
Thanks Massimo. I changed my Windows settings (control panel/regional) to the correct format and that worked for a new test table I created. But I still can't view the legacy tables with datetime data. I'll keep testing and let you know what I find. -Michael On Jul 25, 9:09 am, mdipierro wrote:

[web2py:27383] invalid table name: auth_user

2009-07-25 Thread zenghua
Hi,everyone: I am a new to web2py,today,I type these code in my "db.py" : --- from gluon.tools import * auth=Auth(globals(),db) # authentication/authorization auth.define_tables() # creates all needed tables crud=Crud(globals(),db) # for CRUD helpers using auth service=Service(globals())

[web2py:27382] pending patches

2009-07-25 Thread mdipierro
I think I included in trunk all pending patches: add delete_onvalidation by Fran better BEAUTIFY by Jonathan better exemptions by Alexy fixed bugs in basic_auth by hywang If I have forgotten something please email me. Massimo --~--~-~--~~~---~--~~ You received th

[web2py:27381] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-25 Thread mdipierro
One more reason to have mysql. How do we figure out the name of the foreign key from the name of the table/field? Massimo On Jul 22, 10:10 am, David Zejda wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yes, the problem is connected with dropping the index on interrelated > fiel

[web2py:27380] Re: mssql datetime problem/bug?

2009-07-25 Thread mdipierro
This is a config issue on MSSQL side. The datatime fields have to be in ISO format. Massimo On Jul 25, 7:50 am, Michael wrote: > Using a modified auto.py, I created a db.py model for a legacy SQL > Server db and just successfully connected to the database using > web2py. However, when I query

[web2py:27379] Re: session.flash not working on auth password recovery

2009-07-25 Thread mdipierro
Can you show us your auth.settings and describe the expected workflow vs actual workflow? Massimo On Jul 25, 7:47 am, Randell wrote: > Any clues? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py:27378] Re: OpenID for Web2Py

2009-07-25 Thread mdipierro
Keep us posted. It would be great if you could post and be the maintainer of a web2py openid app. Massimo On Jul 25, 6:49 am, dlypka wrote: > Hi: > > I triedhttp://w2popenid.appspot.com/oidconsumer > > It is amazing to see the web2py Admin page up on the App Engine. > > A few results: > > 1. dl

[web2py:27377] mssql datetime problem/bug?

2009-07-25 Thread Michael
Using a modified auto.py, I created a db.py model for a legacy SQL Server db and just successfully connected to the database using web2py. However, when I query any table that contains a datetime datatype, I get the following error: Traceback (most recent call last): File "C:\web2py\gluon\restr

[web2py:27376] Re: session.flash not working on auth password recovery

2009-07-25 Thread Randell
Any clues? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegro

[web2py:27375] Re: default colour

2009-07-25 Thread Jason Brower
I used pydev for a while. But when I am running off the server, have you ever concidered using the -X feature? I use that often when I need to run off the server. Let's say for example that you need to see the errors... I connect with ssh to my server like so... ssh -X 123.123.123.123 then I star

[web2py:27373] Re: session.flash not working on auth password recovery

2009-07-25 Thread Randell
On Sat, Jul 25, 2009 at 8:03 PM, Vidul Petrov wrote: > > A temporary fix can be: session._flash (that's what I usually use). Replacing next = self.url(args = request.args) with next = self.url() + "/login" does nothing. --~--~-~--~~~---~--~~ You received th

[web2py:27374] Re: username login and edit profile logic error?

2009-07-25 Thread Vidul Petrov
My error - I forgot to add the proper validators for the "username" field, i.e.: t.username.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db, db.auth_user.username)] Apologies for the senseless post. On Jul 25, 3:07 pm, Vidul Petrov wrote: > Hi all, > > Just noticed that when username is used for l

[web2py:27372] username login and edit profile logic error?

2009-07-25 Thread Vidul Petrov
Hi all, Just noticed that when username is used for login one can edit the profile and change the username to an existing one. Thus the account becomes unusable, because the system recognize only the original username. Any fix? Thank you for the help. --~--~-~--~~~---

[web2py:27371] Re: session.flash not working on auth password recovery

2009-07-25 Thread Vidul Petrov
A temporary fix can be: session._flash (that's what I usually use). On Jun 12, 1:52 pm, "mr.freeze" wrote: > For some reason the session.flash doesn't work on an auth password > recovery (which should really be called a password reset I think).  I > tried it with setting auth.messages.email_sent

[web2py:27370] Re: session.flash not working on auth password recovery

2009-07-25 Thread Randell Benavidez
Hi guys, I already replaced the line (under retrieve_password) next = self.url(args = request.args) with next = self.url() + "/login" but still don't see any flash message. Got a clue? On Jun 13, 11:56 pm, "mr.freeze" wrote: > Perfect, works like a champ now. Thanks. > > On Jun 13, 10:45 a

[web2py:27369] Re: OpenID for Web2Py

2009-07-25 Thread dlypka
Hi: I tried http://w2popenid.appspot.com/oidconsumer It is amazing to see the web2py Admin page up on the App Engine. A few results: 1. dly...@gmail.com does NOT work. I (and my associates) want the standard email address to work. The URL Open ID is too clunky for most people we deal with.

[web2py:27368] Re: interesting :)

2009-07-25 Thread gluegl
Seems like a similar approach to Adobe... On Jul 24, 5:20 am, Oleg wrote: > http://visitmix.com/labs/gestalt/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email t

[web2py:27367] Re: killer app idea

2009-07-25 Thread hcvst
I think the requirements (distributed, p2p) are covered by the wave protocol http://www.waveprotocol.org/draft-protocol-spec as proposed by Google Wave. I am excited by what Google Wave promises. Perhaps it's time to start work on a web2py implementation. HC On Jul 21, 7:13 pm, Francisco Gama

[web2py:27366] Re: adding cancel button to auth form

2009-07-25 Thread Randell
On Sat, Jul 25, 2009 at 3:50 PM, mdipierro wrote: > > > > On Jul 25, 2:36 am, Randell wrote: > > On Sat, Jul 25, 2009 at 3:18 PM, mdipierro > wrote: > > > > > You can use a custom view > > > > > {{=form.custom.begin}} > > > {{=form.custom.widget.email}} > > > > > > {{=form.custom.end}} > > >

[web2py:27365] Re: adding cancel button to auth form

2009-07-25 Thread mdipierro
On Jul 25, 2:36 am, Randell wrote: > On Sat, Jul 25, 2009 at 3:18 PM, mdipierro wrote: > > > You can use a custom view > > > {{=form.custom.begin}} > > {{=form.custom.widget.email}} > > > > {{=form.custom.end}} > > But this method will create a new form next to the retrieve password form. >

[web2py:27364] Re: adding cancel button to auth form

2009-07-25 Thread Randell
Nevermind. I was able to do it by adding form[0][-1][1].append(INPUT(_type='button',_value='Cancel',_onclick="window.location='%s';"%URL(r=request,f='index'))) which I found here: http://groups.google.com/group/web2py/browse_thread/thread/2bb488401573d19falthough I do not know what those indeces

[web2py:27363] Re: adding cancel button to auth form

2009-07-25 Thread Randell
On Sat, Jul 25, 2009 at 3:18 PM, mdipierro wrote: > > You can use a custom view > > {{=form.custom.begin}} > {{=form.custom.widget.email}} > > {{=form.custom.end}} But this method will create a new form next to the retrieve password form. How can I do it in such a way that the new Cancel butt

[web2py:27362] Re: adding cancel button to auth form

2009-07-25 Thread mdipierro
You can use a custom view {{=form.custom.begin}} {{=form.custom.widget.email}} {{=form.custom.end}} On Jul 25, 1:47 am, Randell Benavidez wrote: > Doing this on gluon.tools.Auth.retrieve_password does nothing (no > additional buttons is added).  How can I modify the form in my own > controlle

[web2py:27361] Re: Slash and backslash when adding new files

2009-07-25 Thread mdipierro
That is a good question. I am not sure what the correct way is. This way everything works. On Jul 25, 1:10 am, BG wrote: > Just a small thing I noticed. This may only be on windows. > > Files are listed using backslashes. E.g. default\index.html > But if you add a new file you must write it usin

[web2py:27360] Re: some bugs

2009-07-25 Thread mdipierro
oops. will fix this tonight. Thanks On Jul 25, 12:37 am, hywang wrote: > 1)  tools.py(svn version 1140), line 1405,  "if not self.basic() and > not not self.is_logged_in():"  There are 2 not > > 2) contrib\login_methods\basic_auth.py(svn version 1140), line 2, > "import urlib2", should be "impor

[web2py:27359] Re: problem with web2py changing default application from init to welcome while it's running?

2009-07-25 Thread mdipierro
which os? do you do a os.chdir in your code? If so, that would cause this problem and it is not allowed because it is not thread safe. Massimo On Jul 25, 12:11 am, Jonathan Lundell wrote: > On Jul 24, 2009, at 9:59 PM, Yarko Tymciurak wrote: > > > I think it more likely he has another web2py p