[web2py] Errors in trunk?

2010-11-08 Thread Seeker
Hi, Getting the same error in 2 cases: In appadmin when clicking on the link to browse a particular table (http://127.0.0.1:8000/test/appadmin/select...) and also in a wizard generated app when selecting http://127.0.0.1:8000/test/default/mytable_select from the menu. RuntimeError, Using a

[web2py] ProgrammingError: (2014, Commands out of sync; you can't run this command now)

2010-11-08 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The MySQL error occurs quite often, several times every day. The app has about 2 page views daily and heavily communicates with db (tens of queries per request, in db I have about 100 tables). Currently I have pool with size for 10 connections.

[web2py] Authentication over domains

2010-11-08 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My application is running on more domains. Users wish to move from one domain to another, being still signed-in. I used combination of JS and Ajax to transfer the credentials from sessions between domains, adhering to security measures of JS which do

[web2py] Re: CLEANUP validator

2010-11-08 Thread villas
Hi Niphlod That's a good idea to test in the shell, where it worked fine. However, it still doesn't seem to work in the following contexts: Field('name','string', requires=CLEANUP() ) --or-- db.testtable.fieldstring.requires= CLEANUP() Maybe it's not meant to be used like that? Thanks for

[web2py] Re: list:reference issue

2010-11-08 Thread toan75
It's correct in my model? db.define_table('office', Field('name','string',length = 128,requires=ne), Field('description','text'), Field('pos','integer',default=100)) db.define_table('person', Field('office', db.office, requires = IS_IN_DB(db, 'office.id', '%

[web2py] UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-08 Thread Omri
Hello, I'm having a unicode problem with the DAL. I'm developing a (mainly) RPC database application with qooxdoo as JS framework and web2py as the webserver. I have created a fairly generic update_record function which simply gets two input variables - a table name and a data dictionary with

Re: [web2py] Re: Interesting developments...

2010-11-08 Thread Vinicius Assef
That's the main reason I chose web2py. In some point, frameworks will look like competitors, but some details matters. This is one we must pay attention on. -- Vinicius Assef. On Sun, Nov 7, 2010 at 10:09 PM, rochacbruno rochacbr...@gmail.com wrote: I am a Pylons user too, at our company the

[web2py] Re: list:reference issue

2010-11-08 Thread villas
Hi toan75, You have a few problems here. My advice would be to get it working and then make changes from there, after reading the book. Maybe use this to begin: db.define_table('office', Field('name','string',length = 128), Field('description','text'),

[web2py] Re: list:reference issue

2010-11-08 Thread toan75
Thank villas. I get one more error: http://127.0.0.1:8000/init/appadmin/select/db?query=db.person.id%3E0 Traceback (most recent call last): File E:\web2py-XDCB\gluon\restricted.py, line 188, in restricted exec ccode in environment File

[web2py] Content-Type for generic.json

2010-11-08 Thread olivier
According to RFC 4617 (http://www.ietf.org/rfc/rfc4627.txt), The MIME media type for JSON text is application/json. Community seems to agree: http://stackoverflow.com/questions/477816/the-right-json-content-type However, in 'generic.json' Content-Type is set to 'text/json'

Re: [web2py] Re: blob readable writeable = false not workin

2010-11-08 Thread Richard Vézina
db.define_table('table1', Field('table1_id','id'), Field('file','upload',uploadfield='file_blob'), Field('file_blob','blob')) Richard On Fri, Nov 5, 2010 at 7:45 PM, mdipierro mdipie...@cs.depaul.edu wrote: Can I see the model? On Nov 5, 11:40 am, Richard Vézina

Re: [web2py] Re: blob readable writeable = false not workin

2010-11-08 Thread Richard Vézina
Forgot this... In red in quote. On Mon, Nov 8, 2010 at 9:35 AM, Richard Vézina ml.richard.vez...@gmail.comwrote: db.define_table('table1', Field('table1_id','id'), Field('file','upload',uploadfield='file_blob'), Field('file_blob','blob'), migrate=False,

[web2py] update param in a Field constructor

2010-11-08 Thread Vinicius Assef
I have this model just for test: http://pastebin.com/vF4VBLLM Field 'was_inserted_on' is working all right. It has default insert value and it isn't updated across record updates. It's ok. But 'was_updated_on' is working the same way. I imagined it was null when record is inserted and in every

Re: [web2py] Re: Interesting developments...

2010-11-08 Thread Andrew Thompson
On 11/6/2010 4:46 PM, mdipierro wrote: What can I say? They managed to break backward compatibility for 3 frameworks at once. Users will be pissed. While I agree that backward compatibility is *very* comforting to users, I see a few possible problems with being completely unforgiving about

Re: [web2py] new admin in trunk

2010-11-08 Thread Martín Mulone
Many Thanks branko, it's beautifull!!. The edit area has a problem with icons i think. It's not display it. 2010/11/8 mdipierro mdipie...@cs.depaul.edu You can try it here: http://web2py.com/demo_admin/default/site I think Branko did an excellent job! -- My blog:

[web2py] Re: ProgrammingError: (2014, Commands out of sync; you can't run this command now)

2010-11-08 Thread mdipierro
I cannot say without looking at the code. MySQL has lots of undocumented quirks about what you can do and what you cannot do within one transaction. Try add a db.commit() after each insert/unpdate/form.accepts/ crud.update/crud.select IF you do a select after that. Do you have any try:...except

[web2py] Re: Authentication over domains

2010-11-08 Thread mdipierro
Please do. On Nov 8, 3:05 am, David Zejda d...@atlas.cz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My application is running on more domains. Users wish to move from one domain to another, being still signed-in. I used combination of JS and Ajax to transfer the credentials from

[web2py] Re: new admin in trunk

2010-11-08 Thread mr.freeze
This looks GREAT! Thank you Branko. On Nov 8, 10:11 am, mdipierro mdipie...@cs.depaul.edu wrote: You can try it here: http://web2py.com/demo_admin/default/site I think Branko did an excellent job!

[web2py] Re: CLEANUP validator

2010-11-08 Thread mdipierro
It should work. Can you show us more code and steps to reproduce the problem? On Nov 8, 5:14 am, villas villa...@gmail.com wrote: Hi Niphlod That's a good idea to test in the shell, where it worked fine. However, it still doesn't seem to work in the following contexts:

[web2py] Re: UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-08 Thread mdipierro
Can you try put a u in front of the string u... On Nov 8, 5:30 am, Omri omri...@gmail.com wrote: Hello, I'm having a unicode problem with the DAL. I'm developing a (mainly) RPC database application with qooxdoo as JS framework and web2py as the webserver. I have created a fairly generic

[web2py] Re: list:reference issue

2010-11-08 Thread mdipierro
This db.define_table('person', Field('office', db.office, requires = IS_IN_DB(db, 'office.id', '% (name)s', multiple=True)), Field('name')) should be db.define_table('person', Field('office', 'list:reference office), Field('name')) On Nov 8, 6:32 am, villas

[web2py] Re: Content-Type for generic.json

2010-11-08 Thread mdipierro
You are right. Fixed in trunk. On Nov 8, 8:34 am, olivier odema...@gmail.com wrote: According to RFC 4617 (http://www.ietf.org/rfc/rfc4627.txt), The MIME media type for JSON text is application/json. Community seems to

[web2py] Re: update param in a Field constructor

2010-11-08 Thread mdipierro
What you expect is correct and I cannot reproduce the problem. how do you update the record? On Nov 8, 8:54 am, Vinicius Assef vinicius...@gmail.com wrote: I have this model just for test:http://pastebin.com/vF4VBLLM Field 'was_inserted_on' is working all right. It has default insert value

[web2py] minimal URL rewrite

2010-11-08 Thread Eduardo
Is a URL rewrite in web2py/routes.py as below acceptable? # ==# #!/usr/bin/python # -*- coding: utf-8 -*- routes_in = (('', '/myapplic/default/index'),) routes_out = (('/myapplic/default/index', ''),) # ===# Or should I at least

[web2py] GAE appadmin update a record with an upload field

2010-11-08 Thread MicLee
Hi, On GAE, I use appadmin to update a record which includes an upload field. If I chose to retain the existing file, or delete it, a KeyError will be thrown. Tracing into the code I believed that the following patch is necessary: In sqlhtml.py:SQLFORM:accepts(), there is a block:

[web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread yamandu
OMG! The problem returned. And said this too: ERROR:root:Syntax error in C:\..\applications\anima/languages/pt-br.py On Nov 6, 10:07 am, Carlos Costa yamandu.co...@gmail.com wrote: I think It´s fine for now. At least it will be more clear to the developer until discover the cause. 2010/11/6

Re: [web2py] new admin in trunk

2010-11-08 Thread Branko Vukelic
Edit area has its own styles which I couldn't touch even though I wanted to... I'll check out trunk tonite and see if I get the same thing. What browser are you using? On Mon, Nov 8, 2010 at 5:15 PM, Martín Mulone mulone.mar...@gmail.com wrote: Many Thanks branko, it's beautifull!!. The edit

[web2py] Re: minimal URL rewrite

2010-11-08 Thread mdipierro
'/' is the correct thing. It should work on appserver too. Anybody else having this problem? On Nov 8, 10:29 am, Eduardo meketr...@gmail.com wrote: Is a URL rewrite in web2py/routes.py as below acceptable? # ==# #!/usr/bin/python # -*- coding: utf-8 -*-

[web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread mdipierro
Which problem returned? The cache problem or the language problem? 1.86.2 or 1.88.3? On Nov 8, 10:47 am, yamandu yamandu.co...@gmail.com wrote: OMG! The problem returned. And said this too: ERROR:root:Syntax error in C:\..\applications\anima/languages/pt-br.py On Nov 6, 10:07 am, Carlos

[web2py] Re: minimal URL rewrite

2010-11-08 Thread Eduardo
I found the problem: restarting the appserver fixes it. Thanks, Eduardo On Nov 8, 2:50 pm, mdipierro mdipie...@cs.depaul.edu wrote: '/' is the correct thing. It should work on appserver too. Anybody else having this problem? On Nov 8, 10:29 am, Eduardo meketr...@gmail.com wrote: Is a URL

Re: [web2py] new admin in trunk

2010-11-08 Thread Martín Mulone
/demo_admin/static/js/calendar.jsFailed to load resource: the server responded with a status of 404 (Not Found) /demo_admin/static/edit_area/images/search.gifFailed to load resource: the server responded with a status of 404 (Not Found) /demo_admin/static/edit_area/images/go_to_line.gifFailed to

[web2py] Using CAS and @auth.requires_login() decorator

2010-11-08 Thread demetrio
Hi, i'm trying to use CAS in my project, I can login and logout etc... but if I use any decorator like @auth.requires_login() it shows the web2py default login form. There is any way to use the auth decorators with cas? I've search in this group messages but i didn't find something useful for

[web2py] Re: new admin in trunk

2010-11-08 Thread Anthony
Excellent. Are you soliciting feedback, or just announcing? Assuming the latter, I'll limit comments to bugs: - There are some references to non-existent images -- Firefox seems to ignore these, but IE displays the missing image icon, which is ugly. Missing images I've noticed are (also, see

[web2py] Re: minimal URL rewrite

2010-11-08 Thread Eduardo
Massimo, besides mapping '/myapplic/default/index' to '/' (in and out), I'm also hiding myapplic/default/ from the URL for 2 actions, phil and progr: # == # routes_in = (('/phil', '/myapplic/default/phil'), ('/progr', '/ myapplic/default/progr'), ('/',

[web2py] Re: Using CAS and @auth.requires_login() decorator

2010-11-08 Thread mdipierro
The CAS documentation is old. You should use the CAS appliance for server but do not follow those instructions for the clients. Instead follow the instructions in the book (i.e. do not use cas.py). Massimo On Nov 8, 11:11 am, demetrio dgzabal...@gmail.com wrote: Hi, i'm trying to use CAS in

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
I'll see about the image. The trunk seems empty, though, so I guess Massimo is working on it right now. On Mon, Nov 8, 2010 at 6:32 PM, Anthony abasta...@gmail.com wrote: Excellent. Are you soliciting feedback, or just announcing? Assuming the latter, I'll limit comments to bugs: - There are

[web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread yamandu
Both! On Nov 8, 2:53 pm, mdipierro mdipie...@cs.depaul.edu wrote: Which problem returned? The cache problem or the language problem? 1.86.2  or 1.88.3? On Nov 8, 10:47 am,yamanduyamandu.co...@gmail.com wrote: OMG! The problem returned. And said this too: ERROR:root:Syntax error in

Re: [web2py] Re: Using CAS and @auth.requires_login() decorator

2010-11-08 Thread Daniel Gonzalez
The online book says to use cas.py http://web2py.com/book/default/chapter/08#Central-Authentication-Service In the paper version of the book or in the pdf one, there is a different documentation? Daniel El lun, 08-11-2010 a las 09:47 -0800, mdipierro escribió: You should use the CAS

[web2py] Re: Using CAS and @auth.requires_login() decorator

2010-11-08 Thread mdipierro
You are right. The problem is the cas appliance had some problems to begin with and has always been difficult to configure, because it predates auth. What is in the book should work (using cas.py) but only if you do not use Auth. You may be better off using the cas consumer integrated in Auth:

[web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread mdipierro
Do you have the Mark Hammond wein32 extensions? On Nov 8, 12:00 pm, yamandu yamandu.co...@gmail.com wrote: Both! On Nov 8, 2:53 pm, mdipierro mdipie...@cs.depaul.edu wrote: Which problem returned? The cache problem or the language problem? 1.86.2  or 1.88.3? On Nov 8, 10:47 

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
Btw, for those that haven't seen it yet, there is search functionality in design view under each heading. I don't know if you can actually try it right now, but when you get a chance, I'd like some usability feedback on that. -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check

[web2py] Re: new admin in trunk

2010-11-08 Thread mdipierro
I just pushed this again. One problem was this... the new web2py_ajax.html assumes the new static/css, static/js and static/images subfolder. This broke examples and admin. I created those submfolder and moved stuff in there. For some misterious reason hg add stopped being recursive and did not

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
Yes. 2010/11/8 mdipierro mdipie...@cs.depaul.edu: Do you have the Mark Hammond wein32 extensions? On Nov 8, 12:00 pm, yamandu yamandu.co...@gmail.com wrote: Both! On Nov 8, 2:53 pm, mdipierro mdipie...@cs.depaul.edu wrote: Which problem returned? The cache problem or the language

[web2py] Re: CLEANUP validator

2010-11-08 Thread villas
On Nov 8, 4:18 pm, mdipierro mdipie...@cs.depaul.edu wrote: It should work. Can you show us more code and steps to reproduce the problem? You are right, it saves to DB cleanly. I was a little confused because you have to re-read the data to re- display correctly. My other method: if

[web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread mdipierro
Did you ever edit the language files without using the web based interface? Somehow these files are getting corrupted and web2py is re-writing them. Massimo On Nov 8, 12:18 pm, Carlos Costa yamandu.co...@gmail.com wrote: Yes. 2010/11/8 mdipierro mdipie...@cs.depaul.edu: Do you have the

[web2py] Re: CLEANUP validator

2010-11-08 Thread mdipierro
On Nov 8, 12:19 pm, villas villa...@gmail.com wrote: On Nov 8, 4:18 pm, mdipierro mdipie...@cs.depaul.edu wrote: It should work. Can you show us more code and steps to reproduce the problem? You are right, it saves to DB cleanly. I was a little confused because you have to re-read the

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
Fix for missing folder_compo (which souldnt've been there at all). On Mon, Nov 8, 2010 at 7:16 PM, mdipierro mdipie...@cs.depaul.edu wrote: I just pushed this again. One problem was this... the new web2py_ajax.html assumes the new static/css, static/js and static/images subfolder. This broke

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
No. Once I tried to fix this very error copying the content from one language file to other. But the error already existed and keeps happening. 2010/11/8 mdipierro mdipie...@cs.depaul.edu: Did you ever edit the language files without using the web based interface? Somehow these files are

Re: [web2py] Re: Using CAS and @auth.requires_login() decorator

2010-11-08 Thread Daniel Gonzalez
Ok, it works fine. Thank you for everything Massimo El lun, 08-11-2010 a las 10:13 -0800, mdipierro escribió: You are right. The problem is the cas appliance had some problems to begin with and has always been difficult to configure, because it predates auth. What is in the book should work

[web2py] Re: minimal URL rewrite

2010-11-08 Thread Wikus van de Merwe
You can use regular expressions like this: routes_in = ( ('/', '/myapplic/default/index'), ('/(.+)', r'/myapplic/default/\1')) routes_out = ( ('/myapplic/default/index', '/'), ('/myapplic/default/(.+)', r'/\1'))

Re: [web2py] Re: Interesting developments...

2010-11-08 Thread Branko Vukelic
On Mon, Nov 8, 2010 at 5:10 PM, Andrew Thompson andre...@aktzero.com wrote: * Paradigm shifts in technology, Web3, or newer WSGIs, or some other basic component making a quantum leap that just works differently. One word: web3py :) -- Branko Vukelić bg.bra...@gmail.com

[web2py] Field not automatically updated with update param in constructor

2010-11-08 Thread Vinicius Assef
Buddies, this is what is happening, step by step: http://pastebin.com/b14HLy39 This test was made with latest stable version: Version 1.88.2 (2010-10-29 23:04:43) Again, am I missing something? I don't think there is a bug here. I expect I am making a really big and stupid mistake. This is too

[web2py] Linux Magazine Awards

2010-11-08 Thread mdipierro
http://www.linuxjournal.com/content/readers-choice-awards-2010 Best programming language: Python best scripting language: Python

[web2py] Re: Interesting developments...

2010-11-08 Thread mdipierro
http://web3py.com/ On Nov 8, 12:50 pm, Branko Vukelic bg.bra...@gmail.com wrote: On Mon, Nov 8, 2010 at 5:10 PM, Andrew Thompson andre...@aktzero.com wrote: * Paradigm shifts in technology, Web3, or newer WSGIs, or some other basic component making a quantum leap that just works differently.

[web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread mdipierro
This is misunderstanding. Yes what you have is correct. The default=datetime.now() and update=datetime.now() is evaluated only ONCE when the table is defined therefore when you insert and update the values are always the same. BUT when the code is in a web2py controller, the model is run again

Re: [web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread Vinicius Assef
Thanks, Massimo. But, when the record is inserted, the field with update param shouldn't be None? -- Vinicius Assef. On Mon, Nov 8, 2010 at 4:58 PM, mdipierro mdipie...@cs.depaul.edu wrote: This is misunderstanding. Yes what you have is correct. The default=datetime.now() and

[web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread mdipierro
no. if you have update but not default, default==update. On Nov 8, 1:02 pm, Vinicius Assef vinicius...@gmail.com wrote: Thanks, Massimo. But, when the record is inserted, the field with update param shouldn't be None? -- Vinicius Assef. On Mon, Nov 8, 2010 at 4:58 PM, mdipierro

[web2py] Re: minimal URL rewrite

2010-11-08 Thread mdipierro
$anything is equivalent to whatever (myapplic/default/$anything,/$anything) On Nov 8, 11:46 am, Eduardo meketr...@gmail.com wrote: Massimo, besides mapping '/myapplic/default/index' to '/' (in and out), I'm also hiding myapplic/default/ from the URL for 2 actions, phil and progr: #

[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-11-08 Thread mr.freeze
Can we submit be a plugin? On Nov 3, 3:18 pm, NetAdmin mr.netad...@gmail.com wrote: Web2py Application Exhibition Version 2.0 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

Re: [web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-11-08 Thread Mr admin
Sure! Plugins are just miniature applications right? :-) Mr.NetAdmin On Mon, Nov 8, 2010 at 1:13 PM, mr.freeze nat...@freezable.com wrote: Can we submit be a plugin? On Nov 3, 3:18 pm, NetAdmin mr.netad...@gmail.com wrote: Web2py Application Exhibition Version 2.0 Do you have a

Re: [web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread Vinicius Assef
OK. Understood. But I must say it doesn't conform with web2py documentation. About default, the book says: default sets the default value for the field. The default value is used when performing an insert if a value is not explicitly specified. It is also used to pre-populate forms built from

[web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread mdipierro
Hi Vinicius, I think there are two issues. The fact that models are executed at every http request and therefore values are set there is explained in the manual. I can understand the confusion when coming form other frameworks but there is nothing new there. About the update. I agree there is a

[web2py] Re: new admin in trunk

2010-11-08 Thread cjrh
Just checked now using Opera 10.61: the code editor doesn't load properly. It seems all squashed over to the right, or something like that. On Nov 8, 6:11 pm, mdipierro mdipie...@cs.depaul.edu wrote: You can try it here: http://web2py.com/demo_admin/default/site I think Branko did an

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
Also, help icon missing. On Mon, Nov 8, 2010 at 9:12 PM, cjrh caleb.hatti...@gmail.com wrote: Just checked now using Opera 10.61: the code editor doesn't load properly.  It seems all squashed over to the right, or something like that. On Nov 8, 6:11 pm, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
On Mon, Nov 8, 2010 at 9:12 PM, cjrh caleb.hatti...@gmail.com wrote: Just checked now using Opera 10.61: the code editor doesn't load properly.  It seems all squashed over to the right, or something like that. Ooh, bad... I'll see what this is about. -- Branko Vukelić bg.bra...@gmail.com

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
A few unclosed span tags. Massimo, here's the patch. On Mon, Nov 8, 2010 at 9:32 PM, Branko Vukelic bg.bra...@gmail.com wrote: On Mon, Nov 8, 2010 at 9:12 PM, cjrh caleb.hatti...@gmail.com wrote: Just checked now using Opera 10.61: the code editor doesn't load properly.  It seems all

[web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Stefaan Himpe
Hope you enjoy it. If you guys think it's OK as it is, I'll post a PDF version somewhere. I spotted a typo alaready (from: The age of web applications has alaready started...and web2py is there) The sentence Maybe not as web2py. sounds a bit weird to me (but I'm not a native English

[web2py] Re: web2py wizard (alpha) is here

2010-11-08 Thread newnomad
there is a ROR framework in the works specifically aimed at mobile application developing. http://daringfireball.net/linked/2010/11/08/37signals-mobile-framework So... how cool would it be if there was a mobileweb2py too... On Oct 21, 2:47 pm, blackthorne francisco@gmail.com wrote: Damn, I

[web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Anthony
Yes, Maybe not as web2py should be Maybe not as paranoid as web2py or just Maybe not as much as web2py. A few other typos: - Should be 31 validators (i.e., plural) - named after the HTML elements they represent (i.e., add the) - first applications written for the web2py framework (i.e., add the)

[web2py] Re: minimal URL rewrite

2010-11-08 Thread Eduardo
Thanks for your time, Wikus and Massimo. The code below inspired by the book: # # routes_in = (('/admin/$anything', '/admin/$anything'), ('/static/$anything', '/myapplic/static/$anything'), ('/appadmin/$anything', '/myapplic/appadmin/$anything'),

Re: [web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread Vinicius Assef
On Mon, Nov 8, 2010 at 5:49 PM, mdipierro mdipie...@cs.depaul.edu wrote: Hi Vinicius, I think there are two issues. The fact that models are executed at every http request and therefore values are set there is explained in the manual. I couldn't find that in DAL chapter

[web2py] Re: new admin in trunk

2010-11-08 Thread mdipierro
Please help us test the new in-file ajax search in admin/design. Massimo On Nov 8, 2:39 pm, Branko Vukelic bg.bra...@gmail.com wrote: A few unclosed span tags. Massimo, here's the patch. On Mon, Nov 8, 2010 at 9:32 PM, Branko Vukelic bg.bra...@gmail.com wrote: On Mon, Nov 8, 2010 at 9:12

[web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread mdipierro
I would remove the sentence if you skip... you only have 50 objects to learn. This is not the first image I have seen this this format (thin and long) but I am not sure I understand what it is intended for. Massimo On Nov 8, 2:43 pm, Branko Vukelic bg.bra...@gmail.com wrote: Here's the update.

[web2py] Re: minimal URL rewrite

2010-11-08 Thread mdipierro
instead of http:///admin try http:///admin/ same for appadmin. You are matching the final / On Nov 8, 4:03 pm, Eduardo meketr...@gmail.com wrote: Thanks for your time, Wikus and Massimo. The code below inspired by the book: # # routes_in =

[web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread mdipierro
On Nov 8, 4:11 pm, Vinicius Assef vinicius...@gmail.com wrote: On Mon, Nov 8, 2010 at 5:49 PM, mdipierro mdipie...@cs.depaul.edu wrote: Hi Vinicius, I think there are two issues. The fact that models are executed at every http request and therefore values are set there is explained in

[web2py] Re: new admin in trunk

2010-11-08 Thread DJ
Branko, New UI looks awesome! Nice work. -Sebastian On Nov 8, 11:48 am, Branko Vukelic bg.bra...@gmail.com wrote: Edit area has its own styles which I couldn't touch even though I wanted to... I'll check out trunk tonite and see if I get the same thing. What browser are you using?

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Branko Vukelic
On Mon, Nov 8, 2010 at 10:46 PM, Anthony abasta...@gmail.com wrote: Yes, Maybe not as web2py should be Maybe not as paranoid as web2py or just Maybe not as much as web2py. A few other typos: - Should be 31 validators (i.e., plural) - named after the HTML elements they represent (i.e., add

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Branko Vukelic
On Mon, Nov 8, 2010 at 11:16 PM, mdipierro mdipie...@cs.depaul.edu wrote: I would remove the sentence if you skip... you only have 50 objects to learn. Ok. This is not the first image I have seen this this format (thin and long) but I am not sure I understand what it is intended for. For

[web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread mdipierro
I have a possible solution in trunk. If you say default=None it does what you say and oncreate ignores update. If you do not specify a default but you do specify an update, default==update. Would this be acceptable? Massimo On Nov 8, 4:25 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Nov 8,

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Branko Vukelic
On Mon, Nov 8, 2010 at 10:19 PM, Stefaan Himpe stefaan.hi...@gmail.com wrote: (Btw I like the gray background - it occurred to me that perhaps a similar background might also look good in the admin app, which now looks a bit white to my eyes.) Massimo is partial to white, so I kept it.

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Branko Vukelic
Oh rats. Attached the wrong version w/p RPC fixed. :P On Mon, Nov 8, 2010 at 11:42 PM, Branko Vukelic bg.bra...@gmail.com wrote: Here's the corrected version. Let me know if you spot anything else. -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog:

[web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Anthony
Also, From the day one not fixed yet. On Nov 8, 5:44 pm, Branko Vukelic bg.bra...@gmail.com wrote: Oh rats. Attached the wrong version w/p RPC fixed. :P On Mon, Nov 8, 2010 at 11:42 PM, Branko Vukelic bg.bra...@gmail.com wrote: Here's the corrected version. Let me know if you spot

[web2py] Re: minimal URL rewrite

2010-11-08 Thread Eduardo
Thanks, Massimo. I got it now. I guess I'll just avoid ('/$anything', '/myapplic/default/$anything') before deployment, as it makes my app the default view for the base address. Eduardo On Nov 8, 8:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: instead of http:///admin try

[web2py] Re: new admin in trunk

2010-11-08 Thread Anthony
I don't see it. On Nov 8, 5:12 pm, mdipierro mdipie...@cs.depaul.edu wrote: Please help us test the new in-file ajax search in admin/design. Massimo On Nov 8, 2:39 pm, Branko Vukelic bg.bra...@gmail.com wrote: A few unclosed span tags. Massimo, here's the patch. On Mon, Nov 8, 2010

Re: [web2py] Re: new admin in trunk

2010-11-08 Thread Branko Vukelic
At top in design view, it's next to collapse/expand button. On Mon, Nov 8, 2010 at 11:53 PM, Anthony abasta...@gmail.com wrote: I don't see it. On Nov 8, 5:12 pm, mdipierro mdipie...@cs.depaul.edu wrote: Please help us test the new in-file ajax search in admin/design. Massimo On Nov 8,

Re: [web2py] Re: web2py wizard (alpha) is here

2010-11-08 Thread Branko Vukelic
On Mon, Nov 8, 2010 at 10:33 PM, newnomad uti...@gmail.com wrote: there is a ROR framework in the works specifically aimed at mobile application developing. I don’t know. It’s not like their last app framework went anywhere. -- John Gruber LOL! -- Branko Vukelić bg.bra...@gmail.com

[web2py] Re: new admin in trunk

2010-11-08 Thread mdipierro
It is in trunk but not on the demo because ajax slows down the server. On Nov 8, 5:02 pm, Branko Vukelic bg.bra...@gmail.com wrote: At top in design view, it's next to collapse/expand button. On Mon, Nov 8, 2010 at 11:53 PM, Anthony abasta...@gmail.com wrote: I don't see it. On Nov 8,

[web2py] Select/Option using a query distinct=True

2010-11-08 Thread Lorin Rivers
Hi there, I'm new to Web2Py and Python as well and I'm having trouble creating a form that does a search using a select/option, itself built with a query. I can get the result I want from the web2py shell: for row in db4().select(db4.data_table.MacAddr, distinct=True): ... print row.MacAddr

[web2py] Re: Plugin_JqGrid long-polling

2010-11-08 Thread AsmanCom
Who can help me with this? THX On 8 Nov., 08:04, AsmanCom d.as...@web.de wrote: THX mr.freeze Yeah request.vars, but the vars=dict is already set in callback =, how can I add the Javascript var to the vars=dict? On loadComplete: I set the server_time var(last successful relaod) and *

[web2py] html editor app/plugin/code for the appadmin

2010-11-08 Thread Eduardo
The web2py admin app comes with a nice code editor for use in the browser. I wonder if anyone knows of an HTML app/code I could add to my appadmin. In my personal website app, I am adding articles to the db as HTML, but I also would like to be able to edit what I've already inserted through the

Re: [web2py] html editor app/plugin/code for the appadmin

2010-11-08 Thread Branko Vukelic
This is the editor (one of them) used in web2py: http://www.cdolivet.com/index.php?page=editArea On Tue, Nov 9, 2010 at 12:44 AM, Eduardo meketr...@gmail.com wrote: The web2py admin app comes with a nice code editor for use in the browser. I wonder if anyone knows of an HTML app/code I could

[web2py] Re: html editor app/plugin/code for the appadmin

2010-11-08 Thread Eduardo
Thanks, Vukelic; I completely forgot the editor which comes with web2py already edits HTML in the views! Now I have to check if I'm able to configure it to open fields in the db, edit them and then save them back. Eduardo On Nov 8, 10:12 pm, Branko Vukelic bg.bra...@gmail.com wrote: This is

Re: [web2py] html editor app/plugin/code for the appadmin

2010-11-08 Thread Stef Mientki
On 09-11-2010 00:44, Eduardo wrote: The web2py admin app comes with a nice code editor for use in the browser. I wonder if anyone knows of an HTML app/code I could add to my appadmin. In my personal website app, I am adding articles to the db as HTML, but I also would like to be able to edit

Re: [web2py] Re: Field not automatically updated with update param in constructor

2010-11-08 Thread Vinicius Assef
On Mon, Nov 8, 2010 at 8:38 PM, mdipierro mdipie...@cs.depaul.edu wrote: I have a possible solution in trunk. If you say default=None it does what you say and oncreate ignores update. If you do not specify a default but you do specify an update, default==update. Would this be acceptable?

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Bruno Rocha
Branko, I want to have a portuguese version, do you mind if I edit the file translating into portuguese? 2010/11/8 Branko Vukelic bg.bra...@gmail.com On Mon, Nov 8, 2010 at 11:47 PM, Anthony abasta...@gmail.com wrote: Also, From the day one not fixed yet. Ok, all fixed. I think... :P Thanks

[web2py] Re: web2py as a cross-platform mobile application platform

2010-11-08 Thread mindsynch
I got this basically working with the following setup: web2py source, Version 1.88.2 PythonCE-2.5-20061219-source.zip from http://sourceforge.net/projects/pythonce/files/ Windows Mobile 5 web2py starts up ok (logger complains about not finding a handle for web2py) I can get a sqllite 3 database

[web2py] Re: web2py as a cross-platform mobile application platform

2010-11-08 Thread mdipierro
admin should no longer import MARKDOWN but MARKMIN and this will fix that problem. Can you try from gluon.tools import Mail, Auth,Crud, Service, separately and see what it fails? Massimo On Nov 8, 7:14 pm, mindsynch jb...@fielddiagnostics.com wrote: I got this basically working with the

[web2py] Re: new admin in trunk

2010-11-08 Thread Anthony
OK, downloaded trunk. The in-file search doesn't seem to be working for me. When I type a term in the box (e.g., response) and click the icon to the left of the box, nothing happens at all. If I hit enter instead, it appears to execute a search, but no files are returned -- I just see all the

[web2py] Re: RFC: Why web2py rocks

2010-11-08 Thread Anthony
Looks great. Nice work. On Nov 8, 5:53 pm, Branko Vukelic bg.bra...@gmail.com wrote: On Mon, Nov 8, 2010 at 11:47 PM, Anthony abasta...@gmail.com wrote: Also, From the day one not fixed yet. Ok, all fixed. I think... :P Thanks for help. Here's the JPG version. -- Branko Vukelić

[web2py] Re: Unicode bug in XML service

2010-11-08 Thread Clayton
Hi Massimo, Thanks for the quick reply. I'd be ok with utf8 strings, it's just that the DAL returned a unicode string, not utf8. So the code was extra complicated by having to convert all data from the DAL to utf8 strings in order not to crash the xml web service. I've really enjoyed working

  1   2   >