[web2py] Re: XML sanitizer question

2010-07-22 Thread mdipierro
I agree. On Jul 23, 12:34 am, Jonathan Lundell wrote: > On Jul 22, 2010, at 10:07 PM, mr.freeze wrote: > > > That works. Thanks. > > I think perhaps sanitizer could use some work. A bare is harmless enough. > And ought to be OK. > > > > > On Jul 22, 11:23 pm, Jonathan Lundell wrote: > >> On J

[web2py] Re: Trouble creating session variable

2010-07-22 Thread mdipierro
field objects cannot be stored in sessions because they contain a reference to an open database connection. That is not serializable. On Jul 23, 12:18 am, weheh wrote: > I want to create a session variable session.orderby so that later on, > I can do > >     db(query).select(db.table.ALL,orderby=

[web2py] Re: How to pass field list to select() clause?

2010-07-22 Thread mdipierro
db(query).select(left=left,orderby=orderby,*fields) On Jul 22, 11:58 pm, weheh wrote: > OK, I lied. I really want to do this > > db(query).select(*fields,left=left,orderby=orderby) > > where left and orderby are also variables. > > db(query).select(*fields) works OK. > > However, > > db(query).se

[web2py] Re: Why am I getting logged out automatically? [Closed but smells fishy]

2010-07-22 Thread mdipierro
What is the name of the app? That affects the name of the cookies. On Jul 22, 11:46 pm, weheh wrote: > Sorry, Massimo, but I don't understand your question.

[web2py] Re: rocket performance issues

2010-07-22 Thread mdipierro
This is now in 1.81.5 On Jul 22, 11:18 pm, Phyo Arkar wrote: > Thats very good news. I will be trying out soon! > > On 7/22/10, Timbo wrote: > > > OK, so it's a thread-starvation issue.  Let this be the interim fix > > for web2py.  I've got several busy days ahead of me so I'll put out a > > rea

[web2py] Re: exercise of the day

2010-07-22 Thread mdipierro
+1 On Jul 22, 7:08 pm, "mr.freeze" wrote: > Assuming you meant: > r.y.y.y.t > It works because db.a.y is a self referencing field. Inserting into > db.a doesn't return an int, but a Reference, which has a __getattr__ > that returns the record it references. Any number of y's should work: > r.y.y.

[web2py] Re: MENU() redefine defaults for _class, ul_class, li_class

2010-07-22 Thread mdipierro
LOL. We all are somedays On Jul 22, 6:40 pm, Andrew Thompson wrote: >   On 7/22/2010 7:37 PM, Andrew Thompson wrote: > > >  Is it possible to redefine the defaults for  _class, ul_class, and > > li_class on a per app basis? > > Nevermind, I'm an idiot. > > -- > Andrew Thompsonhttp://aktzero.com/

Re: [web2py] Re: XML sanitizer question

2010-07-22 Thread Jonathan Lundell
On Jul 22, 2010, at 10:07 PM, mr.freeze wrote: > That works. Thanks. I think perhaps sanitizer could use some work. A bare is harmless enough. And ought to be OK. > > On Jul 22, 11:23 pm, Jonathan Lundell wrote: >> On Jul 22, 2010, at 7:41 PM, mr.freeze wrote: >> >>> Negative, it sanitizes

[web2py] Trouble creating session variable

2010-07-22 Thread weheh
I want to create a session variable session.orderby so that later on, I can do db(query).select(db.table.ALL,orderby=session.orderby) Problem is, when I set session.orderby=db.table.field I get a ticket: Traceback (most recent call last): File "C:\web2py\gluon\main.py", line 407, in

[web2py] Re: XML sanitizer question

2010-07-22 Thread mr.freeze
That works. Thanks. On Jul 22, 11:23 pm, Jonathan Lundell wrote: > On Jul 22, 2010, at 7:41 PM, mr.freeze wrote: > > > Negative, it sanitizes those too: > XML('test',sanitize=True,permitted_tags = > ['a']).xml() > > 'test' > > Only absolute URLs are acceptable. Tryhttp://web2py.com. >

[web2py] Re: How to pass field list to select() clause?

2010-07-22 Thread weheh
OK, I lied. I really want to do this db(query).select(*fields,left=left,orderby=orderby) where left and orderby are also variables. db(query).select(*fields) works OK. However, db(query).select(*fields,left=left,orderby=orderby) gives a syntax error just before the left clause: left=left

[web2py] Re: How to pass field list to select() clause?

2010-07-22 Thread weheh
I'd already tried that and it didn't seem to work. I'll try again.

[web2py] Re: Why am I getting logged out automatically? [Closed but smells fishy]

2010-07-22 Thread weheh
Sorry, Massimo, but I don't understand your question.

[web2py] Re: LEFT JOIN query as object?

2010-07-22 Thread mwolfe02
Thanks. I'll make that work. On Jul 22, 6:08 pm, Thadeus Burgess wrote: > It is kinda possible. Save both queries as objects. Left is just a query > that tells web2py which fields in the tables should be linked together. > > For example, > > lefton = (db.friend.dog_id == db.dog.id) > where = db(

Re: [web2py] chunks

2010-07-22 Thread Jonathan Lundell
On Jul 22, 2010, at 9:32 PM, Phyo Arkar wrote: > You mean ajax? > You can do this using Ajax. > In Jquery: > $(#div_id).load(Path_To_Your_Page) No, I meant just serving a regular (dynamic) page. I'm not using Ajax. > > On 7/23/10, Jonathan Lundell wrote: >> It'd be nice to be able to return a

Re: [web2py] chunks

2010-07-22 Thread Phyo Arkar
You mean ajax? You can do this using Ajax. In Jquery: $(#div_id).load(Path_To_Your_Page) On 7/23/10, Jonathan Lundell wrote: > It'd be nice to be able to return a dynamic page in (controlled) chunks. I > have no idea how the interface to something like that might work

[web2py] Serving Static files with Space under /static/?

2010-07-22 Thread Phyo Arkar
Hello Web2py! Here i am having this problem. As web2py do not allow Space in paths , trying this having problem "Invalid Request". i am trying to serve files which are extracted from archives under web2py /static/ folder. They may or May not include space in extracted file name or Directory names

Re: [web2py] Re: XML sanitizer question

2010-07-22 Thread Jonathan Lundell
On Jul 22, 2010, at 7:41 PM, mr.freeze wrote: > Negative, it sanitizes those too: XML('test',sanitize=True,permitted_tags = ['a']).xml() > 'test' Only absolute URLs are acceptable. Try http://web2py.com. > > On Jul 22, 9:38 pm, Jonathan Lundell wrote: >> On Jul 22, 2010, at 7:04 PM,

Re: [web2py] Re: rocket performance issues

2010-07-22 Thread Phyo Arkar
Thats very good news. I will be trying out soon! On 7/22/10, Timbo wrote: > OK, so it's a thread-starvation issue. Let this be the interim fix > for web2py. I've got several busy days ahead of me so I'll put out a > real fix for Rocket in the coming days. > > -tim > > On Jul 22, 11:39 am, Micha

[web2py] chunks

2010-07-22 Thread Jonathan Lundell
It'd be nice to be able to return a dynamic page in (controlled) chunks. I have no idea how the interface to something like that might work

[web2py] Re: XML sanitizer question

2010-07-22 Thread mr.freeze
Negative, it sanitizes those too: >>> XML('test',sanitize=True,permitted_tags = >>> ['a']).xml() 'test' On Jul 22, 9:38 pm, Jonathan Lundell wrote: > On Jul 22, 2010, at 7:04 PM, mr.freeze wrote: > > XML('test',sanitize=True,permitted_tags = ['b']).xml() > > 'test' > XML('test',sanitiz

Re: [web2py] XML sanitizer question

2010-07-22 Thread Jonathan Lundell
On Jul 22, 2010, at 7:04 PM, mr.freeze wrote: XML('test',sanitize=True,permitted_tags = ['b']).xml() > 'test' XML('test',sanitize=True,permitted_tags = ['a']).xml() > 'test' > > Why does the 'a' element get sanitized? At first glance, it looks like it might require an attribute from a

[web2py] XML sanitizer question

2010-07-22 Thread mr.freeze
>>> XML('test',sanitize=True,permitted_tags = ['b']).xml() 'test' >>> XML('test',sanitize=True,permitted_tags = ['a']).xml() 'test' Why does the 'a' element get sanitized?

[web2py] Re: exercise of the day

2010-07-22 Thread mr.freeze
Assuming you meant: r.y.y.y.t It works because db.a.y is a self referencing field. Inserting into db.a doesn't return an int, but a Reference, which has a __getattr__ that returns the record it references. Any number of y's should work: r.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.t 't' is the virtual field

[web2py] Re: exercise of the day

2010-07-22 Thread mr.freeze
It shouldn't. It should throw an error at the print statement because 'a' is not defined. On Jul 22, 6:33 pm, mdipierro wrote: > The following code uses: > 1) a computed field > 2) a self reference > 3) a virtual field > > >>> db.define_table('a',Field('x'),Field('y','reference > >>> a'),Field('

Re: [web2py] MENU() redefine defaults for _class, ul_class, li_class

2010-07-22 Thread Andrew Thompson
On 7/22/2010 7:37 PM, Andrew Thompson wrote: Is it possible to redefine the defaults for _class, ul_class, and li_class on a per app basis? Nevermind, I'm an idiot. -- Andrew Thompson http://aktzero.com/

[web2py] MENU() redefine defaults for _class, ul_class, li_class

2010-07-22 Thread Andrew Thompson
Is it possible to redefine the defaults for _class, ul_class, and li_class on a per app basis? -- Andrew Thompson http://aktzero.com/

[web2py] How to submit a custom form

2010-07-22 Thread elfuego1
Hi, I had made my custom form, but adding {{=form.custom.submit}} doesn't let me send the form. How should I add submit button to the page, so I would get a default fields validation and form submit functionallity? Best regards.

[web2py] Re: Why am I getting logged out automatically? [Closed but smells fishy]

2010-07-22 Thread mdipierro
How is the app called? On Jul 22, 6:30 pm, weheh wrote: > After further muddling about, I'm now wondering if this might be a > cookie corruption issue, if such a thing is possible. Subsequent to > this problem report, the UI tab cookie stopped working properly. I > ultimately gave up trying to fi

[web2py] exercise of the day

2010-07-22 Thread mdipierro
The following code uses: 1) a computed field 2) a self reference 3) a virtual field >>> db.define_table('a',Field('x'),Field('y','reference >>> a'),Field('z',compute=lambda row: row['x']*3)) >>> class A: >>> def t(self): return len(self.a.z) >>> db.a.virtualfields.append(A()) >>> r=db.a.inse

[web2py] Re: Why am I getting logged out automatically? [Closed but smells fishy]

2010-07-22 Thread weheh
After further muddling about, I'm now wondering if this might be a cookie corruption issue, if such a thing is possible. Subsequent to this problem report, the UI tab cookie stopped working properly. I ultimately gave up trying to find a problem in my code and wiped the cookie clean. Now, everythin

[web2py] 1.81.5 is OUT

2010-07-22 Thread mdipierro
it contains mostly bug fixes. Most of the fixes are obscure except to important ones: 1) Scott fixed memcache that broke a few versions ago 2) Mike and Tim found and fixed a process starvation issue with the built-in web server. This caused occasionally slow response time on high traffic. The fix i

[web2py] Re: How to pass field list to select() clause?

2010-07-22 Thread mr.freeze
Yes, you just need to unpack the list: db(query).select(*fields) On Jul 22, 5:44 pm, weheh wrote: > Is there a way to make a list of db fields: > > fields=[db.table1.id, db.table2.name, etc.] > > and then use that list in a query, e.g. > > db(query).select(fields) > > ? > > I've tried various thi

[web2py] Re: WOW!!

2010-07-22 Thread mdipierro
Thanks you can do this. register a domain like mydomain.com and access it as http://mycommunty.mydomain.com in the model file you can do: community = request.env.host_name.split('.')[0] db=DAL('sqlite://storage.%s.sqlite' % community) and that should be all you need. On Jul 22, 1:58 

[web2py] WOW!!

2010-07-22 Thread david.waldrop
All, I just discovered this amazing framework and am immediately switching to it (from adobe) for a current project I am working on. It is quite different from the way I have built solutions in the past. Here is the basic structure of how I need to approach the problem: 1) I want a user to log in

[web2py] How to pass field list to select() clause?

2010-07-22 Thread weheh
Is there a way to make a list of db fields: fields=[db.table1.id, db.table2.name, etc.] and then use that list in a query, e.g. db(query).select(fields) ? I've tried various things but they don't work. I suppose I'd have to inspect the code to figure it out.

[web2py] Re: cPickle large object causes web2py to crash

2010-07-22 Thread mdipierro
How big is the pickled file? On Jul 22, 5:08 pm, "topher.baron" wrote: > web2py community, > > I'm currently implementing a web application on localhost running OS > 10.6.4.  When I cPickle.dump a large object to the /tmp directory, > web2py crashes.  The same operations work with smaller objects

[web2py] Re: Problem with TH html helpers

2010-07-22 Thread mdipierro
good catch. Thanks for letting us know. On Jul 22, 4:16 pm, marcelielapointe wrote: > I finally find the problem!! > > I am doing some import in a models, in particular: > > from pylab import * > > if I comment this line everything works fine > > So It's look like it's not a good idea to impo

Re: [web2py] Re: LEFT JOIN query as object?

2010-07-22 Thread Thadeus Burgess
It is kinda possible. Save both queries as objects. Left is just a query that tells web2py which fields in the tables should be linked together. For example, lefton = (db.friend.dog_id == db.dog.id) where = db(db.friend.name == "fred") ... continue and do some stuff with the "where" query object

[web2py] cPickle large object causes web2py to crash

2010-07-22 Thread topher.baron
web2py community, I'm currently implementing a web application on localhost running OS 10.6.4. When I cPickle.dump a large object to the /tmp directory, web2py crashes. The same operations work with smaller objects. Does this mean I need to increase the heap? If so, how do I do this? If not, a

[web2py] Re: Problem with TH html helpers

2010-07-22 Thread marcelielapointe
I finally find the problem!! I am doing some import in a models, in particular: from pylab import * if I comment this line everything works fine So It's look like it's not a good idea to import module in model or only not doing: from module import * ... On Jul 22, 5:03 pm, marcelielap

[web2py] Re: LEFT JOIN query as object?

2010-07-22 Thread mwolfe02
It turns out the error I got it was for a different syntactical mistake I'd made. The relevant error is slightly different: TypeError: 'Rows' object is not callable I assume this is because the .select() method returns a 'Rows' object? On Jul 22, 4:09 pm, Michael Wolfe wrote: > I'm still learn

[web2py] Re: Problem with TH html helpers

2010-07-22 Thread marcelielapointe
If I try something like: print type(TH) it prints: where it could have been defined??? On Jul 22, 4:53 pm, marcelielapointe wrote: > I think I find something.. > > in dateutil/rrule.py "MO", "TU", "WE", "TH", "FR", "SA", "SU" are > define. If I replace TH with either of them, the same ticke

[web2py] Re: Problem with TH html helpers

2010-07-22 Thread marcelielapointe
I think I find something.. in dateutil/rrule.py "MO", "TU", "WE", "TH", "FR", "SA", "SU" are define. If I replace TH with either of them, the same ticket is issued. If I replace TH with another random string like TW or something else I got: NameError: global name 'Tdsd' is not defined so it seem

[web2py] LEFT JOIN query as object?

2010-07-22 Thread Michael Wolfe
I'm still learning web2py, so bear with me. I am trying to write a somewhat complex query and would like to build it as a series of smaller, easier to understand queries. web2py seems to support this beautifully for INNER JOINs and WHERE clauses as explained here: http://www.thadeusb.com/weblog/2

[web2py] Re: CakePHP-like recursive queries?

2010-07-22 Thread scausten
I'm an idiot. I actually hadn't tried the transaction.product.name syntax, and lo-and-behold, it works. web2py is awesome. On Jul 22, 8:31 pm, scausten wrote: > There's a really cool feature in the CakePHP web framework whereby you > can query a database recursively and have a query return not o

[web2py] CakePHP-like recursive queries?

2010-07-22 Thread scausten
There's a really cool feature in the CakePHP web framework whereby you can query a database recursively and have a query return not only the records of a given query, but also any other records they refer to, and I was wondering if there's anything similar in web2py. (There is a 'recursive' flag in

[web2py] Re: Problem with TH html helpers

2010-07-22 Thread marcelielapointe
no, I don't use id, I use a string. I create a new application and everything works fine. So the problem comes from my app, but where does it comes from? I create a test controller: # coding: utf8 # try something like def index(): table = TABLE(TR(TH('1'),TH('2')),TR(TD('un'),TD('deux')))

[web2py] Re: SQLite Logging

2010-07-22 Thread Yarin
Working on one now... On Jul 22, 8:20 am, Massimo Di Pierro wrote: > This is useful. I suggest making a web2py slice about this. > > Massimo > > On Jul 21, 2010, at 9:37 PM, Iceberg wrote: > > > > > Just a quick thought. Since web2py itself already handles SQLite db   > > well under multi-thread

[web2py] Re: rocket performance issues

2010-07-22 Thread Timbo
OK, so it's a thread-starvation issue. Let this be the interim fix for web2py. I've got several busy days ahead of me so I'll put out a real fix for Rocket in the coming days. -tim On Jul 22, 11:39 am, Michael Ellis wrote: > Much improved with suggested change.  Latencies for .js/.css files re

[web2py] Re: Is pyforum.org discontinued?

2010-07-22 Thread ionel
Thank you. On Jul 22, 12:10 pm, Bruno Rocha wrote: > a copy is attached, I Don't know if  it is discontinued, but I am > working to port Pyforum to run on GAE. > > 2010/7/22 ionel : > > > Hello, > > > Is pyforum a discontinued project? > > > I need a copy of pyforum but thehttp://www.pyforum.org

Re: [web2py] Re: rocket performance issues

2010-07-22 Thread Michael Ellis
Much improved with suggested change. Latencies for .js/.css files reduced to 100-150 msec. Thanks Tim! Cheers, Mike On Thu, Jul 22, 2010 at 12:27 PM, Timbo wrote: > Try one quick change for me please...rocket is constructed around line > 655 in main.py > > Add a parameter to the constructor

[web2py] Re: rocket performance issues

2010-07-22 Thread Timbo
Try one quick change for me please...rocket is constructed around line 655 in main.py Add a parameter to the constructor call(s): max_threads=0 Please let me know if that affects the problem. -tim On Jul 22, 10:34 am, mdipierro wrote: > I can reproduce the problem. I did on localhost with two

[web2py] Re: web2py performance issue or rather my fault?

2010-07-22 Thread mdipierro
One more thing... in your tests, you may want to save the httpserver.log. If you still have problems, it will be useful to compare cherokee logs vs httpserver logs. Massimo On Jul 21, 4:33 pm, Thadeus Burgess wrote: > I try. > > I have several copies of web2py core that I have modified in attemp

[web2py] Re: Problem with TH html helpers

2010-07-22 Thread mdipierro
I cannot reproduce the problem with this: TABLE(TR(TH('1'),TH(2)),TR(TD('un'),TD('deux'))) It is possible that instead of a constant number you have the problem when you pass a record id? Mind that a record id is not an int, it only looks like an int. You have to do TH(str(id)) On Jul 22, 9:58 a

[web2py] Problem with TH html helpers

2010-07-22 Thread marcelielapointe
Hi, I'm having problem producing a table with HTML helpers.. here is the code: table = TABLE(TR(TH('1'),TH(2)),TR(TD('un'),TD('deux'))) return dict(table=table) The problem is with TH('1'), if I put a number in TH there is no problem but I want to put a string. Here is the ticket: Traceback (

[web2py] Re: rocket performance issues

2010-07-22 Thread mdipierro
I can reproduce the problem. I did on localhost with two different browsers. Using firebug I can see it takes 25seconds to download base.css (the problem is not always with the same file). While I did the test, I also monitored httpserver.log and I find that it NEVER takes more than 1.2ms serve bas

[web2py] Last Week for WAE ( Web2py Application Exhibition )

2010-07-22 Thread NetAdmin
Web2py Application Exhibition Do you have a Web2py app that you'd like to show the world? If so, you may be interested in the Web2py Application Exhibition. The WAE is a way to... 1. Demonstrate what can be done with Web2py. 2. Share and learn about useful web2py, python, Javascript, jQuery etc.

[web2py] Is pyforum.org discontinued?

2010-07-22 Thread ionel
Hello, Is pyforum a discontinued project? I need a copy of pyforum but the http://www.pyforum.org is always down. Thanks i.a.

[web2py] Re: Executing applications from web2py

2010-07-22 Thread mdipierro
http://bazaar.launchpad.net/~qcdvis/qcdvis/trunk/files/head:/plugin_pbs/ On Jul 22, 8:51 am, Hector Oron wrote: > Hi, > > 2010/7/21 mdipierro : > > > Welcome Hector, > > Thanks > > > using os.system is fine if the the commands are short and independent. > > I would recommend creating a database t

[web2py] questions on groups

2010-07-22 Thread Frank
I get a problem, after I created a fresh new app,I only add following into db.py, if not auth.id_group("Human Resource"): group_id11=auth.add_group(role="Human Resource", description="can access the admin action") auth.add_permission(group_id11, 'access to manage') when I run this app, it se

Re: [web2py] Re: rocket performance issues

2010-07-22 Thread Jonathan Lundell
On Jul 22, 2010, at 6:55 AM, MikeEllis wrote: > Doesn't fix the symptom Ah. Well, negative results are still results. > > On Jul 21, 8:54 pm, Jonathan Lundell wrote: >> On Jul 21, 2010, at 2:03 PM, mdipierro wrote: >> >>> The fact that you are having the problem with static files is giving >

[web2py] Re: rocket performance issues

2010-07-22 Thread MikeEllis
Doesn't fix the symptom On Jul 21, 8:54 pm, Jonathan Lundell wrote: > On Jul 21, 2010, at 2:03 PM, mdipierro wrote: > > > The fact that you are having the problem with static files is giving > > me an idea for a test. > > Can you please try the web2py I just posted in trunk? > > That seems like a

Re: [web2py] Re: Executing applications from web2py

2010-07-22 Thread Hector Oron
Hi, 2010/7/21 mdipierro : > Welcome Hector, Thanks > using os.system is fine if the the commands are short and independent. > I would recommend creating a database table of tasks to be executed > > db.define_table('task_queue',Field('status'),Field('command')) > > The web app would queue command

[web2py] Re: Can web2py be used as a node in a P2P app or store data in a DHT?

2010-07-22 Thread Luis Díaz
yo tengo tiempo pensando en algo como una red para móviles, donde cada uno de ellos funcione como nodo de conexión descentralizado, para asi ampliar la cobertura y escalar el servicio. y con plataformas libres como androi.. el camino lo veo poco empinado. bueno... yo salgo de vacaciones para el 1

[web2py] Re: plugin_wiki

2010-07-22 Thread mdipierro
We need to write a draft a roadmap. Alvaro has been saying this for some time. For me the priority is to strengthen web2py code and improve documentation. plugin_wiki is usable but we need more people to start using it before we can finalize the its specs and until that is done I am not ready to g

[web2py] Re: SQLite Logging

2010-07-22 Thread Massimo Di Pierro
This is useful. I suggest making a web2py slice about this. Massimo On Jul 21, 2010, at 9:37 PM, Iceberg wrote: Just a quick thought. Since web2py itself already handles SQLite db well under multi-thread situation, so a quick tweak to your sqlitehandler.py may be putting the web2py db insta

[web2py] Re: Error in trunk?

2010-07-22 Thread mdipierro
please try again On Jul 22, 1:43 am, David Marko wrote: > Applying latest trunk I'm getting following error on console when > navigating the first page e.g.http://localhost:8000 > > ERROR:root:Traceback (most recent call last): >   File "c:\java\google_appengine\web2py\gluon\main.py", line 384, i

Re: [web2py] Mail function not working

2010-07-22 Thread Vasile Ermicioi
> > > mail.settings.server= '192.168.200.43:25' > > add port

[web2py] Re: web2py and tomcat on same server possible?

2010-07-22 Thread Andrew Buchan
Ok, thanks, I had it in my head that that was the case for some reson. The Tomcat will be set to run on 8080 and web2py is on 80 so shouldn't be a problem, just thought I'd check first in case of major panic later... On Jul 21, 12:49 pm, mdipierro wrote: > Why would IIS be disabled when running

[web2py] Is there anyone who did something with web2py and couchdb?

2010-07-22 Thread David Marko
Is there anyone who did something with web2py and couchdb? Can you share your experience? David

[web2py] Re: request.post_vars

2010-07-22 Thread web2py noob
On 20 jul, 02:54, mdipierro wrote: > because the crud.create does accept inside therefore the form is > processed before you set form.vars.ficha. You can do insetad: > > controller1: > > form=crud.create(db.familia) > if form.accepts(request.vars,session): >     session.ficha=request.post_vars.fi

[web2py] Change select options depending on other form variable

2010-07-22 Thread Serbitar
Thanks to the manual I know how I can hide a form widget depending on other form variables with jquery. However I have no Idea how to change other form properties, for example the options that can be selected in a drop down menu, depending on, for example, the selection in a second drop down menu.

[web2py] Mail function not working

2010-07-22 Thread Andrew Buchan
Hello, I can't get the web2py mail function to work despite trying a multitude of settings (in fact I used a 'brute-force' attack to try all the possible combinations I could think of), here's the latest in my db.py: mail=Mail() mail.settings.server= '192.168.200.43' mail.settings.sender= 'the...

[web2py] Re: Having problem accessing admin thru ssh tunneling

2010-07-22 Thread Narendran
Sorry, not version, instance. On Jul 22, 12:19 pm, Narendran wrote: > Ok. understood the problem. > I had to run another version of web2py in the remote (prod) server > on  different port in fact. > > On Jul 22, 10:13 am, Narendran wrote: > > > > > Hi, > > As widely recommended, > > 1. I have re

[web2py] Re: Having problem accessing admin thru ssh tunneling

2010-07-22 Thread Narendran
Ok. understood the problem. I had to run another version of web2py in the remote (prod) server on different port in fact. On Jul 22, 10:13 am, Narendran wrote: > Hi, > As widely recommended, > 1. I have removed the  parameters_*.py on my prod server. > 2. Established an ssh connection to my prod

[web2py] Re: Access other middleware and business logic from web2py

2010-07-22 Thread ron_m
You could run web2py in a Jython environment which can then interface to Java libraries. You would still have to get into the JEE container held part of the application but my JEE knowledge is now dated and I never used JBoss so am not sure what would be involved there. Ron