[web2py:30384] Re: xmlrpc error

2009-09-07 Thread Johann Spies
2009/9/7 mdipierro : > > Ouch, > > should be > > @service.xmlrpc > > not > > @service.xmlrpc() > Thanks. Johann --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send emai

[web2py:30383] Re: two tables, one form

2009-09-07 Thread weheh
In my example with 2 tables, table1 and table2, and one form, the form only populates some of the fields in tables1 and 2. The rest of the fields are ignored (to be filled out at a later date once more info has been collected). However, these other fields have validators that complain and tack on

[web2py:30381] Re: How to kick off process asynchronously

2009-09-07 Thread mdipierro
I do not understand. On Sep 8, 12:42 am, Adi wrote: > How can I refresh the value of DB in env dictionary? > > On Sep 8, 10:36 am, mdipierro wrote: > > > Not elegant but you can do this... > > > def index(): > >       import subprocess > >       subprocess.Popen('python web2py.py -S yourapp -M

[web2py:30382] Re: How to kick off process asynchronously

2009-09-07 Thread Adi
Please read my first post. I want to avoid the database error. On Sep 8, 10:45 am, mdipierro wrote: > I do not understand. > > On Sep 8, 12:42 am, Adi wrote: > > > How can I refresh the value of DB in env dictionary? > > > On Sep 8, 10:36 am, mdipierro wrote: > > > > Not elegant but you can do

[web2py:30380] Re: How to kick off process asynchronously

2009-09-07 Thread Adi
How can I refresh the value of DB in env dictionary? On Sep 8, 10:36 am, mdipierro wrote: > Not elegant but you can do this... > > def index(): >       import subprocess >       subprocess.Popen('python web2py.py -S yourapp -M -S > yourscript.py') >       do something else > > On Sep 7, 11:58 pm

[web2py:30378] Re: How to kick off process asynchronously

2009-09-07 Thread mdipierro
Not elegant but you can do this... def index(): import subprocess subprocess.Popen('python web2py.py -S yourapp -M -S yourscript.py') do something else On Sep 7, 11:58 pm, Adi wrote: > Nope. This requires running the conversion module independently from > the command line. An

[web2py:30379] Re: Odd form behavior with multiple forms

2009-09-07 Thread mdipierro
true On Sep 8, 12:34 am, weheh wrote: > I have already done that, so I should be good. The behavior I see is > that when I try to resubmit, I'm asked whether I wish to resubmit or > to cancel. I suspect this is the behavior one would expect to stop > inadvertant multiple submissions, correct? >

[web2py:30377] Re: Odd form behavior with multiple forms

2009-09-07 Thread weheh
I have already done that, so I should be good. The behavior I see is that when I try to resubmit, I'm asked whether I wish to resubmit or to cancel. I suspect this is the behavior one would expect to stop inadvertant multiple submissions, correct? When using SQLFORM.factory, unless you give diffe

[web2py:30376] Re: How to kick off process asynchronously

2009-09-07 Thread Adi
Nope. This requires running the conversion module independently from the command line. Any other help with this? On Sep 4, 11:15 am, mdipierro wrote: > check if this does what you > need:http://www.web2py.com/appliances/default/show/38 > > Massimo > > On Sep 3, 11:34 pm, Adi wrote: > > > Hi, >

[web2py:30375] Re: initial data to CRUD forms

2009-09-07 Thread mdipierro
Mind that T3 is quite dated. Try replace {{=self.read(db.student)}} {{=self.itemize(db.delivery)}} {{=self.create(db.delivery)}} with {{=self.read(db.student)}} {{=self.itemize(db.delivery)}} {{db.delivery.student_id=self.id}} {{=self.create(db.delivery)}} Let us know if this fixes it. Massim

[web2py:30374] initial data to CRUD forms

2009-09-07 Thread Júlio Monteiro
Hello there, On building my first web2py app, I bumped into a problem, perhaps you can help? I have the following DB: db.define_table("student", db.Field("name", length=100, notnull=True), db.Field("type", requires=IS_IN_SET(("Master","Doctorate"))), db.Field("entry_date", "d

[web2py:30373] Re: jpolite ajax form bug

2009-09-07 Thread mdipierro
You can do that or setup a repository somewhere (google code) and I will just link it from appliances: I encourage other users to adopt an appliance in the same way. Massimo On Sep 7, 10:02 pm, "mr.freeze" wrote: > Sure.  How should I send you updated versions? Email? > > On Sep 7, 9:56 pm, md

[web2py:30365] Re: How Can I get the request.uri in Web2py

2009-09-07 Thread Iceberg
On Sep8, 2:44am, Fran wrote: > On Sep 7, 7:19 pm, Coby Su wrote: > > > I want to get the current request uri, can anyone help me, and tell me > > how could i do that in web2py > > request.env.http_host > request.env.web2py_original_uri > > Look at: > /applicationname/appadmin/state > > F Glad t

[web2py:30372] Re: jpolite ajax form bug

2009-09-07 Thread mr.freeze
Sure. How should I send you updated versions? Email? On Sep 7, 9:56 pm, mdipierro wrote: > I had not looked at this. > > Want to be a maintainer for this until a new version comes out (and > perhaps later too)? > > On Sep 7, 9:50 pm, "mr.freeze" wrote: > > > Massimo, you may have already figur

[web2py:30371] Re: jpolite ajax form bug

2009-09-07 Thread mdipierro
I had not looked at this. Want to be a maintainer for this until a new version comes out (and perhaps later too)? On Sep 7, 9:50 pm, "mr.freeze" wrote: > Massimo, you may have already figured this out but just in case...The > response needs to be rendered before sending back to the client: > >

[web2py:30370] jpolite ajax form bug

2009-09-07 Thread mr.freeze
Massimo, you may have already figured this out but just in case...The response needs to be rendered before sending back to the client: def m502(): form=FORM(INPUT(_type='text',_name='a',_class='integer', requires=IS_INT_IN_RANGE(-100,100)), '+',INPUT(_type='t

[web2py:30369] http://..../app/contr/func.xls -> excel

2009-09-07 Thread mdipierro
If you need to generate exel files: 1) download and unzip pyXLWriter under yourapp/modules/ 2) make an action like def index(): table=[['one','two','three'],[1,2,3],[1,4,6]] return dict(pages=(('page1',table),('page2',table)) and create a view/generic.xls that contains: {{ # to use

[web2py:30368] Re: Odd form behavior with multiple forms

2009-09-07 Thread mdipierro
If you use FORM, SQLFORM or SQLFORM.factory just give different names to the forms form.accepts(request.vars,session,formname='thisformname') and as long as the formnames are different you have no problem. Massimo On Sep 7, 9:01 pm, Iceberg wrote: > Just a remind. The solution just disables t

[web2py:30367] Re: Login problem

2009-09-07 Thread Alexandre Andrade
I had a problem with registration, but it was because mail settings wasn't configured. But once registered, login was ok. 2009/9/7 villas > > I think a similar thing happened to me once. It was a problem with > the record not being saving properly in the DB. Did you check your > database cont

[web2py:30366] Re: Odd form behavior with multiple forms

2009-09-07 Thread weheh
I know that I'm in the process of running into this, as I am doing a multiple form screen made up of multiple tables and it is a creation form. Is there any kind of workaround for preventing multiple submissions under these circumstances? Otherwise, I imagine I have to go to an way-station page th

[web2py:30364] Re: Odd form behavior with multiple forms

2009-09-07 Thread Iceberg
Just a remind. The solution just disables the prevent-double- submission feature. So developers are at your own risk. If your form happens to be a "read-only" one, such as a search form, that is fine. If it is an update form, that is probably ok too. If it is a create form, it might cause problem.

[web2py:30362] use file to lookup a person and then lookup same file for a contact

2009-09-07 Thread jayvandal
Hi, I have an events table. I have a field to lookup on a person table (field 1) Then I want to do a lookup on the same person table to find a contact (field 3) I thought I could do this , but failed so I looked for an alias for the person table Any suggesions? Jim ==

[web2py:30363] Re: use file to lookup a person and then lookup same file for a contact

2009-09-07 Thread mdipierro
I do not understand the question. The code below looks correct but perhaps you want to add db.events.contact.requires=IS_IN_DB(db,'person.id','%(first_name)s % (last_name)s') On Sep 7, 8:48 pm, jayvandal wrote: > Hi, I have an events table. I have a field to lookup on a person table > (field 1)

[web2py:30361] Re: How Can I get the request.uri in Web2py

2009-09-07 Thread Coby Su
thank you very much Yarko. That's what I want. On Sep 8, 2:41 am, Yarko Tymciurak wrote: > sorry, I meant request.url > > > > On Mon, Sep 7, 2009 at 1:41 PM, Yarko Tymciurak wrote: > > request.uri > > > Take a look at the "request" link in this example: > > >http://www.web2py.com/examples/simp

[web2py:30358] Best XML parsing library?

2009-09-07 Thread mr.freeze
I am working with web services from here: http://developer.yahoo.com/yql/console/?q=show%20tables&env=http://datatables.org/alltables.env Can someone recommend their favorite XML parsing library? --~--~-~--~~~---~--~~ You received this message because you are subsc

[web2py:30360] Re: Web2py and Webfaction

2009-09-07 Thread Richard
I used the above script and it worked well. Now I have multiple web2py apps on webfaction with lots of static files. How can I configure this so that these files are served directory by Apache? Richard On Aug 31, 12:09 am, jlegler wrote: > Try running it like this: > > python2.5 web2py -p 80

[web2py:30357] Re: another minimal wiki with versioning and auth

2009-09-07 Thread mdipierro
Hope it is clear to everybody that I rewrote the original wiki only because I really like it. Massimo On Sep 6, 10:14 pm, mdipierro wrote: > As an exercise, I have redone the following wiki: > >    http://werkzeug.pocoo.org/wiki30/ > > using web2py: > >    http://web2py.com/examples/static/web2

[web2py:30359] Re: hey! we passed 30000 messages.

2009-09-07 Thread mdipierro
It is on the IRC channel (#web2py on irc.freenode.net). It should be close to everybody but no beer. I think we should have parties on Second Life. There we could have beer and we could dance too. Massimo On Sep 7, 7:48 pm, 陶艺夫 wrote: > I envy you guys. I'd love to but it's too far for me. Hav

[web2py:30355] Re: Odd form behavior with multiple forms

2009-09-07 Thread Alastair Medford
Aha, I didn't think the solution would be so simple. Thanks On Sep 7, 3:35 pm, mdipierro wrote: > It is because of mechanism to prevent double form submission. It > breaks with multiple forms/age. To avoid this problem replace: > > if form.accepts(request.vars, session): > > with > > if form.acc

[web2py:30356] Re: hey! we passed 30000 messages.

2009-09-07 Thread 陶艺夫
I envy you guys. I'd love to but it's too far for me. Have fun, guys! :) 2009/9/8 mdipierro > > What about Monday 14 in the late evening. Late evening works better > for me too. > > Massimo > > On Sep 7, 6:03 pm, Álvaro Justen [Turicas] > wrote: > > On Mon, Sep 7, 2009 at 19:57, mdipierro wrote

[web2py:30354] Re: hey! we passed 30000 messages.

2009-09-07 Thread mdipierro
See you there. Massimo On Sep 7, 7:16 pm, Álvaro Justen [Turicas] wrote: > On Mon, Sep 7, 2009 at 20:28, mdipierro wrote: > > > What about Monday 14 in the late evening. Late evening works better > > for me too. > > It's ok for me! > And about other users? Who will be in IRC? > If you do not kn

[web2py:30353] Re: hey! we passed 30000 messages.

2009-09-07 Thread Álvaro Justen [Turicas]
On Mon, Sep 7, 2009 at 20:28, mdipierro wrote: > > What about Monday 14 in the late evening. Late evening works better > for me too. It's ok for me! And about other users? Who will be in IRC? If you do not know IRC ask me - it is very simple! web2py metting: Monday 14, 19h UTC Channel #web2py at

[web2py:30352] Re: Simple question -- where is name of upload file stored?

2009-09-07 Thread Richard
Thanks for the hint mr.freeze - I was actually doing the opposite! This was my function: def test_upload(): form = SQLFORM.factory( Field('script', 'upload', requires=IS_NOT_EMPTY()), ) if form.accepts(request.vars, session): response.flash = str(request.vars.scr

[web2py:30351] Re: Problem with WebFaction

2009-09-07 Thread Yarko Tymciurak
yes, that's correct (should have just checked mine before i hit send last time) On Mon, Sep 7, 2009 at 6:44 PM, Yarko Tymciurak wrote: > without domain, you should look at the documentation - I believe is is > http://[your_login_on_webfaction].webfactional.com > > > On Mon, Sep 7, 2009 at 5:51 P

[web2py:30350] Re: Problem with WebFaction

2009-09-07 Thread Yarko Tymciurak
without domain, you should look at the documentation - I believe is is http://[your_login_on_webfaction].webfactional.com On Mon, Sep 7, 2009 at 5:51 PM, Jose wrote: > > I tried creating a ssh tunnel and works well. > > Jose > > > --~--~-~--~~~---~--~~ You receiv

[web2py:30349] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
My pleasure. I think the same thing applies for CheckboxesWidget. On Sep 7, 6:28 pm, mdipierro wrote: > Thanks Nathan. > > On Sep 7, 6:05 pm, "mr.freeze" wrote: > > > Tested and working. > > > On Sep 7, 4:12 pm, mdipierro wrote: > > > > Thank you. Please check the fix in trunk. > > > > On Sep

[web2py:30348] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mdipierro
Thanks Nathan. On Sep 7, 6:05 pm, "mr.freeze" wrote: > Tested and working. > > On Sep 7, 4:12 pm, mdipierro wrote: > > > Thank you. Please check the fix in trunk. > > > On Sep 7, 3:24 pm, "mr.freeze" wrote: > > > > It looks like the validator is being applied to the TR object for > > > RadioWi

[web2py:30347] Re: hey! we passed 30000 messages.

2009-09-07 Thread mdipierro
What about Monday 14 in the late evening. Late evening works better for me too. Massimo On Sep 7, 6:03 pm, Álvaro Justen [Turicas] wrote: > On Mon, Sep 7, 2009 at 19:57, mdipierro wrote: > > > Yes. What about Wednesday 12-1pm chicago time? > > I think most people prefer at night. But this wedne

[web2py:30346] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
Tested and working. On Sep 7, 4:12 pm, mdipierro wrote: > Thank you. Please check the fix in trunk. > > On Sep 7, 3:24 pm, "mr.freeze" wrote: > > > It looks like the validator is being applied to the TR object for > > RadioWidget and CheckboxesWidget, not the INPUT objects. Since TR > > inherit

[web2py:30345] Re: hey! we passed 30000 messages.

2009-09-07 Thread Álvaro Justen [Turicas]
On Mon, Sep 7, 2009 at 19:57, mdipierro wrote: > > Yes. What about Wednesday 12-1pm chicago time? I think most people prefer at night. But this wednesday I can't because I'll be travelling to PythonBrasil5 (to present web2py!). > On Sep 7, 5:55 pm, Álvaro Justen [Turicas] > wrote: >> On Mon, Se

[web2py:30344] Re: hey! we passed 30000 messages.

2009-09-07 Thread mdipierro
Yes. What about Wednesday 12-1pm chicago time? On Sep 7, 5:55 pm, Álvaro Justen [Turicas] wrote: > On Mon, Sep 7, 2009 at 18:55, mdipierro wrote: > > > Who wants to get together for a drink in Chicago, perhaps Thursday > > before the chipy meeting? > > We could meet in IRC too. :-) > > -- >  Álv

[web2py:30343] Re: hey! we passed 30000 messages.

2009-09-07 Thread Álvaro Justen [Turicas]
On Mon, Sep 7, 2009 at 18:55, mdipierro wrote: > > Who wants to get together for a drink in Chicago, perhaps Thursday > before the chipy meeting? We could meet in IRC too. :-) -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--

[web2py:30342] Re: Problem with WebFaction

2009-09-07 Thread Jose
I tried creating a ssh tunnel and works well. Jose --~--~-~--~~~---~--~~ 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, se

[web2py:30341] Re: Problem with WebFaction

2009-09-07 Thread Jose
On 7 sep, 17:49, Yarko Tymciurak wrote: > you are missing a simple thing here - if this is the port webfaction gives > you, then that is the port you probably have a default (or your mod_wsgi) > running on already... > > For running from the command shell loggin, to get the password set use ANY

[web2py:30340] Re: connecting to existing SQLite database

2009-09-07 Thread mdipierro
On Sep 7, 4:53 pm, Tim Michelsen wrote: > Hello, > I have troubles connecting and using an existing SQLite table from web2py. > > Here are my steps and difficulties > > 1) imported an existing table into sqlite > 2) table definition with migrate=False > => I get no values/entries shown in the d

[web2py:30339] Re: so 1.67...?

2009-09-07 Thread mr.freeze
I emailed it to you. On Sep 7, 4:53 pm, mdipierro wrote: > I cannot tell if this is related. Otehr things may have caused this, > for example missing or corrupted database/*.table files. > > Can you show me what is sql.log? > > On Sep 7, 4:43 pm, "mr.freeze" wrote: > > > I'm not sure if this is

[web2py:30338] hey! we passed 30000 messages.

2009-09-07 Thread mdipierro
Who wants to get together for a drink in Chicago, perhaps Thursday before the chipy meeting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegro

[web2py:30337] connecting to existing SQLite database

2009-09-07 Thread Tim Michelsen
Hello, I have troubles connecting and using an existing SQLite table from web2py. Here are my steps and difficulties 1) imported an existing table into sqlite 2) table definition with migrate=False => I get no values/entries shown in the database administration! If I set migrate=True I get an e

[web2py:30336] Re: so 1.67...?

2009-09-07 Thread mdipierro
I cannot tell if this is related. Otehr things may have caused this, for example missing or corrupted database/*.table files. Can you show me what is sql.log? On Sep 7, 4:43 pm, "mr.freeze" wrote: > I'm not sure if this is related by I just turned migrations back *on* > in an app that uses My

[web2py:30335] Re: so 1.67...?

2009-09-07 Thread mr.freeze
I'm not sure if this is related by I just turned migrations back *on* in an app that uses MySQL and got this: Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 178, in restricted exec ccode in environment File "C:/web2py/applications/main/models/db.py", line 74

[web2py:30334] Re: Odd form behavior with multiple forms

2009-09-07 Thread mdipierro
It is because of mechanism to prevent double form submission. It breaks with multiple forms/age. To avoid this problem replace: if form.accepts(request.vars, session): with if form.accepts(request.vars): Massimo On Sep 7, 4:31 pm, Alastair Medford wrote: > Currently I am displaying multiple

[web2py:30333] so 1.67...?

2009-09-07 Thread mdipierro
So one of the changes from 1.66 to 1.67 is the default length of string/password/upload fields from 32/32/128 to 512/512/512. This will cause a migration in almost ALL existing applications (unless you have explicitly declared a length or you have migrate=False). This should not break anything an

[web2py:30332] Odd form behavior with multiple forms

2009-09-07 Thread Alastair Medford
Currently I am displaying multiple forms on one page via iframes, each calling the same controller. When only one form is displayed on the page, the form submits properly and validates etc. When two forms are displayed however, pressing submit merely refreshes the iframe. When I hit submit a secon

[web2py:30331] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mdipierro
Thank you. Please check the fix in trunk. On Sep 7, 3:24 pm, "mr.freeze" wrote: > It looks like the validator is being applied to the TR object for > RadioWidget and CheckboxesWidget, not the INPUT objects. Since TR > inherits from DIV, DIV's _validate method is called which always > returns Tru

[web2py:30330] Re: pyforum instead of google groups?

2009-09-07 Thread mr.freeze
It may *not* be worth pursuing if google groups will still be the main source of discussion. I think there would need to be a consensus by the leaders of web2py that this is the direction they want to go. Unfortunately, even though pyForum would (IMO) add a lot of organizational value to the web2

[web2py:30329] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
It looks like the validator is being applied to the TR object for RadioWidget and CheckboxesWidget, not the INPUT objects. Since TR inherits from DIV, DIV's _validate method is called which always returns True. Passing the INPUT the 'requires' attribute fixes it (line 248 sqlhtml.py): opts += [T

[web2py:30328] Re: Embedded Firebird

2009-09-07 Thread mdipierro
I am not convinced this is the best syntax so if people have a better idea that starts with 'firebird://' and can parse both normal uri and embedded uri, let me know. On Sep 7, 9:58 am, mdipierro wrote: > In trunk try > > DAL('firebird_embedded://sysdba:master...@k:\\web2py\\fembed.fdb') > > On

[web2py:30327] Re: jpolite and web2py for beginners

2009-09-07 Thread villas
I couldn't get it to install either. So as a work-around, I extracted the contents into /web2py/applications/jpolite and then just accessed it through site admin. It seemed to suffer from problems in loading all the widgets. One widget would load OK and the others hang. Anyhow, it gives an i

[web2py:30326] Re: Login problem

2009-09-07 Thread villas
I think a similar thing happened to me once. It was a problem with the record not being saving properly in the DB. Did you check your database contains an auth_user record? I can't remember exactly what the solution was, but it may have been something to do with file permissions. HTH On Sep 6

[web2py:30325] Re: Embedded Firebird

2009-09-07 Thread mdipierro
Very cool! On Sep 7, 1:55 pm, villas wrote: > @Massimo > Yes it worked!  BTW I used forward slashes in the path (just because > it seems to work and is easier to type). > > I can now work from a USB stick and deploy in seconds to a full > Firebird client/server database;  how cool is that! > Tha

[web2py:30324] Re: enter old dates

2009-09-07 Thread mdipierro
did you try: requires=IS_NULL_OR(IS_DATE()) ? On Sep 7, 1:50 pm, jayvandal wrote: > Hi, >  another question > I want to be able to enter old dates like"1776-07-04"  but I may not > know a date at the time of record creation so I may leave the field > blank. > I tried to use Format but I get er

[web2py:30323] Re: Embedded Firebird

2009-09-07 Thread villas
@Massimo Yes it worked! BTW I used forward slashes in the path (just because it seems to work and is easier to type). I can now work from a USB stick and deploy in seconds to a full Firebird client/server database; how cool is that! Thanks for all your help. David On Sep 7, 3:58 pm, mdipierro

[web2py:30322] Re: crud field's labels

2009-09-07 Thread mdipierro
Unfortunatly your first suggestion would break backward compatibility. You can do: for field in db.table.fields: db.table[field].label=field On Sep 7, 1:29 pm, duvo wrote: > Hi to everybody! > I want to accomplish this simple task: > I need the labels in crud.select or crud.create to be the sa

[web2py:30320] Re: Typo in the web2py manual volume 2

2009-09-07 Thread mdipierro
thanks On Sep 7, 1:00 pm, eddwinston wrote: > Hi Massimo, > > I noticed a typo in section 3.8 when dealing with crud.create() in the > show action. Line 5 reads: >       form = crud.create(db.image, next=URL(r=request, args... > > but I think it is suppose to be: >      form = crud.create(db.com

[web2py:30321] enter old dates

2009-09-07 Thread jayvandal
Hi, another question I want to be able to enter old dates like"1776-07-04" but I may not know a date at the time of record creation so I may leave the field blank. I tried to use Format but I get errors no Format in database creation. I changed from using the date verb to just plain length of fi

[web2py:30319] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mdipierro
This may be a bug. If you can track it down let me know. On Sep 7, 12:06 pm, "mr.freeze" wrote: > I noticed that too.  I am trying to track it down now.  It looks like > validation is not getting called at all for IS_IN_SET when using the > RadioWidget. > > On Sep 7, 12:01 pm, Iceberg wrote: >

[web2py:30318] Re: How Can I get the request.uri in Web2py

2009-09-07 Thread mr.freeze
Also, if you go to http://127.0.0.1:8000/[application]/appadmin/state you can see all of the request, response and session variables for your app. On Sep 7, 1:19 pm, Coby Su wrote: > I want to get the current request uri, can anyone help me, and tell me > how could i do that in web2py > Apprecia

[web2py:30317] Re: How Can I get the request.uri in Web2py

2009-09-07 Thread Fran
On Sep 7, 7:19 pm, Coby Su wrote: > I want to get the current request uri, can anyone help me, and tell me > how could i do that in web2py request.env.http_host request.env.web2py_original_uri Look at: /applicationname/appadmin/state F --~--~-~--~~~---~--~~ You

[web2py:30316] Re: How Can I get the request.uri in Web2py

2009-09-07 Thread Yarko Tymciurak
sorry, I meant request.url On Mon, Sep 7, 2009 at 1:41 PM, Yarko Tymciurak wrote: > request.uri > > Take a look at the "request" link in this example: > > http://www.web2py.com/examples/simple_examples/hello6 > > > On Mon, Sep 7, 2009 at 1:19 PM, Coby Su wrote: > >> >> I want to get the current

[web2py:30315] Re: How Can I get the request.uri in Web2py

2009-09-07 Thread Yarko Tymciurak
request.uri Take a look at the "request" link in this example: http://www.web2py.com/examples/simple_examples/hello6 On Mon, Sep 7, 2009 at 1:19 PM, Coby Su wrote: > > I want to get the current request uri, can anyone help me, and tell me > how could i do that in web2py > Appreciate that! > >

[web2py:30314] Re: two tables, one form

2009-09-07 Thread weheh
Finally found the problem. Seems that there was a requires clause in my table definitions that caused the hiccup. Now, everything seems to be running OK. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py:30313] How Can I get the request.uri in Web2py

2009-09-07 Thread Coby Su
I want to get the current request uri, can anyone help me, and tell me how could i do that in web2py Appreciate that! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send

[web2py:30312] Re: Is auth comptible with MS active directory?

2009-09-07 Thread Fran
On Sep 7, 7:03 pm, Fran wrote: > On Sep 5, 3:36 pm, max wrote: > > 2. In my active directory server to  use "search_ext_s" i need a > > administrator account, > > How can i define it in ldap_auth_aux > It's easily added, but we want to keep it optional for those > environments which don't need i

[web2py:30311] crud field's labels

2009-09-07 Thread duvo
Hi to everybody! I want to accomplish this simple task: I need the labels in crud.select or crud.create to be the same as the fields' names (not capitalzed, not preceded by ".tablename") except when a label is given in the model. To get this, I have to set all the labels in the model with the name

[web2py:30310] Re: Is auth comptible with MS active directory?

2009-09-07 Thread Fran
On Sep 5, 3:36 pm, max wrote: > After lots of tests and research of ldap_auth , I have some questions > 1. Does the mode="ad"  identify the Active directory in ldap_ath_aux? Yes > 2. In my active directory server to  use "search_ext_s" i need a > administrator account, >  What i think is genera

[web2py:30309] Typo in the web2py manual volume 2

2009-09-07 Thread eddwinston
Hi Massimo, I noticed a typo in section 3.8 when dealing with crud.create() in the show action. Line 5 reads: form = crud.create(db.image, next=URL(r=request, args... but I think it is suppose to be: form = crud.create(db.comment, next=URL(r=request, args... the first one shows form

[web2py:30308] Re: Problem with WebFaction

2009-09-07 Thread Yarko Tymciurak
you are missing a simple thing here - if this is the port webfaction gives you, then that is the port you probably have a default (or your mod_wsgi) running on already... For running from the command shell loggin, to get the password set use ANY OTHER port number (since NO ONE will ever be accessi

[web2py:30307] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
I noticed that too. I am trying to track it down now. It looks like validation is not getting called at all for IS_IN_SET when using the RadioWidget. On Sep 7, 12:01 pm, Iceberg wrote: > Well, after some test, I am convinced that the IS_IN_SET(...,zero='') > and IS_IN_DB(...,zero='') are also

[web2py:30306] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread Iceberg
Well, after some test, I am convinced that the IS_IN_SET(...,zero='') and IS_IN_DB(...,zero='') are also a good solution. Thanks both of you! BTW, Freeze's example is illuminative. But somehow, choosing a "zero" value doesn't generate an error message, even after I fixed a typo as below: form=S

[web2py:30305] Re: Problem with WebFaction

2009-09-07 Thread Jose
On 7 sep, 14:01, mdipierro wrote: > This is because that port is already in use. if not by one of your > programs by another user. > Yes, but that is the port WebFaction gives me when I create the application. Any idea how to solve it. Jose --~--~-~--~~~---~--~--

[web2py:30304] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
Here is an example of using IS_IN_SET without a dropdown: form=SQLFORM.factory(Field('choice',requires=IS_IN_SET (('Yes','No','Maybe')),widget=SQLFORM.widgets.radio.widget)) On Sep 7, 11:23 am, "mr.freeze" wrote: > Yeah, it doesn't feel as elegant (adds 8 lines instead of 2) but > having it in

[web2py:30303] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
Yeah, it doesn't feel as elegant (adds 8 lines instead of 2) but having it in the validators means it can be used by custom widgets. On Sep 7, 11:11 am, Iceberg wrote: > I won't argue that whether just two lines of code would make a "too > heavy" sqlhtml.py become "unacceptably heavy", but at le

[web2py:30301] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
Works now. Thanks! On Sep 7, 10:55 am, mdipierro wrote: > for various reasons: > - sqlhtml is already too heavy, the more we delegate to the validators > and the wdgets the better > - because one should be able to do use the IS_IN_SET validator without > having the dropdown > > I added the miss

[web2py:30302] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread Iceberg
I won't argue that whether just two lines of code would make a "too heavy" sqlhtml.py become "unacceptably heavy", but at least the IS_IN_DB does not benefit from the improvement if it is not implemented inside OptionsWidget. By the way, would you give an example about "use the IS_IN_SET validato

[web2py:30296] Re: another minimal wiki with versioning and auth

2009-09-07 Thread mdipierro
I reposted it. I had made a mistake. On Sep 6, 11:34 pm, "mr.freeze" wrote: > I think I could pull it off in 5 minutes with narration.  I'll take a > crack at it and email you when I have something. > > On Sep 6, 11:14 pm, mdipierro wrote: > > > the original version is 113 lines of python code

[web2py:30300] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mdipierro
for various reasons: - sqlhtml is already too heavy, the more we delegate to the validators and the wdgets the better - because one should be able to do use the IS_IN_SET validator without having the dropdown I added the missing like and uploading... Massimo On Sep 7, 10:50 am, "mr.freeze" wro

[web2py:30299] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mr.freeze
It throws an error for IS_IN_DB. It's just missing 'self.zero = zero' in the __init__ function. It works after that. I'm curious though, why did you moved it from OptionsWidget to the validators? On Sep 7, 10:25 am, mdipierro wrote: > I modified your patch. > > In trunk try this > > Field(...

[web2py:30298] Re: Is auth comptible with MS active directory?

2009-09-07 Thread mdipierro
I will not be able to look into this for a a week or so and I apologize. If somebody with a better windows expertise then me an look into this, I will take a patch to allow it. On Sep 7, 10:40 am, max wrote: > Hi Massimo, > > The script is an example for our AD and it works for me to get all the

[web2py:30295] Re: Proposal about enhancing OptionsWidget

2009-09-07 Thread mdipierro
I modified your patch. In trunk try this Field(...,requires=IS_IN_SET(('a','b','c'),zero=T('choose one'))) the option "zero" will be added at top but not accepted unless: Field(...,requires=IS_NULL_OR(IS_IN_SET(('a','b','c'),zero=T('choose one' please give it a try. Massimo On Sep 5, 12

[web2py:30297] Re: Is auth comptible with MS active directory?

2009-09-07 Thread max
Hi Massimo, The script is an example for our AD and it works for me to get all the data except the password hash. I wanted to test if i am making mistakes when connecting to the server. But I had to give an adminstrator account and a password to do the search. Otherwise Ad doesn't allow the se

[web2py:30294] Re: how to restore Login to default/index

2009-09-07 Thread mdipierro
can you post the relevant code? On Sep 7, 10:02 am, Carlos Aboim wrote: > It's a little bit strange.. > I have in the default/layout the rigth code (as welcome app as reference) > and in the menu, 'authentication' and the link after it doenst show... > Any clues? > > thank you > Carlos Aboim > >

[web2py:30290] Re: Embedded Firebird

2009-09-07 Thread mdipierro
In trunk try DAL('firebird_embedded://sysdba:master...@k:\\web2py\\fembed.fdb') On Sep 4, 5:24 am, villas wrote: > > change by > > con = kinterbasdb.connect(host='', database=r'k:\web2py > > \fbembed.fdb',user='sysdba', password='masterkey') > > José, > You rock man!   I never tried the little

[web2py:30293] Re: Is auth comptible with MS active directory?

2009-09-07 Thread mdipierro
It is not clear from your message if this script works and you provide it as an example or if not. Massimo On Sep 7, 9:26 am, max wrote: > Hi Everybody, > I wrote another script to access our ms active directory, > If someone have idea t osolve the long overdue problem would be > thankful. > >

[web2py:30291] Re: how to restore Login to default/index

2009-09-07 Thread Carlos Aboim
It's a little bit strange.. I have in the default/layout the rigth code (as welcome app as reference) and in the menu, 'authentication' and the link after it doenst show... Any clues? thank you Carlos Aboim 2009/9/7 mdipierro > > > > On Sep 7, 8:14 am, Carlos Aboim wrote: > > Yeah I know.. > >

[web2py:30292] Re: DAL and SQLDB

2009-09-07 Thread mdipierro
yes, SQLDB is the connection object for relation databases DAL is a function that returns such object. In most of the cases they are interchangable but in you can do DAL ('gae') while you cannot do SQLDB('gae') because gae is not a relational database. Do not use SQLDB, use DAL instead. Massi

[web2py:30289] DAL and SQLDB

2009-09-07 Thread eddwinston
What is/are the difference(s) between DAL(...) and SQLDB(...) Winston --~--~-~--~~~---~--~~ 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

[web2py:30288] Re: Is auth comptible with MS active directory?

2009-09-07 Thread max
Hi Everybody, I wrote another script to access our ms active directory, If someone have idea t osolve the long overdue problem would be thankful. import ldap def main(): server = "ad.mydmoan.com" who = "user" cred = "password" keyword = "d...@mydomain.com" base_dn = "ou=users,ou=kjc,ou

[web2py:30286] Re: suggestion: form_factory imported by default

2009-09-07 Thread eddwinston
didn't know about SQLFORM.factory. Cool On Sep 7, 5:01 pm, mdipierro wrote: > form_factory is deprecated. Use SQLFORM.factory instead. > > On Sep 7, 1:50 am, eddwinston wrote: > > > Hi, > > > Just wondering why the form_factory class is not imported by default > > so that we dont have to do "fr

[web2py:30284] Re: how to restore Login to default/index

2009-09-07 Thread mdipierro
On Sep 7, 8:14 am, Carlos Aboim wrote: > Yeah I know.. > > Well I'll try explain better my ideia. > > The default web2py app is a welcome app right? > On index page of that app there is a menu on the left side of the page. > > So first of all, I want to change my default app! How do I do that?

[web2py:30287] Re: Embedded Firebird

2009-09-07 Thread villas
Jose has found a Firebird Embedded connect string which works with kinterbasdb. I would like to be able to add it somehow to sql.py so that we can use the string in DAL. I have spent a while trying, but I wasn't able to make the DAL work. I'm not even sure that I am going about it in the right

  1   2   >