[web2py] Re: table field with reference to other in read-only mode doesn't appear right

2011-01-31 Thread szimszon
Oh yes and the original error isn't present anymore... BigTNX :) On febr. 1, 07:57, szimszon wrote: > My fault. I tried with nightly and not trunk :-o > > Trunk works just fine :) thank you! > > On febr. 1, 03:07, Massimo Di Pierro > wrote: > > > > > > > > > this should now be fixed in trunk. Pl

[web2py] Re: table field with reference to other in read-only mode doesn't appear right

2011-01-31 Thread szimszon
My fault. I tried with nightly and not trunk :-o Trunk works just fine :) thank you! On febr. 1, 03:07, Massimo Di Pierro wrote: > this should now be fixed in trunk. Please check it. > > On Jan 31, 12:46 am, szimszon wrote: > > > > > > > > > The error is constant... > > > After the print statem

Re: [web2py] Re: Uncaught RangeError: Maximum call stack size exceeded

2011-01-31 Thread Johann Spies
On 31 January 2011 21:52, Anthony wrote: > > Is that a Python error code? When I Google that error, all the references I > see are to Javascript errors in particular browsers. Could the problem be on > the client side? > I think you are on the right track. The error message appeared when I use

[web2py] Re: table field with reference to other in read-only mode doesn't appear right

2011-01-31 Thread szimszon
No :( There is the same error: web2py™ Version 1.91.6 (2011-01-30 15:16:26) Traceback Traceback (most recent call last): File "/home/szimszon_nfs/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home/szimszon_nfs/web2py/applications/raktar/co

[web2py] background task error

2011-01-31 Thread pbreit
Trying to run a background task from MacOS command line and getting error: pbreit$ python web2py.py -S myapp -M -N -R applications/myapp/private/expire_items.py Traceback (most recent call last): File "web2py.py", line 3, in import gluon.import_all ImportError: No module named gluon.import

[web2py] Cant logout

2011-01-31 Thread Max Slimmer
I have a case were I catch a js event and need to logout. So I tried to send a request via AJAX to .../index/logout the request gets there and but it isn't reseting auth here is my logout function def logout(): session.authorized = None session.auth = None session.forget()

Re: [web2py] dynamic session variables

2011-01-31 Thread Jason Brower
You can do that. At the top of the default.py or what ever you are using, place something like... session.pages[request.page] = True or how ever you want to do it. Just make sure because it is a dictionary that you blank it or initialize it befor asigning anything to it. - Original message

[web2py] Re: Can any help me with new dal in trunk?

2011-01-31 Thread DenesL
Si el problema es con sequence_name entonces no tengo idea, jamas lo he usado. If the problem is with sequence_name then I don't know, I have never used it. On Jan 31, 10:47 pm, DenesL wrote: > Hola Drayco, > > aun no entiendo como funciona la aplicacion, el codigo que soporta > bases de datos

[web2py] Re: Need help in standardizing my coding and naming schemes before I start my main project

2011-01-31 Thread Rupesh Pradhan
I have seen that before. Its about python coding style. I am trying to discuss database table and field naming style here. Care to comment on the following table structure, please: db.define_table('lu_address_type', Field('name')) db.define_table('contact', Field('name')) db.define_table('add

[web2py] Re: Can any help me with new dal in trunk?

2011-01-31 Thread DenesL
Hola Drayco, aun no entiendo como funciona la aplicacion, el codigo que soporta bases de datos pre-existentes para mysql simplemente no existe en el archivo sql.py en la version 1.83.2, ni en dal.py en trunk. Deben existir las definiciones para mysql de 'reference FK' (llave foranea) y 'reference

[web2py] Re: has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread mart
i see... so, if I understand, only the table definitions are missing (and I should know this), but I am hoping that this means just the tables,not the data? If something Commet could make that the tabel data available (maybe as a string), would it be possible to to : tables please

[web2py] Re: cherokee deployment frustration

2011-01-31 Thread greenpoise
thanks for the leads. I tried starting all over again, removing the packages and configuration files. Now the connection just times out. I get no error from cherokee, it just simply times out. On Jan 31, 6:43 pm, GoldenTiger wrote: > About the problem Upgrade required, this is the solution from

[web2py] Re: cherokee deployment frustration

2011-01-31 Thread GoldenTiger
About the problem Upgrade required, this is the solution from the creator of cherokee: There should be a way to redirect http to https: http://lists.octality.com/pipermail/cherokee/2009-February/009850.html Please, check http://www.cherokee-proj

[web2py] Can't deal with MemcachedKeyLengthError in caching selects

2011-01-31 Thread kenji4569
When I run the following code: db(db.xxx.id==1).select(cache=(cache.memcache, 5)) I got MemcachedKeyLengthError: Key length is > 250. Since xxx table has many fields, the sql used for the key readily reached the limit. I just want to specify the cache key, but I couldn't, given the dal.py: (ca

[web2py] Pydiction - python autocomplete on VIM - web2py?

2011-01-31 Thread Bruno Rocha
Hi, I user Pydiction http://www.vim.org/scripts/script.php?script_id=850 to autocomplete Python code on VIM. I am playing with its complete-dict file, but I can' t find a way to include web2py keywords in there to have it autocompleted on VIM. I just want to add few web2py keywords as request.

[web2py] Re: Can any help me with new dal in trunk?

2011-01-31 Thread drayco
Hi DenesL, This old application works now with with web2py 1.83.2 and mysql in RedHat 5.5 with 64 bits However, with web2py in trunk and mysql it doesn't works De hecho en esta liga, te agradecí que sin querer me solucionaste un problema :D http://groups.google.com/group/web2py/browse_thread/thr

[web2py] Re: has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread Massimo Di Pierro
I see what you mean now. No you cannot do that. If you do python web2py.py -A app -M -N -R script.py the script will be executed in an environment similar to a controller and will see the stuff defined in the models. There is no way (currently) for you to do db=DAL(...) and have db.yourtable wi

[web2py] Re: table field with reference to other in read-only mode doesn't appear right

2011-01-31 Thread Massimo Di Pierro
this should now be fixed in trunk. Please check it. On Jan 31, 12:46 am, szimszon wrote: > The error is constant... > > After the print statement: > > [(, 'auth'), ( object at 0x9f9fc0c>, 1), (, > 'User 1 Logged-in'), (, > datetime.datetime(2011, 1, 31, 7, 43, 21, 687801)), ( object at 0x9f9fbec>

[web2py] Re: has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread mart
yes... that's what I meant... models ;) the models are invisible Thanks for that, I'll try that :) so with that, I can do something like: dbRemote = DAL( ? Mart :) On Jan 31, 3:47 pm, Massimo Di Pierro wrote: > Not sure what you mean by invisible. web2py does not learn about > tables from

[web2py] Re: pyamf 0.6 doesn't work with web2py

2011-01-31 Thread Massimo Di Pierro
Do not worry. it happens. Thanks for PyAMF. Massimo On Jan 31, 3:33 pm, njoyce wrote: > On Feb 1, 12:19 am, Massimo Di Pierro > wrote: > > > g... > > > I can port it to the new one. Can you help with testing? > > I am suprised that any of the changes broke the integration between > PyAMF an

[web2py] Re: The first code example of the CRUD Methods section of the online web2py book

2011-01-31 Thread AW
Richard, I've run your app in your attachment. And it worked! I guess the reason of my struggle is that my own database was messed up perhaps. Thanks very much for your help. I appreciate that. On Jan 29, 10:23 pm, Richard Vézina wrote: > I see no problem!! > > I took your code and build this

[web2py] cherokee deployment frustration

2011-01-31 Thread greenpoise
Ok. I have tried what the book says. I also have seen the famous uwsgi thread & how to. However, I want to stick to the method shown in the book. It looks LOOKS simple but it is not. Everything works but when I go to the url of my site, this is what I get: 426 Upgrade Required The requested resou

[web2py] Re: Need help in standardizing my coding and naming schemes before I start my main project

2011-01-31 Thread howesc
I like the python style guide here: http://www.python.org/dev/peps/pep-0008/ has tips on naming conventions and such. i personally don't prefix table names or field names. and i let web2py name the primary key "id". most of the time my reference fields share the same name as the table they r

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Richard Vézina
Nop! I look how it works. Richard On Mon, Jan 31, 2011 at 5:03 PM, Bruno Rocha wrote: > Hello Richard, powerTable is currently based on a modified version of > SQLTABLE, but I realized that when working with Ajax datasource SQLTABLE is > not a good idea. so now I'm thinking in restarting the d

Re: [web2py] Returning the Row after insert;

2011-01-31 Thread Vasile Ermicioi
db(db.auth_user.id=id).select() will give you a list of rows (of one element :) ) easier is row = db.auth_user[form.vars.id]

[web2py] Returning the Row after insert;

2011-01-31 Thread David J.
currently; I am doing a select after an insert to look up the values of a row; For example; the registration key when using the default "register" application; But I think there must be an easier way; If anyone has a "best practice" suggestion I would appreciate it; currently the code looks

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Bruno Rocha
Hello Richard, powerTable is currently based on a modified version of SQLTABLE, but I realized that when working with Ajax datasource SQLTABLE is not a good idea. so now I'm thinking in restarting the development of the plugin from scratch. Create aspecialized class to return the TABLE object and

[web2py] Re: dynamic session variables

2011-01-31 Thread villas
Try it in the shell, something like this? >>> session.id = {} >>> session.id['page1'] = 'one' >>> session.id['page2'] = 2 >>> session.id['page3'] = 'three' >>> session.id {'page2': 2, 'page3': 'three', 'page1': 'one'} On Jan 31, 9:23 pm, Francisco Costa wrote: > Hello, > I want to have dinamic

[web2py] Re: pyamf 0.6 doesn't work with web2py

2011-01-31 Thread njoyce
On Feb 1, 12:19 am, Massimo Di Pierro wrote: > g... > > I can port it to the new one. Can you help with testing? > I am suprised that any of the changes broke the integration between PyAMF and web2py. If I can be of any help - let me know. Thanks, Nick - maintainer of PyAMF.

Re: [web2py] cascading drop down list not working

2011-01-31 Thread w2padawan
2011/1/31 Alexandre Andrade : > It works fine to me, but it relies on default keys on db > subcategory table: > Field('category_id', db.category) > if it is like > Field('category_id', requires(db, db.category.id)) > it will not work. Hi Alexandre, I don't fully understand your point. By "default

[web2py] dynamic session variables

2011-01-31 Thread Francisco Costa
Hello, I want to have dinamic session variables like this: session.id where id is different from page to page.. I've tried id = variable session.id and session.id['variable'] without any results. I would like to be able to open different pages at the same time and the browser c

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Richard Vézina
Bruno, I would help you the best I can... I would like to focus on JSON where to start? Do you have a app with the demo : products and category db? Thanks Richard On Mon, Jan 31, 2011 at 3:54 PM, Bruno Rocha wrote: > Hi, > > I could not reproduce your model, but here it is my example app run

[web2py] Re: [OT] - Programming Contest

2011-01-31 Thread mikech
I also noticed that there seems to be a growing number of sites that sell .js solutions. This one above and http://codecanyon.net/

[web2py] [OT] - Programming Contest

2011-01-31 Thread mikech
Are you a web developer?Win over *$40,000* in cash and prizes Have you been developing custom solutions for the web? pick your best feature, module or UI component that can be packaged and re-used and publish it on Binpress . *Binpress* is a marketplace for source-code

[web2py] Re: has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread Massimo Di Pierro
Not sure what you mean by invisible. web2py does not learn about tables from the db. It learns about them from the models. If you run a script with python web2py.py -A app -M -N -R script.py the script will see the models. On Jan 31, 10:27 am, mart wrote: > right... ok, I get that. > > So, is

[web2py] Re: Custom form bug

2011-01-31 Thread Massimo Di Pierro
Older version of mysql support maxlength=255 so that is what web2py does. I am not sure what the best solution wihtout using different adapters for different mysql versions. On Jan 30, 7:16 pm, ionel wrote: > I forgot to say that I use my own function to define the fields in the > custom form. >

[web2py] Re: js combine and compression

2011-01-31 Thread Massimo Di Pierro
This is not a web2py specific issue. A js can be served as a static file or as a dynamic page (perhaps cached). In the latter case you can call a library to do compression. To me this an un-necessary complication and performance issue. Compress first and have the web server serve the compressed fil

[web2py] Re: Speeding up IS_IN_DB

2011-01-31 Thread Massimo Di Pierro
The rationale is easy. The field is never a problem. The problem is the forms. If you need to list all the options, you need to gather all the options from database. That is a performance hog. Using autocomplete is better. The issue is the same for reference and list:reference. On Jan 31, 9:21 am,

Re: [web2py] cascading drop down list not working

2011-01-31 Thread Alexandre Andrade
It works fine to me, but it relies on default keys on db subcategory table: Field('category_id', db.category) if it is like Field('category_id', requires(db, db.category.id)) it will not work. 2011/1/31 w2padawan > Hi All, > > I'm trying to get working the slice in the subject that are in >

[web2py] cascading drop down list not working

2011-01-31 Thread w2padawan
Hi All, I'm trying to get working the slice in the subject that are in web2pyslices.com[1] but it's something wrong with my code that I still can't see and is breaking the view. The widget works well for me if I use the same code as show in web2pyslice (aka 'copy&paste'), but does not work with my

[web2py] Re: Need help in standardizing my coding and naming schemes before I start my main project

2011-01-31 Thread Rupesh Pradhan
I am trying to standardize my naming schemes for my database, table and fields. I am trying to follow the one given below. Please share with me your scheme. Standard Database Table Naming Scheme = Table name: --- small caps with underscore look-up tabl

Re: [web2py] Re: Uncaught RangeError: Maximum call stack size exceeded

2011-01-31 Thread Anthony
On Monday, January 31, 2011 9:48:01 AM UTC-5, spyker wrote: > > I have experimented and have determined that the following model > definition is related: > > Field("outeur_id", 'list:reference outeur'), # (see my other thread about > the speeding up IS_IN_DB) > > The full model is in the othe

Re: [web2py] Re: TypeError: is not JSON serializable

2011-01-31 Thread Richard Vézina
Sorry... ;-) On Mon, Jan 31, 2011 at 2:25 PM, w2padawan wrote: > I sent the attachment to his email, as he said. > > 2011/1/31 Richard Vézina : > > No attachement... > > > > On Mon, Jan 31, 2011 at 8:53 AM, w2padawan > wrote: > >> > >> ping > >> > >> 2011/1/28 w2padawan : > >> > Hi massimo, do

Re: [web2py] Re: TypeError: is not JSON serializable

2011-01-31 Thread w2padawan
I sent the attachment to his email, as he said. 2011/1/31 Richard Vézina : > No attachement... > > On Mon, Jan 31, 2011 at 8:53 AM, w2padawan wrote: >> >> ping >> >> 2011/1/28 w2padawan : >> > Hi massimo, do you know something more about this? >> > >> > 2011/1/26 web2py noob : >> >> Hi Massimo, >

Re: [web2py] Re: TypeError: is not JSON serializable

2011-01-31 Thread Richard Vézina
No attachement... On Mon, Jan 31, 2011 at 8:53 AM, w2padawan wrote: > ping > > 2011/1/28 w2padawan : > > Hi massimo, do you know something more about this? > > > > 2011/1/26 web2py noob : > >> Hi Massimo, > >> > >> I send you my code attached to this email. > >> Very thank you for your time. > >

[web2py] Re: CRUD, Auth, doctest

2011-01-31 Thread walter
My solution lies below, but I think it not quite elegant. def edit(): ''' >>> request.args.append('news') >>> request.args.append(None) >>> request.extension = 'html' >>> from gluon.storage import Storage >>> user = dict(reset_password_key='', ... first_name='t

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Richard Vézina
Hello Bruno, Did you get powerTable to use serverside working with web2py json? Richard On Mon, Jan 31, 2011 at 9:37 AM, Bruno Rocha wrote: > I am trying to implement your model here with the latest powerTable, I'll > came back soon with the answer. > > > > > Bruno Rocha > http://about.me/roch

[web2py] Re: table field with reference to other in read-only mode doesn't appear right

2011-01-31 Thread szimszon
Can I help you in other way? If you mind you could send me a modified dal.py with lots of logging (I have no console output - apache2 and mod_wsgi) but if you put import syslog syslog.syslog... than I can deliver you all the logs... On jan. 31, 07:46, szimszon wrote: > The error is constant..

Re: [web2py] OOP versus MVC in web2py question

2011-01-31 Thread Anthony
You are welcome. Anthony On Monday, January 31, 2011 11:49:53 AM UTC-5, web2py noob wrote: > Thank you Anthony for such a good answer. You have been very much help > for me. I was confusing with so little until now. > Best regards and may the force be with you :) > > 2011/1/31 Anthony : > > On

Re: [web2py] OOP versus MVC in web2py question

2011-01-31 Thread w2padawan
Thank you Anthony for such a good answer. You have been very much help for me. I was confusing with so little until now. Best regards and may the force be with you :) 2011/1/31 Anthony : > On Monday, January 31, 2011 11:30:34 AM UTC-5, web2py noob wrote: >> >> Thanks for your answer. I appreciate

[web2py] Re: CRUD, Auth, doctest

2011-01-31 Thread walter
P.S. My test code strongly elementary >>> assert(edit()['form'] != None) True >>> try: ... edit() ... except HTTP, http: print http.headers, session.auth My code has shown above.

Re: [web2py] OOP versus MVC in web2py question

2011-01-31 Thread Anthony
On Monday, January 31, 2011 11:30:34 AM UTC-5, web2py noob wrote: > > Thanks for your answer. I appreciate your time :) > > I know that OOP and MVC are not exclusive (like programming paradigm > != design pattern), my doubt is about if I really need to use OOP if > I'm not developing any widget o

[web2py] Re: OOP versus MVC in web2py question

2011-01-31 Thread Anthony
On Monday, January 31, 2011 10:05:26 AM UTC-5, web2py noob wrote: > > Hi, > > I'm wondering if it's a good practice to use Object Oriented > Programming in web2py instead of the builting MVC method. OOP is what > I learned in school but I haven't need it in web2py at this moment and > i'm very pl

Re: [web2py] OOP versus MVC in web2py question

2011-01-31 Thread w2padawan
Thanks for your answer. I appreciate your time :) I know that OOP and MVC are not exclusive (like programming paradigm != design pattern), my doubt is about if I really need to use OOP if I'm not developing any widget or plugin, but using the tools that web2py already have to build an application.

[web2py] Re: has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread mart
right... ok, I get that. So, is there a way to connect a new network connection to an existing sqlite db? I tried some suggestion from a posting of a few weeks ago, and it seems to connect, but tables are 'invisible'. ** Note ** some dbs are created from script (no web), still web2py (just no web

Re: [web2py] OOP versus MVC in web2py question

2011-01-31 Thread Michele Comitini
There is no OOP vs MVC the two are orthogonal. You can implement MVC using OOP or not. making things (too) simple: - python -> OOP - web2py -> MVC mic 2011/1/31 Bruno Rocha > You can mix OOP with MVC. > > You can create your own modules, plugins, validators and widgets using Full > OOP, then

Re: [web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread Jonathan Lundell
On Jan 31, 2011, at 7:53 AM, AW wrote: > > Anthony, that's quite helpful advice. > > I'd suspected that has something to do with different errors and > couldn't go as far as you showed in your post. Thanks. Note that, besides unique, there are two other conditions that are enforced at the datab

[web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread AW
test On Jan 31, 10:53 am, AW wrote: > Anthony, that's quite helpful advice. > > I'd suspected that has something to do with different errors and > couldn't go as far as you showed in your post. Thanks. > > On Jan 29, 7:33 pm, Anthony wrote: > > > > > > > > > On Saturday, January 29, 2011 6:59:

[web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread AW
test On Jan 31, 10:53 am, AW wrote: > Anthony, that's quite helpful advice. > > I'd suspected that has something to do with different errors and > couldn't go as far as you showed in your post. Thanks. > > On Jan 29, 7:33 pm, Anthony wrote: > > > > > > > > > On Saturday, January 29, 2011 6:59:

[web2py] Re: Custom form bug

2011-01-31 Thread DenesL
Hi, I can not reproduce this with 1.91.6, which version are you using?. On Jan 30, 8:16 pm, ionel wrote: > I forgot to say that I use my own function to define the fields in the > custom form. > > db.py: > db.define_table('a_table', Field('field_name', 'text', length=600)) > > controller: > def

[web2py] Re: A simple question about avoiding race condition

2011-01-31 Thread AW
Anthony, that's quite helpful advice. I'd suspected that has something to do with different errors and couldn't go as far as you showed in your post. Thanks. On Jan 29, 7:33 pm, Anthony wrote: > On Saturday, January 29, 2011 6:59:39 PM UTC-5, AW wrote: > > The following two lines of code are

Re: [web2py] OOP versus MVC in web2py question

2011-01-31 Thread Bruno Rocha
You can mix OOP with MVC. You can create your own modules, plugins, validators and widgets using Full OOP, then when creating your MVC application you will consume your OOP. Bruno Rocha http://about.me/rochacbruno/bio 2011/1/31 w2padawan > Hi, > > I'm wondering if it's a good practice to use

[web2py] js combine and compression

2011-01-31 Thread Richard Vézina
Hello, I am wondering if web2py has a mechanism to combine JS files and compressed them... http://stackoverflow.com/questions/1199470/combine-javascript-files-at-deployment-in-python Could be a nice feature. Richard

[web2py] CRUD, Auth, doctest

2011-01-31 Thread walter
I try to use CRUD. Below my code sample. if request.args(1) == None: form=crud.create(db[request.args(0)]) else: form=crud.update(db[request.args(0)],request.args(1)) return dict(form=form) I whant to test my code, but everytime I get next: Failed example: try: edit() ex

[web2py] Re: How to do the following query?

2011-01-31 Thread vortex
It has been reported as issue 172. On Jan 31, 2:56 pm, vortex wrote: > I will do that now. > > Thanks. > > On Jan 31, 2:27 pm, Massimo Di Pierro > wrote: > > > You found a bug. What is the model? > > > Can you post the model (just relevant field) and this example as an > > issue in google code

[web2py] Re: Speeding up IS_IN_DB

2011-01-31 Thread Anthony
On Monday, January 31, 2011 10:02:14 AM UTC-5, DenesL wrote: > > > On Jan 28, 5:27 pm, Massimo Di Pierro > wrote: > > Are you suggesting we change the way the default is assigned? If so.. > > let's duscuss this inw eb2py-developers because it is a complex > > matter. > > No, just pointing it

[web2py] Re: Custom authentication and login form that doesn't use web2py's forms

2011-01-31 Thread mervyn
What additional details are required? Am I doing it incorrectly? Or should my login page POST something in addition to just the username and password? On Jan 31, 10:25 pm, Massimo Di Pierro wrote: > Yes. How depends on details. > > On Jan 31, 2:48 am, mervyn wrote: > > > > > > > > > I'm using a

[web2py] OOP versus MVC in web2py question

2011-01-31 Thread w2padawan
Hi, I'm wondering if it's a good practice to use Object Oriented Programming in web2py instead of the builting MVC method. OOP is what I learned in school but I haven't need it in web2py at this moment and i'm very pleased with the MVC paradigm, but want to know if it's better start training and d

[web2py] Re: Speeding up IS_IN_DB

2011-01-31 Thread DenesL
On Jan 28, 5:27 pm, Massimo Di Pierro wrote: > Are you suggesting we change the way the default is assigned? If so.. > let's duscuss this inw eb2py-developers because it is a complex > matter. No, just pointing it out. web2py users can just "listify" the requires to avoid the dropdown and its p

[web2py] Re: Best way to implement network database system with web2py

2011-01-31 Thread Anthony
On Monday, January 31, 2011 5:13:19 AM UTC-5, vortex wrote: > > Let me rephrase my question: > > I need to implement a inventory management system with web2py. Is it > practical to have a local web2py database for each store which allows > users to read and write and then synchronize all the di

[web2py] Re: How to do the following query?

2011-01-31 Thread vortex
I will do that now. Thanks. On Jan 31, 2:27 pm, Massimo Di Pierro wrote: > You found a bug. What is the model? > > Can you post the model (just relevant field) and this example as an > issue in google code. I will fix it asap. > > Massimo > > On Jan 31, 7:42 am, vortex wrote: > > > More info on

Re: [web2py] Re: Uncaught RangeError: Maximum call stack size exceeded

2011-01-31 Thread Johann Spies
Hallo Massimo, On 31 January 2011 16:23, Massimo Di Pierro wrote: > Never seen it before. What code/condition causes it? > > I have experimented and have determined that the following model definition is related: Field("outeur_id", 'list:reference outeur'), # (see my other thread about the spe

Re: [web2py] Re: pyamf 0.6 doesn't work with web2py

2011-01-31 Thread Vasile Ermicioi
yes, sure

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Bruno Rocha
I am trying to implement your model here with the latest powerTable, I'll came back soon with the answer. Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Re: Update session variable with page refresh/reload

2011-01-31 Thread Kenneth Lundström
As the content on page some times changes too. Kenneth - Ursprungsmeddelande - > Why don't you just do an ajax request and leave the page unchanged? > > On Jan 31, 3:26 am, Kenneth Lundström > wrote: > > Hi, > > > > what would be the easiest way to update a session variable and > > re

[web2py] Re: How to do the following query?

2011-01-31 Thread Massimo Di Pierro
You found a bug. What is the model? Can you post the model (just relevant field) and this example as an issue in google code. I will fix it asap. Massimo On Jan 31, 7:42 am, vortex wrote: > More info on this: > > the (db.read.of_section != db.item.of_section) part is translating > into: > > (rf

[web2py] Re: Custom authentication and login form that doesn't use web2py's forms

2011-01-31 Thread Massimo Di Pierro
Yes. How depends on details. On Jan 31, 2:48 am, mervyn wrote: > I'm using a javascript framework that provides it's own login page and > submits authentication requests using HTTP POST with the username and > password to a url that I can specify. I've also created my own login > method that chec

[web2py] Re: has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread Massimo Di Pierro
Impossible. You cannot picke a network connection. It more than just data. On Jan 31, 5:30 am, mart wrote: > Hi, > > I'm looking to try something (again) that has not yet been too > successful (but I still want to try)... Currently (with stand-alone > Dal) I am managing by passing 'db' around (or

[web2py] Re: Uncaught RangeError: Maximum call stack size exceeded

2011-01-31 Thread Massimo Di Pierro
Never seen it before. What code/condition causes it? On Jan 31, 5:04 am, Johann Spies wrote: > I get the error in the subject.  Is this a bug?  If not, what is causing it > and how can I correct the problem? > > Regards > Johann > > -- >  May grace and peace be yours in abundance through the full

[web2py] Re: _extra keyword

2011-01-31 Thread Massimo Di Pierro
Give for example: something = db.table.field.sum()+db.table.field.max()-1 rows = db(...).select(something) row = rows.first() row._extra[something] is deprecated in favor of row(something) On Jan 31, 4:43 am, vortex wrote: > Can't find anything about using _extra with DAL in the official web2py

[web2py] Re: Update session variable with page refresh/reload

2011-01-31 Thread Massimo Di Pierro
Why don't you just do an ajax request and leave the page unchanged? On Jan 31, 3:26 am, Kenneth Lundström wrote: > Hi, > > what would be the easiest way to update a session variable and > refresh/reload the page. > > The link to update will be visible on all pages, so I can t do a > redirect to a

[web2py] Re: pyamf 0.6 doesn't work with web2py

2011-01-31 Thread Massimo Di Pierro
g... I can port it to the new one. Can you help with testing? On Jan 31, 3:04 am, elffikk wrote: > hi Massimo, > > I think this is due to a list of backward > incompatibilitieshttp://www.pyamf.org/whatsnew/0.6.html

[web2py] powerTable.extrajs question

2011-01-31 Thread Johann Spies
I am trying to get PowerTable to show referenced records (like that in the PowerTable-examples (category - products) but I could so far not get that working (Is there other documentation available?). I have used this powerTable.extrajs = dict(autoresize={}, tooltip={

Re: [web2py] Re: TypeError: is not JSON serializable

2011-01-31 Thread w2padawan
ping 2011/1/28 w2padawan : > Hi massimo, do you know something more about this? > > 2011/1/26 web2py noob : >> Hi Massimo, >> >> I send you my code attached to this email. >> Very thank you for your time. >> >> On 26 ene, 16:40, Massimo Di Pierro wrote: >>> Can you please email me your app? >>> >

[web2py] Re: How to do the following query?

2011-01-31 Thread vortex
More info on this: the (db.read.of_section != db.item.of_section) part is translating into: (rfid_read.of_section IS NOT NULL) On Jan 31, 1:26 pm, vortex wrote: > SELECT * FROM item JOIN read on read.of_item=item.id WHERE > item.of_section <> read.of_section > > I tried: > > db((db.item.id ==

[web2py] Re: can web2py support RESTful api calls? if so any pointers on how to build one?I

2011-01-31 Thread Tarun
At Radbox, we allow user to add a video by calling our api http://api.radbox.me/video/add?url=url&dev=devKey&user=userKey&t=title Basically, it's a normal url with video as controller and add as function with returned format as json which is provided by web2py. We have not built api to authenticat

[web2py] Custom authentication and login form that doesn't use web2py's forms

2011-01-31 Thread mervyn
I'm using a javascript framework that provides it's own login page and submits authentication requests using HTTP POST with the username and password to a url that I can specify. I've also created my own login method that checks the supplied username and password against a local database that's not

[web2py] Re: Best way to implement network database system with web2py

2011-01-31 Thread vortex
Thanks for your reply. On Jan 31, 11:18 am, mart wrote: > I think synchronization can only be done with export/import. And using > UUID to avoid record conflict. But, someone may have a better idea... > I was actually coming online to post a question (a little bit > related)... > > Mart :) > > On

[web2py] How to do the following query?

2011-01-31 Thread vortex
SELECT * FROM item JOIN read on read.of_item=item.id WHERE item.of_section <> read.of_section I tried: db((db.item.id == db.read.of_of_item) & (db.read.of_section != db.item.of_section)).select() but I don't want a join. I just want the where cause to be: (db.read.of_section != db.item.of_sectio

[web2py] Re: show tables joined in jqgrid

2011-01-31 Thread luifran
I talk about the plugin jqgrid On 31 ene, 12:12, luifran wrote: > I can display single table in jqgrid, but, how I can display joined > tables  in jqgrid?

[web2py] has anyone managed to pickle the 'db' DAL reference?

2011-01-31 Thread mart
Hi, I'm looking to try something (again) that has not yet been too successful (but I still want to try)... Currently (with stand-alone Dal) I am managing by passing 'db' around (or rather self.db) to avoid having to create more instances than I have to. Now, to pick up some processes where they l

[web2py] Re: Best way to implement network database system with web2py

2011-01-31 Thread mart
I think synchronization can only be done with export/import. And using UUID to avoid record conflict. But, someone may have a better idea... I was actually coming online to post a question (a little bit related)... Mart :) On Jan 31, 5:13 am, vortex wrote: > Let me rephrase my question: > > I ne

[web2py] show tables joined in jqgrid

2011-01-31 Thread luifran
I can display single table in jqgrid, but, how I can display joined tables in jqgrid?

[web2py] Uncaught RangeError: Maximum call stack size exceeded

2011-01-31 Thread Johann Spies
I get the error in the subject. Is this a bug? If not, what is causing it and how can I correct the problem? Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine power has given us everything we need for life and godl

[web2py] _extra keyword

2011-01-31 Thread vortex
Can't find anything about using _extra with DAL in the official web2py documentation. It seems a very powerful method and I wanted to know more on how to use it.

[web2py] Re: Best way to implement network database system with web2py

2011-01-31 Thread vortex
Let me rephrase my question: I need to implement a inventory management system with web2py. Is it practical to have a local web2py database for each store which allows users to read and write and then synchronize all the different databases across the network? On Jan 28, 2:56 pm, vortex wrote:

[web2py] Update session variable with page refresh/reload

2011-01-31 Thread Kenneth Lundström
Hi, what would be the easiest way to update a session variable and refresh/reload the page. The link to update will be visible on all pages, so I can´t do a redirect to a specific page or how do I specify to redirect to the page I´m on right now? Kenneth

[web2py] pyamf 0.6 doesn't work with web2py

2011-01-31 Thread elffikk
hi Massimo, I think this is due to a list of backward incompatibilities http://www.pyamf.org/whatsnew/0.6.html