[web2py] Re: Password verification - how to?

2010-07-05 Thread elfuego1
No, I don't. So does TD supposed to work as a variable or list? And what if I'd like to use form.element again? Do I append another form.element to TD and us it as a list? How do I address the value that is assigned to TD: TD[0], TD[1] and why is it "TD" in the first place? Is out there some descri

Re: [web2py] Re: A few questions about jqgrid

2010-07-05 Thread Phyo Arkar
inline edit wont work with web2py ?? why would it wont?? On Tue, Jul 6, 2010 at 5:38 AM, Johann Spies wrote: > On 6 July 2010 00:56, mdipierro wrote: > > At this time jqgrid only communicates (via ajax) when you change page. > > The web2py plugin does not support in-place edit even if jqgrid do

Re: [web2py] Re: A few questions about jqgrid

2010-07-05 Thread Johann Spies
On 6 July 2010 00:56, mdipierro wrote: > At this time jqgrid only communicates (via ajax) when you change page. > The web2py plugin does not support in-place edit even if jqgrid does. > > You can find lots of examples in this app. This is a nice app > developed by the book with the plugin. > > htt

[web2py] Re: Password verification - how to?

2010-07-05 Thread KR
Do you have somewhere in your code TD=something ? On 6 juil, 01:18, elfuego1 wrote: > Can you please tell me yet how to implement it, so it would start > working in my form and verify the password? > When I add it to view: user.html or controller default.py then I > receive: > TypeError: 'TD' obj

[web2py] Update/insert data into multiple tables with one form

2010-07-05 Thread mdmcginn
I'm working on a variation of an opinion poll application. Maybe I missed this, but what is the best way to update multiple tables with one form? SQLFORM and CRUD work well, but assume that a single table is being updated. On submit, I would like to insert the current user's ID and his answer into

Re: [web2py] markmin

2010-07-05 Thread Jason Brower
FUN! But who is "we"? BR, Jason Brower On Mon, 2010-07-05 at 15:42 -0700, mdipierro wrote: > http://www.web2py.com/examples/static/markmin.html >

[web2py] Re: Password verification - how to?

2010-07-05 Thread elfuego1
Can you please tell me yet how to implement it, so it would start working in my form and verify the password? When I add it to view: user.html or controller default.py then I receive: TypeError: 'TD' object is not callable So please let me know how to use form.element syntax to make it work proper

[web2py] Re: How to enable "request_reset_password" function?

2010-07-05 Thread elfuego1
Thank you!! ;-) I thought no one will answer this. On 1 Lip, 03:52, Richard wrote: > http://code.google.com/p/web2py/source/browse/gluon/tools.py > At line 1866 of gluon/tools.py you will find: > > if not self.settings.mailer: >     response.flash = self.messages.function_disabled >     return

[web2py] Re: A few questions about jqgrid

2010-07-05 Thread mdipierro
At this time jqgrid only communicates (via ajax) when you change page. The web2py plugin does not support in-place edit even if jqgrid does. You can find lots of examples in this app. This is a nice app developed by the book with the plugin. http://web2py.com/appliances/default/show/63 Massimo

[web2py] markmin

2010-07-05 Thread mdipierro
http://www.web2py.com/examples/static/markmin.html

[web2py] Re: A very good enforcement of web framework security: GOOGLE-CAJA

2010-07-05 Thread GoldenTiger
As far as i have seen, web2py properly prevents a lot of vulnerabilities, and it could continue doing it. By now it seems sufficient. In practice, the most common place you may need to write in Caja is when creating Opensocial gadgets. Some opensocial containers (such as YAP, Shindig, iGoogle, Code

[web2py] A few questions about jqgrid

2010-07-05 Thread Johann Spies
I am a javascipt and jquery novice and would appreciate some information to help me understand how to use a jqgrid-plugin. My questions are overlapping in some cases. 1. How does jqgrid communicate with the backend database? 2. Do I have to put special mechanisms in place to make sure that change

[web2py] Re: Will rocket close connections if it takes long time?

2010-07-05 Thread Iceberg
My twisted words just show my twisted mind during my learning rocket- science. :-) I guess I was trying to express, the design goal is (1), the implementation is (2), therefore the long run server side calculation such as (3) is allowed, rather than being terminated early which is a typical misund

[web2py] Re: command line interracting with web2py app

2010-07-05 Thread Yarko Tymciurak
you can also find info here: http://web2py.com/book/default/section/4/1?search=shell The help option to web2py is most likely to be current. On Jul 5, 12:20 pm, Jean-Guy wrote: > Hello, > > How may I use web2py with ipython shell? > > I use this command to start ipython with my app : > > python

[web2py] Re: command line interracting with web2py app

2010-07-05 Thread Yarko Tymciurak
On Jul 5, 12:20 pm, Jean-Guy wrote: > Hello, > > How may I use web2py with ipython shell? ... if you have ipython installed, web2py shell should pick it up. > > I use this command to start ipython with my app : > > python web2py.py -a '' --shell=APP_NAME -i 127.0.0.1 -p 8000 try: python web2py

[web2py] command line interracting with web2py app

2010-07-05 Thread Jean-Guy
Hello, How may I use web2py with ipython shell? I use this command to start ipython with my app : python web2py.py -a '' --shell=APP_NAME -i 127.0.0.1 -p 8000 But db and controller functions are not availables. Jonhy

Re: [web2py] Re: upload bug in filename

2010-07-05 Thread Sw1
Hi There, Any updates or adises on my case ? Thx On Sat, Jul 3, 2010 at 5:39 PM, Swell wrote: > ok i hae done that and it complains about > IOError: [Errno 2] No such file or directory: > 'a >

Re: [web2py] Re: folder default

2010-07-05 Thread Jean-Guy
Thank you... I Like your answers precises and consises... Jonhy On 2010-07-02 03:30, mdipierro wrote: RL(r=request, c='controller_name', f='index')

[web2py] Re: Unable to access PostgreSQL from web2py on Windows 7

2010-07-05 Thread mdipierro
Try these: http://www.stickpeople.com/projects/python/win-psycopg/ make sure you use web2py from source since thwe web2py binary will not see your installed driver. On 5 Lug, 07:52, Abhinav S wrote: > I configured Postgresql to listen on Port 4 for my application, > but I am unable to acces

[web2py] Unable to access PostgreSQL from web2py on Windows 7

2010-07-05 Thread Abhinav S
I configured Postgresql to listen on Port 4 for my application, but I am unable to access the db from web2py. I can access it from Command Prompt however. Tried installing psycopg2-2.0.14 but still no luck. Any help?

[web2py] Re: Input fields alignment

2010-07-05 Thread mdipierro
Two problems... 1) You should use this: {{=form.custom.begin}} {{=form.custom.widget.fieldname1}} {{=form.custom.widget.fieldname2}} {{=form.custom.widget.fieldname3}} ... {{=form.custom.end}} 2) {{=form.custom.widget.fieldname1}} only displays the INPUT widget for the fieldname1 field. You need

[web2py] Re: A very good enforcement of web framework security: GOOGLE-CAJA

2010-07-05 Thread mdipierro
will take a look. I never heard of it before. On 5 Lug, 07:31, GoldenTiger wrote: > When i shared "elfinder", you liked a lot, > I hope you like google-caja > > Google's Caja project allows mutually untrusting and untrusted web > applications to run in the same context and allows them to safely >

[web2py] Re: Input fields alignment

2010-07-05 Thread elfuego1
I don't have the code infront of me right now, but out of the top of my head - it looks like that: #view {{=form.custom.begin}} {{=form[0][0]}} {{=form[0][1]}} {{=form[0][2]}} {{=form[0][3]}} ... {{=form.custom.end}} On 5 Lip, 13:51, mdipierro wrote: > Can you post an example of your custo

[web2py] Re: Urgent. EuroPython!

2010-07-05 Thread GoldenTiger
No, i live at spain, thanks a lot :) On 5 jul, 14:22, mdipierro wrote: > Are you in uk? > > On 5 Lug, 07:15, GoldenTiger wrote: > > > I had a great desire to go ... but I can't  :_(    for economic > > reasons,  i have no job for now so i am looking for individual > > customers who want a god we

[web2py] A very good enforcement of web framework security: GOOGLE-CAJA

2010-07-05 Thread GoldenTiger
When i shared "elfinder", you liked a lot, I hope you like google-caja Google's Caja project allows mutually untrusting and untrusted web applications to run in the same context and allows them to safely communicate by regular JS function calls and reference passing. It provides tools that rewrite

[web2py] Re: Urgent. EuroPython!

2010-07-05 Thread mdipierro
Are you in uk? On 5 Lug, 07:15, GoldenTiger wrote: > I had a great desire to go ... but I can't  :_(    for economic > reasons,  i have no job for now so i am looking for individual > customers who want a god web (companies asking django, i abandoned > django forever) > do you know rentacoder.com

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-05 Thread AsmanCom
THX, that was damn fast! I´ll try it later and will let you know if it works. Dieter Asman On Jul 5, 2:00 pm, mdipierro wrote: > I have fixed it an uploaded. Please give it a try. > > On 5 Lug, 04:07, AsmanCom wrote: > > > I´ve elready tried to change the controller/plugin_jqgrid.py, by > > re

[web2py] Re: Urgent. EuroPython!

2010-07-05 Thread GoldenTiger
I had a great desire to go ... but I can't :_(for economic reasons, i have no job for now so i am looking for individual customers who want a god web (companies asking django, i abandoned django forever) do you know rentacoder.com or another web like that? maybe i'll look for a job in it O

[web2py] Re: Urgent. EuroPython!

2010-07-05 Thread Mengu
yeah, DAL would be good. What is DAL and how it differs from others? On 2 Temmuz, 09:12, Richard wrote: > perhaps the DAL - new and upcoming features > > On Jul 2, 1:43 am, mdipierro wrote: > > > > > I just discovered I will be giving a tutorial about web2py at > > EuroPython in two weeks. > > I

[web2py] Re: get label in easy way

2010-07-05 Thread Frank
many thanks for your help, Frank

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-05 Thread mdipierro
I have fixed it an uploaded. Please give it a try. On 5 Lug, 04:07, AsmanCom wrote: > I´ve elready tried to change the controller/plugin_jqgrid.py, by > replacing > > table=db[tablename] >     if request.vars.fieldname: >         dbset = > db(table[request.vars.fieldname]==request.vars.fieldvalue

[web2py] Re: get label in easy way

2010-07-05 Thread mdipierro
You have some options labels=[db.mytable[f].label for f in db.mytable.fields] you can do form=SQLFORM(db.table) labels = form.custom.labels.values() On 5 Lug, 05:09, Frank wrote: > hi, > > I want to know if there is a easy way to get the list of labels of db.invoice, > > I know that we can

Re: [web2py] Re: httpserver.log graphical stats

2010-07-05 Thread Kuba Kucharski
Hi, selecta Do you have a fixed version? -- Kuba

[web2py] Re: Sanitizing embedded video from users

2010-07-05 Thread GoldenTiger
Mmm let me thinking about... I'd avoid ckeditor if sharing with untrusted users, it's not intended for that use http://www.google.es/search?hl=es&source=hp&q=ckeditor+xss If you feel unsecure, don't worry, I know the most secure way of preventing XSS: google-caja http://code.google.com/p/google-

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-05 Thread mdipierro
This is a design problem.. db should be table._db I will fix it and repost the plugin. On 5 Lug, 04:07, AsmanCom wrote: > I´ve elready tried to change the controller/plugin_jqgrid.py, by > replacing > > table=db[tablename] >     if request.vars.fieldname: >         dbset = > db(table[request.va

[web2py] Re: Input fields alignment

2010-07-05 Thread mdipierro
Can you post an example of your custom form? On 5 Lug, 03:19, elfuego1 wrote: > Hello, > > I try to give my custom form sense of order. Unfortunatelly all the > input fields are out of order. > When I generate form usign {{=form}} syntax, all fields are displayed > nice and clean but in custom fo

[web2py] Re: httpserver.log graphical stats

2010-07-05 Thread selecta
I got it to work on one server instance but on another it just always returns None hmmm On Jul 5, 1:43 pm, Kuba Kucharski wrote: > this appliance is awfully bugged with indentation errors more than 40 > errors inside? > > -- > Kuba

Re: [web2py] Re: httpserver.log graphical stats

2010-07-05 Thread Kuba Kucharski
this appliance is awfully bugged with indentation errors more than 40 errors inside? -- Kuba

[web2py] get label in easy way

2010-07-05 Thread Frank
hi, I want to know if there is a easy way to get the list of labels of db.invoice, I know that we can do "db.invoice.fields" to get the list of field names, can I do the silmilar thing like "db.invoice.labels" or "db.invoice.field.labels" to get the list of labels? I try both but fail. please

[web2py] Re: how to change the value of a field that is writable=False for crud.update form

2010-07-05 Thread selecta
perfect thanks what I did to also show the fields is table.created_on.update = record.created_on = request.now table.edited_by.update = record.edited_by = auth.user.id On Jul 3, 12:42 am, mdipierro wrote: > You can change the value of fields that are not writable. > > You have to set db.table.f

[web2py] Re: Anvanced applications in gae

2010-07-05 Thread dlypka
Here is some sample code using these features. I have tested it, although the following is slightly edited from what I tested: try: from gluon.contrib.gql import * # if running on Google App Engine except: db=SQLDB('sqlite://storage.db') datastoretype = 'SQL' else: db=GQLDB

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-05 Thread AsmanCom
I´ve elready tried to change the controller/plugin_jqgrid.py, by replacing table=db[tablename] if request.vars.fieldname: dbset = db(table[request.vars.fieldname]==request.vars.fieldvalue) else: dbset = db(table.id>0) with: table=db_1[tablename] if request.vars.fieldn

[web2py] JQGrid Plugin with multiple Databases

2010-07-05 Thread AsmanCom
Hi, I try to get the JQGrid Plugin (http://www.web2py.com/plugins/default/ jqgrid) to work with multiple Databases. Like this: db_1 = DAL("sqlite://db1.db") db_2 = DAL("sqlite://db2.db") db_3 = DAL("sqlite://db3.db") plugin_jqgrid(db_1.shout) But the Grid is empty. If I do it like that, it

[web2py] Input fields alignment

2010-07-05 Thread elfuego1
Hello, I try to give my custom form sense of order. Unfortunatelly all the input fields are out of order. When I generate form usign {{=form}} syntax, all fields are displayed nice and clean but in custom form it's all shifted, skew. Input fields are glued to the label. How can I align input field

[web2py] Re: html emails with auth

2010-07-05 Thread mdipierro
Now I understand the problem. Hmmm.. this needs a change in Auth/Mail. let me think about it. On 4 Lug, 20:09, Richard wrote: > hi Massimo, > > sending email directly with the mail API isn't the problem. > The problem (as explained in the initial post) is for emails sent by > auth. Auth requires