[web2py] soaplib

2010-02-09 Thread max
I am trying to generate a soap web client for a wsdl service. With java, i can generate all the soap operations from the swdl file. Is there any way, I could do it in python? the zs1-2 library seems to be depreciated for python2.6 In web discussions, I see python soap libraries are always problemf

[web2py] Re: for your info

2010-02-09 Thread Beerc
Some experiences from many years of working with wikis, small to medium to large: -- Autoconversion: It is very hard to *automatically* convert any bigger, heterogenous material to a *good* wiki format. Attemptions are plenty, all of them failed. Probably it is impossible. Except conversio

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-09 Thread villas
IE (Win): Adjusting the delay to 3000 does help to give enough time to make a choice. Setting it above 3000 doesn't seem to make any further difference though. On dropdown, the input loses focus so you cannot keep typing to narrow down the selection. Arrow keys do not work. -- You receive

[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread selecta
IS_EMTPY_OR(IS_IN_SET(["A","B","C","D","E","F"])) On Feb 9, 7:40 am, Jason Brower wrote: > Don't know if I can discribe this in type but... > I need a validator that can alow only one A B C D E F other wise it > should be 0 > I haven't figure out how to make IS_IN_SET(["A","B","C","D","E","F"])

Re: [web2py] Multi user development on web2py

2010-02-09 Thread tiago almeida
Why not setup a shared db server on the network? It works, just needs some coordination when making changes to the model. Does it have to be sqlite? Regards, Tiago On Tue, Feb 9, 2010 at 6:17 AM, Thadeus Burgess wrote: > What is the recommended way of developing on a team with a web2py > applica

[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread selecta
IS_EMPTY_OR(IS_IN_SET(["A","B","C","D","E","F"])) On Feb 9, 11:36 am, selecta wrote: > IS_EMTPY_OR(IS_IN_SET(["A","B","C","D","E","F"])) > > On Feb 9, 7:40 am, Jason Brower wrote: > > > > > Don't know if I can discribe this in type but... > > I need a validator that can alow only one A B C D E

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Alexandre Andrade
Well, I never discuss about my clients needs. I just understand it and make the specification. 1. Documentation about web2py is poor. Everyone agree. 2. One reason for this is Massimo defines the new versions, and there is no roadmap. New features are added 'ad hoc' 3. Since Massimo decides what w

[web2py] Re: How to create patch for welcome app?

2010-02-09 Thread Alex
I found some side effect. When I click edit controller in menu from appadmin pages, appadmin controller is opened for editing. May be it is not good... To prevent this and start to edit default controller I've added the condition: [T('Controller'), False, URL('admin', 'default', 'edit/%s/contro

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Beerc
I suggest to see http://groups.google.com/group/web2py/msg/8bc0309e26c0cb84 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsub

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Beerc
I suggest to look at http://groups.google.com/group/web2py/msg/8bc0309e26c0cb84 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+u

[web2py] Re: for your info

2010-02-09 Thread Anand Vaidya
I have checked some other projects (django, tg, pylons, python.org etc). My understanding is that, => The core documentation must be maintained by core-devs who know the code inside out, This doc is the ultimate reference and should be in Restructured format text-files, in a SVN/Hg repository. R

[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread DenesL
On Feb 9, 1:40 am, Jason Brower wrote: > Don't know if I can discribe this in type but... > I need a validator that can alow only one A B C D E F other wise it > should be 0 That means you will accept anything but will have a value depending on the input, > I haven't figure out how to make IS_IN_

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-09 Thread Throngly
Yes, I'm also seeing this problem. Does anyone have a workaround other than querying by another field (which unfortunately isn't an option for me)? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googl

[web2py] postgres "there is already a transaction in progress"

2010-02-09 Thread Ted Baker
I'm getting this message in the postgres log, and then another message that web2py is trying to re-create the auth_user table. Web2py only reports the second one, which comes from welcome/models/db.py. Interestingly enough, I can then go ahead an view the error ticket, using the admin interface,

[web2py] Re: Customize classes or ids on SQLFORM submit button...

2010-02-09 Thread DenesL
With SQLFORM the submit button resides in the last row, second column. So form[0][-1][1][0] is the button. form[0] is the FORM form[0][-1] is the form's last row (TR) form[0][-1][1] is the second column (TD) form[0][-1][1][0] is the submit button (INPUT) you can change the class by form[0][-1][1

[web2py] Re: How to create patch for welcome app?

2010-02-09 Thread mdipierro
good point. On Feb 9, 6:33 am, Alex wrote: > I found some side effect. When I click edit controller in menu from > appadmin pages, appadmin controller is opened for editing. May be it > is not good... > > To prevent this and start to edit default controller I've added the > condition: > > [T('Co

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread mdipierro
Alexandre is right except this part is now partially solved. None of the tools suggested here worked in converting my Latex to wiki but I only used my own Latex macros so I stayed awake last night and wrote my own tool (works only with my own latex but works much better than anything else). I am le

Re: [web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread Jason Brower
Gees, I get fancy new command thrown at me all the time. :P Thanks! BR, Jason Brower On Tue, 2010-02-09 at 02:39 -0800, selecta wrote: > IS_EMPTY_OR(IS_IN_SET(["A","B","C","D","E","F"])) > > On Feb 9, 11:36 am, selecta wrote: > > IS_EMTPY_OR(IS_IN_SET(["A","B","C","D","E","F"])) > > > > On Feb

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Jason Brower
All those that think Massimo is either, 1. A total stud or 2. Freaking amazing. +1 Your a great guy Massimo. --- Warmest Regards, Jason Brower On Tue, 2010-02-09 at 06:36 -0800, mdipierro wrote: > Alexandre is right except this part is now partially solved. > None of the tools suggested here wor

[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread DenesL
Scratch onaccept=function it should be onvalidation=function and it is not new, see manual section 7.1 :) BR, Denes. On Feb 9, 9:43 am, Jason Brower wrote: > Gees, I get fancy new command thrown at me all the time. :P > Thanks! > BR, > Jason Brower > > On Tue, 2010-02-09 at 02:39 -0800, selec

[web2py] Re: for your info

2010-02-09 Thread mdipierro
I am taking this approach for now: 1) convert the book to markdown (including conversion of eps images to png and conversion of references) 2) real time markdown to html (using special markup for references) 3) ability to annotate the book sections with user comments 4) automatically link all keyw

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-09 Thread mdipierro
What is the exact traceback? On Feb 3, 6:11 pm, Carl wrote: > This may be related to GAE update_record() has subtle difference > compared to native > Web2Pyhttp://groups.google.com/group/web2py/browse_thread/thread/a69afded01... > but until shown otherwise, I've posed separately. > > I have this

[web2py] Re: postgres "there is already a transaction in progress"

2010-02-09 Thread mdipierro
Not sure. Can you try run with the -N option? On Feb 9, 5:31 am, Ted Baker wrote: > I'm getting this message in the postgres log, and then another message > that web2py is trying to re-create the auth_user table.  Web2py only > reports the second one, which comes from welcome/models/db.py. > > I

[web2py] Re: Customize classes or ids on SQLFORM submit button...

2010-02-09 Thread mdipierro
form[0][-1][1][0]['_class']='sbmcls' or form.element(_type='submit')['_class']='sbmcls' On Feb 9, 8:27 am, DenesL wrote: > With SQLFORM the submit button resides in the last row, second column. > So form[0][-1][1][0] is the button. > > form[0] is the FORM > form[0][-1] is the form's last row (T

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread DenesL
BTW I am working on improving the web2py wiki app, maybe it will be done today. On Feb 8, 11:43 pm, Mariano Reingart wrote: > For the web2py spanish documentation wiki (btw using web2py-wiki) we > are working in several features, including wyswyg editing and pdf > output, to organize and transla

[web2py] Automatic domain class generation from table definition

2010-02-09 Thread tiago almeida
Hello all, I've been thinking about implementing a module that takes a DAL table definition and generates a class object from that definition. The purpose of this is to use those automatically generated classes in the controllers instead of accessing the DAL directly. Eg: Creating an instance of t

Re: [web2py] postgres "there is already a transaction in progress"

2010-02-09 Thread Wes James
postgres gives that error, from other discussion here, because of the way web2py does a transaction on each db call, or something like that. If you look at that message on google, you'll see general info about that message also. There is not problem with it, I get it all the time too. -wes On Tu

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-09 Thread Throngly
My traceback is as follows: In FILE: /base/data/home/apps/throngly-com/1.339746990702093170/ applications/throngly/controllers/people.py Traceback (most recent call last): File "/base/data/home/apps/throngly-com/1.339746990702093170/gluon/ restricted.py", line 173, in restricted exec ccode

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-09 Thread kralin
Let me know if I can help. anyhow a good starting point would be making the table.insert() able to return None if no primary key or ID is defined. what do u think? is this possible? On 8 Feb, 17:29, mdipierro wrote: > You know I would take a patch > > On Feb 8, 9:49 am, DenesL wrote: > > > On F

Re: [web2py] Re: for your info

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 1:58 AM, Beerc wrote: > Some experiences from many years of working with wikis, small to > medium to large: This all sounds very sensible. We ought to take advantage of homogeneous material where we can find it. Docstrings in particular could feed a set of wiki pages (read-o

Re: [web2py] Re: for your info

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 6:55 AM, mdipierro wrote: > *** If you want to help, help make the Sphinx documentation work!!! > *** > > So we can replace epydoc with Sphinx. What would this entail? I'm guessing that most of us don't have a clue about Sphinx. -- You received this message because you are

[web2py] Duplicate session keys / uuids

2010-02-09 Thread Dmitri Zagidulin
I've been experiencing some session bleed across accounts (several instances of users crossing over into other users' sessions, and being able to see other users' accounts). And while investigating that (by the way, has anybody else run into this?), I've noticed that the database in which I keep my

[web2py] Re: for your info

2010-02-09 Thread Beerc
> On the choice of wiki, I'd take a look at MoinMoin I admit my experiences with MoinMoin are old (around 2005). Then it was mediocre. After your current recommendation I revised my memories. Latest versions are far better than the older ones. * It still hasn't section editing. Seemingly minor fe

Re: [web2py] Re: for your info

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 10:19 AM, Beerc wrote: >> On the choice of wiki, I'd take a look at MoinMoin > > I admit my experiences with MoinMoin are old (around 2005). > Then it was mediocre. > > After your current recommendation I revised my memories. > Latest versions are far better than the older one

Re: [web2py] Multi user development on web2py

2010-02-09 Thread Thadeus Burgess
I have thought about setting up a shared postgres. However the issue still remains that if the .table files are altered during two branches, when merging how do you pick which .table file to accept? And you can't get rid of .table files because then you would not be able to connect to the postgres

Re: [web2py] Automatic domain class generation from table definition

2010-02-09 Thread Thadeus Burgess
I remember a post about an ORM layer class on top of DAL, that allowed for dynamic selects django style, I can't find the post though, can anyone remember what it was called? -Thadeus On Tue, Feb 9, 2010 at 9:11 AM, tiago almeida wrote: > Hello all, > > I've been thinking about implementing

Re: [web2py] Multi user development on web2py

2010-02-09 Thread tiago almeida
Sorry, don't know. I understand your problem but this is beyound my web2py knowledge. Curious about other responses though. -- On Tue, Feb 9, 2010 at 6:38 PM, Thadeus Burgess wrote: > I have thought about setting up a shared postgres. However the issue > still remains that if the .table files ar

[web2py] SQLite serialization

2010-02-09 Thread Jonathan Lundell
I've got an application that makes very limited use of the database. No self-registration, and the only other table is a relatively static configuration table. So for convenience, I'd just as soon stick with SQLite for simplicity and self-containedness. So two questions, I guess. 1. Would ther

Re: [web2py] SQLite serialization

2010-02-09 Thread Thadeus Burgess
Take a look at my configure class in Blogitizor. It gives a class interface to a settings table, and will cache the results in ram, the only thing it misses is clearing out the cache when a setting changes http://code.google.com/p/blogitizor/source/browse/src/modules/utils.py You can take a look

Re: [web2py] Re: form - redirect - where are the variables?

2010-02-09 Thread Johann Spies
Your corrections helped me to understand the handling or the request vars better but I still have the original problem: Traceback (most recent call last): File "/home/js/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/home/js/web2py/applications/nuwesa

[web2py] Login mutliple times?

2010-02-09 Thread Johann Spies
I have a website where some documents require login to be accessed. Some of the visitors to the site complained of having to login multiple times and today, when I did not access the site as administrator, I experienced the same: Log in at first and then when I access the document, I was again ask

[web2py] Re: Login mutliple times?

2010-02-09 Thread Dmitri Zagidulin
Several questions. Are you storing sessions on disk, or in a database? What's the decorator you're using, to require login? (is it @auth.requires_login()?) Is the 'user' function exposed, for those controllers? Do you have any custom routes.py or apache mod_rewrite routing that might be interferi

[web2py] Re: soaplib

2010-02-09 Thread Dmitri Zagidulin
I'm not sure about other libraries, but I'm currently using, and have had good experience with, the suds (https://fedorahosted.org/suds/ ) soap client. On Feb 9, 4:00 am, max wrote: > I am trying to generate a soap web client for a wsdl service. > With java, i can generate all the soap operations

Re: [web2py] Re: Login mutliple times?

2010-02-09 Thread Johann Spies
On 9 February 2010 21:14, Dmitri Zagidulin wrote: > Several questions. Are you storing sessions on disk, or in a database? I do not clearly understand what you mean by "storing sessions". I use sqlite as database. > > What's the decorator you're using, to require login? (is it > @auth.requires_

[web2py] Re: Multi user development on web2py

2010-02-09 Thread Dmitri Zagidulin
FWIW, I do multi user development on web2py, and take the route that you describe -- not version the .table files, and do a migrate=False on all the tables in the model. This is partly because of multi developer collisions, and partly because the migrate functionality does not work for the web2py v

[web2py] Re: Login mutliple times?

2010-02-09 Thread Dmitri Zagidulin
Sorry for the confusion. Web2py stores session data, by default, on disk, and that sounds like what you're doing. There is a way to make it store session data in a separate database, by calling session.connect(...). On Feb 9, 2:31 pm, Johann Spies wrote: > On 9 February 2010 21:14, Dmitri Zagid

[web2py] Unable to send email

2010-02-09 Thread minh
Hi, I am having problems with the e-mail verification while running on my local dev instance. Here are my settings: mail=Mail(globals()) # mailer mail.settings.server='smtp.gmail.com:587'# your SMTP server mail.settings.sender='usern...@gmail.com' # y

Re: [web2py] Re: soaplib

2010-02-09 Thread Mariano Reingart
You can check a Simple Soap Client we developed for electronic invoices via web services here in Argentina, look at: http://www.sistemasagiles.com.ar/trac/wiki/SoapClient Sorry it is in spanish, but examples and code are self explanatory (the implementation is just two files < 300LOC) . It is very

[web2py] Re: Automatic domain class generation from table definition

2010-02-09 Thread selecta
I really like the psql module http://pypi.python.org/pypi/pSQL/0.9.2 you can do things like result = db.Address.City["Oklahoma%"] at the beginning it was hard for me to learn the web2py dal, now it is ok to use it but sometimes I wish i could do things like in psql On 9 Feb., 19:51, Thadeus Burge

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread selecta
denesL: looking very much forward to that, hope i can also use it to document my own code with it On 9 Feb., 16:01, DenesL wrote: > BTW I am working on improving the web2py wiki app, maybe it will be > done today. > > On Feb 8, 11:43 pm, Mariano Reingart wrote: > > > > > For the web2py spanish d

[web2py] RESOLVED Re: Blank page with 'Done' error

2010-02-09 Thread Dmitri Zagidulin
If anybody's curious, I found out what the problem was. It was over-zealous internet security software (like Kaspersky Internet Security) on our customer's end. It was blocking certain pages, based on word fragments in the url. The word 'Done' that was reported by the customers was not web page t

[web2py] Re: Unable to send email

2010-02-09 Thread minh
Nevermind... my virus scanner was blocking SMTP access from Python -_- On Feb 9, 11:47 am, minh wrote: > Hi, > > I am having problems with the e-mail verification while running on my > local dev instance. > > Here are my settings: > > mail=Mail(globals())                                  # mailer

[web2py] Customizing User Registration Form

2010-02-09 Thread minh
Our user table has many fields, so when the Auth() form is auto- generated, there is a long form displayed on the page. I want to make it so that registration will be a 2-3 step process containing 2-3 forms. I was wondering what the best way to customize this form would be? Would it be best to jus

Re: [web2py] AutocompleteWidget: experimental, magic, RFC

2010-02-09 Thread Wes James
When text is typed that is not in the list and submitted there is this error: Traceback (most recent call last): File "/opt/00/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/opt/00/applications/0/controllers/default.py", line 60, in File "/opt/00/gluon/gl

[web2py] Re: Multi user development on web2py

2010-02-09 Thread MikeEllis
FWIW, the following approach is working for us with a small team of developers. We use SVN instead of mercurial, but I don't see why this wouldn't work for mercurial. 1. All the python, html, and static files (and _nothing_ else) in our app's directory tree are under version control in a separate

Re: [web2py] Re: Multi user development on web2py

2010-02-09 Thread Thadeus Burgess
Mike, how are yall testing changes locally before you commit? Does each developer have his own version of the database in sqlite with different data? -Thadeus On Tue, Feb 9, 2010 at 3:39 PM, MikeEllis wrote: > FWIW, the following approach is working for us with a small team of > developers.

[web2py] upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
Should I be able to upgrade a deployed app by installing the new version over the old one? If not, how? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group

[web2py] Re: Multi user development on web2py

2010-02-09 Thread Dmitri Zagidulin
Ooh, thanks for the tip with pysvn! I've been wanting something like that. On Feb 9, 4:39 pm, MikeEllis wrote: > FWIW, the following approach is working for us with a small team of > developers.  We use SVN instead of mercurial, but I don't see why this > wouldn't work for mercurial. > > 1. All t

[web2py] Re: Login mutliple times?

2010-02-09 Thread Richard
could the session timeout be set very low? On Feb 10, 6:07 am, Johann Spies wrote: > I have a website where some documents require login to be accessed. > Some of the visitors to the site complained of having to login > multiple times and today, when I did not access the site as > administrator,

[web2py] Re: for your info

2010-02-09 Thread Richard
sounds like this app will be like djangobook - neat. On Feb 10, 1:55 am, mdipierro wrote: > I am taking this approach for now: > > 1) convert the book to markdown (including conversion of eps images to > png and conversion of references) > 2) real time markdown to html (using special markup for

[web2py] Re: upgrading a deployed app

2010-02-09 Thread Richard
I often do this and my only problem is when updating modules, which requires me to restart the server so web2py uses the new versions. On Feb 10, 10:00 am, Jonathan Lundell wrote: > Should I be able to upgrade a deployed app by installing the new version over > the old one? If not, how? -- Yo

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Richard
what kind of changes are you making? I read some reports about login problems, so do you think its worth allowing anonymous edits, like wikipedia permits? On Feb 10, 2:01 am, DenesL wrote: > BTW I am working on improving the web2py wiki app, maybe it will be > done today. > > On Feb 8, 11:43 pm,

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Mariano Reingart
Things already fixed: - No anonymous edits, but changed @auth.requires_membership('developer') to requires_login() - Fixed create_page bug - Full internationalization - Spanish translation Denes is working on more radical changes, and I'm working on timeline, wyswyg & pdf output. On Tue, Feb 9, 2

Re: [web2py] Re: upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 4:07 PM, Richard wrote: > I often do this and my only problem is when updating modules, which > requires me to restart the server so web2py uses the new versions. Thanks. I don't have any modules, but I might have been confused between compiled and uncompiled versions. I'll e

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Thadeus Burgess
No anonymous edits... Django fanboys will deface it within minutes of it going up -Thadeus On Tue, Feb 9, 2010 at 6:36 PM, Mariano Reingart wrote: > Things already fixed: > - No anonymous edits, but changed > @auth.requires_membership('developer') to requires_login() > - Fixed create_page bu

Re: [web2py] Re: upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 4:07 PM, Richard wrote: > I often do this and my only problem is when updating modules, which > requires me to restart the server so web2py uses the new versions. Hmm. I uninstalled the app, and then installed it from scratch (not compiled). Worked fine. I then installed it a

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 4:52 PM, Thadeus Burgess wrote: > No anonymous edits... Django fanboys will deface it within minutes of > it going up I think that's best. Wikipedia expends an awful lot of effort cleaning up after defacers. > > -Thadeus > > > > > > On Tue, Feb 9, 2010 at 6:36 PM, Maria

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-09 Thread DenesL
Don't wait for me, currently I have no plans to work on this. On 9 feb, 10:47, kralin wrote: > Let me know if I can help. > > anyhow a good starting point would be making the table.insert() able > to return None > if no primary key or ID is defined. what do u think? is this > possible? > > On 8

[web2py] Re: for your info

2010-02-09 Thread Anand Vaidya
After some quick testing, I have found that MoinMoin works fine with RST without any additional software (only python-docutils needed) and with markdown too (needs python-markdown installed). Moreover, with a theme such as Moniker, the wiki looks neat. Regards Anand On Feb 10, 8:02 am, Richard

[web2py] Re: Duplicate session keys / uuids

2010-02-09 Thread mdipierro
This is not normal. Can you share more details about the setup? The amount of traffic and the problem you encountered? In web2py all sessions are uuid and the probablility that two uuid are the same is null (unless these machine are one clone of the others in which case I am not sure how the pytho

[web2py] Re: form - redirect - where are the variables?

2010-02-09 Thread mdipierro
my bad. place replace all session.vars... with request.vars... On Feb 8, 4:26 pm, mdipierro wrote: > You have a few problems, fixed below hopefully > > def index(): >     form = FORM(TABLE(TR('Field:','', >                          SELECT( >                              OPTION('title', _value = 1

[web2py] Re: Automatic domain class generation from table definition

2010-02-09 Thread mdipierro
If I understand it, it is not that different result = db(db.Address.City.like('Oklahoma%')).select() On Feb 9, 2:58 pm, selecta wrote: > I really like the psql modulehttp://pypi.python.org/pypi/pSQL/0.9.2 > you can do things like > result = db.Address.City["Oklahoma%"] > > at the beginning it wa

[web2py] Re: Customizing User Registration Form

2010-02-09 Thread mdipierro
you can use db.auth_used.field.writable=False to turn off a field. You can make a wizard that moved on self submissions def profile(): if not session.wizard_step: turn off some fields form = if form accepts reload and session.wizard_step=1 elif session.wizard_

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-09 Thread mdipierro
No you still needs to setup a validator On Feb 9, 3:29 pm, Wes James wrote: > When text is typed that is not in the list and submitted there is this error: > > Traceback (most recent call last): >   File "/opt/00/gluon/restricted.py", line 173, in restricted >     exec ccode in environment >   Fi

[web2py] Re: upgrading a deployed app

2010-02-09 Thread mdipierro
I have never seen this. Let me know if you find out what the problem is. On Feb 9, 6:58 pm, Jonathan Lundell wrote: > On Feb 9, 2010, at 4:07 PM, Richard wrote: > > > I often do this and my only problem is when updating modules, which > > requires me to restart the server so web2py uses the new v

[web2py] Firebird Connection on non-standard port

2010-02-09 Thread villas
Massimo, Could you please patch sql.py near line 1061: self._pool_connection(lambda : \ kinterbasdb.connect(dsn='%s:%s' % (host+'/'+port, db), user=user, password=passwd, charset=charset)) Explanation: I have joined +'/'+port to the host string. The omission of the

Re: [web2py] Re: upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 8:16 PM, mdipierro wrote: > I have never seen this. Let me know if you find out what the problem > is. OK; tomorrow. This is on Linux. Looking at app_install, I see this: > upfile = open(upname, 'wb') > upfile.write(fobj.read()) > upfile.close() >

[web2py] DB query help

2010-02-09 Thread minh
Hi, I have something along the lines of db.define_table('post', ...) db.define_table('post_comment', Field('post_id', db.post), Field('comment_by', db.auth_user), Field('comment', 'text') I'm trying to list the comments along with the author's name. However, I'm having problems joini

[web2py] Re: DB query help

2010-02-09 Thread mr.freeze
The DAL will do the join for you on a reference field. You should be able to do: comments = db(db.post_comment.post_id==request.args(0)).select() for c in comments: print c.comment_by.username,c.comment I don't think this works on GAE On Feb 9, 11:19 pm, minh wrote: > Hi, > > I have someth

[web2py] CAS

2010-02-09 Thread SergeyPo
I am evaluating web2py CAS appliance for the following application: central authentication and moneykeeping for many auctions. CAS should not only validate users for many auction sites but also store user's payments, balance, respond to requests (soap/rpc) on balance available, blocking amounts etc

Re: [web2py] Re: Login mutliple times?

2010-02-09 Thread Johann Spies
I think I found the problem: it only happened when I accessed a html-page that was in /private/static. I want to have login access to that file but putting it in private/static caused this problem of double login. Somehow the session seems to disappear. Moving it to /static made the problem (an

[web2py] Re: powered by drupal?

2010-02-09 Thread ma...@rockiger.com
This is my honest opinion. Practice what you preach. On Feb 8, 11:12 pm, mikech wrote: > Seriously? > > On Feb 8, 1:47 pm, "ma...@rockiger.com" > wrote: > > > > > From the web2py marketing department: > > > Using anything different than web2py is a no go. > > Practice what you preach. Otherwise

[web2py] Re: upgrading a deployed app

2010-02-09 Thread mdipierro
I had not understood. This is not about upgrading web2py but about upgrading an app. The fact is it is not safe to unpack an up if one with the same name exists. How do you know it is the same? Right now it simply does not allow that, it wants you uninstall first. I guess we override this check but

[web2py] Re: DB query help

2010-02-09 Thread mdipierro
Yes this: comments = db(db.post_comment.post_id==request.args(0)).select() for c in comments: print c.comment_by.username,c.comment works on GAE but this is not a JOIN. This a join: comments = db(db.post_comment.post_id==db.post.id)==.select() for c in comments: print c.post.content,c.p

[web2py] Re: CAS

2010-02-09 Thread mdipierro
The CAS protocol does not allow it so the app does not. Probably it is not too difficult to add the functionality but it would not be called CAS any more. On Feb 10, 12:28 am, SergeyPo wrote: > I am evaluating web2py CAS appliance for the following application: > central authentication and moneyk

[web2py] Re: Login mutliple times?

2010-02-09 Thread mdipierro
Can you send me privately the code in question. I do not underand this and I would like in case it happens again. On Feb 10, 1:12 am, Johann Spies wrote: > I think I found the problem:  it only happened when I accessed a > html-page that was in /private/static.  I want to have login access to > t

[web2py] Re: powered by drupal?

2010-02-09 Thread mdipierro
I agree. I cannot prevent users to what they want and if using third party tools is a requirement for people willing to create documentation, fine. I am going to stick with web2py and I will hopefully post some documentation online soon. On Feb 10, 1:22 am, "ma...@rockiger.com" wrote: > This is m