[web2py] Re: Exporting data from GAE BigTable

2010-08-01 Thread johntynan
Bruno, Have you tried using web2py's appadmin for your particular app: https://yourgaeappname.appspot.com/yourweb2pyappname/appadmin I am working towards backing up my app running on GAE, in the process, one of the developers I am working with pointed out the following: "The created_by fields i

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
Error on "select" widget, trying to fetch non UTF-8 text records, People wrote a message in portuguese, a lot of accents, [ á, é, ã, ê, í] , to insert with "create"widget no problem, then I can view the records on GAE admin. But when I try to select the accentuated records with " select"widge

[web2py] Re: Getting Eclipse / Pydev running

2010-08-01 Thread pabloest
Thanks, Christopher and Miguel. I will try a different port. Actually on Wing I started to get a similar error about nothing listening (and then an exit). But this was after the web2py pop-up where I can enter the port. I had just read your replies so I tried port 8080 and that did it. Thank you!

Re: [web2py] [Feature Request] js mimifier

2010-08-01 Thread Jason Brower
I like this reason and it could be something that would be nice as another reason why we should have a production and development setting in the application. BR Jason Brower On Sun, 2010-08-01 at 23:17 +0630, Phyo Arkar wrote: > Nice , but would it be extra work? > > -Most JS libs comes with thei

[web2py] Exporting data from GAE BigTable

2010-08-01 Thread Bruno Rocha
Hello, I'm writing a lot of text using cube2py running on GoogleAppEngine. All content written in cube2py is stored in the database, and I need to do a backup. Is there a way to use DAL to export records in a given table? I know it may be possible to do this by creating action.json or action.xml,

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
SlideShow widget also does not runs on GAE. try it; http://web2pybrasil.appspot.com/init/plugin_wiki/page/images the code: http://web2pybrasil.appspot.com/init/plugin_wiki/page.code/images Given an image saved as BLOB in GAE, how to retrieve this image URL to put it on Wiki Page body? 2010/8/1

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread mdipierro
I should remember to reference that in the new book. :-) On Aug 1, 5:33 pm, Thadeus Burgess wrote: > I must point out on the testing standpoint: > > http://packages.python.org/web2py_utils/test_runner.html > > -- > Thadeus > > On Sun, Aug 1, 2010 at 5:10 PM, mdipierro wrote: > > This was my resp

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
Page Attachments does not works on GAE 2010/8/1 Bruno Rocha > I am developing and writing a lot with plugin_wiki (cube2py). I already > have some suggestions, observations and have also found some bugs. > As I'm finding more issues, I will posting here in this thread. If someone > else has somet

[web2py] Re: block problem in 1.81.5

2010-08-01 Thread mdipierro
The confusion is my fault. We had a previous version (1.80.1?) with block support. We had to withdraw the feature for a minor incompatibility. We are not testing it some more to make sure everything is backward compatible. I apologize for the confusion. Massimo On Aug 1, 7:13 pm, BearXu wrote: >

Re: [web2py] Re: block problem in 1.81.5

2010-08-01 Thread Thadeus Burgess
Blocks are not supported in 1.81.5. They are only in the current trunk/nightly. It should make it into the next version. I am using blocks using the current trunk of web2py, everything is working fine for me. -- Thadeus On Sun, Aug 1, 2010 at 7:13 PM, BearXu wrote: > I mean if i wrote {{blo

Re: [web2py] Re: block problem in 1.81.5

2010-08-01 Thread BearXu
I mean if i wrote {{block some}}{{end}} in template. Web2py raise an error saying that the "block" keyword is not defined. On 2 August 2010 01:28, Thadeus Burgess wrote: > a block inside of the report? > > -- > Thadeus > > > > > > On Sun, Aug 1, 2010 at 4:50 AM, mdipierro wrote: >> What is a "bl

[web2py] Re: how to validate duplicity in a many to many table relationship?

2010-08-01 Thread web2py noob
thanks you very much, problem solved with that instruction. regards On 29 jul, 17:57, mdipierro wrote: > You are dernormalizing in a link table. Not a good idea. Let's go it b > the book: > > with crud.create(db.familia_riesgo) > > The models are like: > > db.define_table('familia',Field('ficha'

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Scott
I knew IntelliJ had a few plugins for PHP, Ruby, etc. but didn't think the Python plugin made it out of beta. I'll go take another look. Thanks! On Aug 1, 5:08 pm, "Robert O'Connor" wrote: > -Rob > > On Sun, Aug 1, 2010 at 4:42 PM, Scott wrote: > > I missed the last few sections when I pasted i

Re: [web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Thadeus Burgess
I must point out on the testing standpoint: http://packages.python.org/web2py_utils/test_runner.html -- Thadeus On Sun, Aug 1, 2010 at 5:10 PM, mdipierro wrote: > This was my response. It is awaiting moderation: > > Hello Ahmed. Nice article. > > A few comments: > web2py runs with Jython. W

[web2py] So... you want to sell closed source web2py exe apps?

2010-08-01 Thread mdipierro
yes, you can. http://www.web2py.com/AlterEgo/default/show/270

Re: [web2py] Re: App Migration

2010-08-01 Thread Debebe Asefa
Massimo: I am learning cube2py app, very handy tool, thank you very much for taking your time to make life easy for many people. The following are the problems I faced : - when I load an application ( big) like HL7, the cube2py application has difficulties downloading the app. ma

[web2py] Re: help with finding the main development version

2010-08-01 Thread mdipierro
Please,... web2py, not webpy since that be confused with web.py with is a different project. ;-) The official version is referred to as trunk hosted on google code and lanuchpad. The links are here in the third column: http://www.web2py.com/examples/default/download Massimo On Aug 1, 4:00 pm,

[web2py] help with finding the main development version

2010-08-01 Thread Pradyumna
I am new to webpy, I would like to download webpy. please provide me a link to the development version. (the links on the site are down for last two days). i found a github branch of the code but would like the official version(trunk) thanks and regards pradyumna

[web2py] Re: why is whitespace not allowed ?

2010-08-01 Thread mdipierro
This was a design decision as a quick way to comment out a function (so that it is not publicly exposed) but you can still call it internally. On Aug 1, 4:42 pm, Stef Mientki wrote: >  hello, > > This works : > def example1(): >   return dict(aap='beer') > > This gives "Invalid function" and no e

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread mdipierro
This was my response. It is awaiting moderation: Hello Ahmed. Nice article. A few comments: web2py runs with Jython. We just consider CPython the reference platform. There is a known bug in the Java regex library that sun marked as wontfix that can cause occasional runaway problems with parsing t

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-08-01 Thread mdipierro
No that I can think of. On Aug 1, 1:40 pm, Timmie wrote: > > I foundrestructuredtext to be too complex to parse. > > What marup language do you use as template? > Is there any markup format you use as design schedme for markmin?

[web2py] why is whitespace not allowed ?

2010-08-01 Thread Stef Mientki
hello, This works : def example1(): return dict(aap='beer') This gives "Invalid function" and no error ticket def example1 (): return dict(aap='beer') thanks, Stef Mientki

[web2py] Re: App Migration

2010-08-01 Thread Chase Lee
Thanks! That is very helpful. On Jul 31, 10:27 pm, mdipierro wrote: > This may also be useful > > http://gluonframework.wordpress.com/2010/03/02/shell-only-web2py/ > > On 31 Lug, 22:56, Chase Lee wrote: > > > > > Thanks so much!  That is astonishingly easy.  I've been looking at > > working with

Re: [web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Robert O'Connor
-Rob On Sun, Aug 1, 2010 at 4:42 PM, Scott wrote: > I missed the last few sections when I pasted in my response :-) > > - web2py uses the DAL as documented here: > http://en.wikipedia.org/wiki/Web2py#Database_handling; > why is an ORM needed? > > - web2py has excellent IDE support through Eclip

Re: [web2py] ARTICLE: The good and bad about web2py

2010-08-01 Thread Jason Brower
I agree about the unit testing. It woud really put web2py on another level. I think underscores are flipping awsome. Camelcase makes me sick. :P ide integration would be nice but we are on our way with that and eclipse. Trying that out soon. I personally feel that the error reporting is pretty goo

[web2py] Re: JSON from rows

2010-08-01 Thread PanosJee
thanx massimo as for question one i think i use action.json but i ll dig a little bit deeper into that On Aug 1, 4:40 pm, mdipierro wrote: > On Aug 1, 4:47 am, PanosJee wrote: > > > Hello everyone, i have 2 small questions regarding JSON. > > > Question1 > > I use @service.json to return a JSON

[web2py] Re: [Feature Request] js mimifier

2010-08-01 Thread PanosJee
the problem is not just to use a minified version of jquery but combine and compress all js files i have started a small project that would unify all js files and minify using Google Closure but there were some problems because of GAE (u cannot read the static files there) i ll post once i ll resum

Re: [web2py] Re: book 3rd edition call of help

2010-08-01 Thread Jonathan Lundell
On Aug 1, 2010, at 1:25 PM, Scott wrote: > Regarding the IDE, my preference is Wing IDE for its superior > debugging capabilities and there are detailed instructions on using it > with web2py here: http://wingware.com/doc/howtos/web2py I've used both Wing and Komodo with web2py, mainly for debugg

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Scott
I missed the last few sections when I pasted in my response :-) - web2py uses the DAL as documented here: http://en.wikipedia.org/wiki/Web2py#Database_handling; why is an ORM needed? - web2py has excellent IDE support through Eclipse and Wing IDE. Maybe we need more details on his issue. - As h

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Scott
Here are my thoughts, point by point: - web2py does support unit testing as it uses python code. I think the article author means you cannot currently set up unit tests within the administration console. You can configure tests as much or as little as you like from the command line. - I think t

[web2py] Re: book 3rd edition call of help

2010-08-01 Thread Scott
Regarding the article, this was started up in a second thread: http://groups.google.com/group/web2py/browse_thread/thread/1142aa8ab1de80cb Regarding the IDE, my preference is Wing IDE for its superior debugging capabilities and there are detailed instructions on using it with web2py here: http://w

Re: [web2py] Re: book revision

2010-08-01 Thread Jonathan Lundell
On Jul 26, 2010, at 9:09 AM, VP wrote: > I think the book needs some work. I'm learning web2py. I like it. > But I feel there are some "mysteries" that have not been explained in > the book. I hope you put a team on the book. Chapter 3 needs to be > thoughtfully expanded. The problem with ma

Re: [web2py] Re: OT: email notifications on repo change?

2010-08-01 Thread Thadeus Burgess
I currently use Feed My Inbox and have it pointed at the web2py commit stream RSS. Its nice to get daily updates of what gets changed. -- Thadeus On Sun, Aug 1, 2010 at 3:15 PM, Jonathan Lundell wrote: > On Aug 1, 2010, at 1:03 PM, Tim Michelsen wrote: > >>> Alternatively, as an ordinary use

Re: [web2py] Re: OT: email notifications on repo change?

2010-08-01 Thread Jonathan Lundell
On Aug 1, 2010, at 1:03 PM, Tim Michelsen wrote: >> Alternatively, as an ordinary user, you can go to the Project Home -> >> Updates and subscribe to its rss feed: >> >> feed://code.google.com/feeds/p/web2py/updates/basic >> >> (It's not shown as a link on the page, but it's in the header, and >

[web2py] Re: OT: email notifications on repo change?

2010-08-01 Thread Tim Michelsen
> Alternatively, as an ordinary user, you can go to the Project Home -> > Updates and subscribe to its rss feed: > > feed://code.google.com/feeds/p/web2py/updates/basic > > (It's not shown as a link on the page, but it's in the header, and > Safari, at least, exposes it; I assume Firefox as well.

Re: [web2py] Re: book 3rd edition call of help

2010-08-01 Thread Stef Mientki
Yep, where is that guy that was building an IDE ? At the moment, my viewer is almost turned into an editor, and I'm already dreaming of evolving it to an IDE. cheers, Stef Mientki On 01-08-2010 21:51, Anthony wrote: > This article -- > http://www.ahmedsoliman.com/2010/07/29/the-good-and-bad-a

Re: [web2py] OT: email notifications on repo change?

2010-08-01 Thread Jonathan Lundell
On Aug 1, 2010, at 12:38 PM, Tim Michelsen wrote: > when we were using bazaar and Lunchpad, there was a possibility to > subscribe to code repositories and Launchpad would send me a email when > a new revision was submitted. > > Is there a similar feature with google code? > > I could find the s

[web2py] Re: book 3rd edition call of help

2010-08-01 Thread Anthony
This article -- http://www.ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/ -- brings to mind another topic that could possibly use some more coverage in the book: tips on testing, debugging, and IDE setup (I mean IDE's other than the built-in web-based IDE). On Jul 29, 2:32 am, Anthon

[web2py] OT: email notifications on repo change?

2010-08-01 Thread Tim Michelsen
Hello, when we were using bazaar and Lunchpad, there was a possibility to subscribe to code repositories and Launchpad would send me a email when a new revision was submitted. Is there a similar feature with google code? I could find the setting in my profile. I welcome your hints. Timmie

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-08-01 Thread Timmie
> I foundrestructuredtext to be too complex to parse. What marup language do you use as template? Is there any markup format you use as design schedme for markmin?

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Tim Michelsen
> http://www.ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/ nice one. and fair. Would lo e to see a reaction from Massimo.

Re: [web2py] Re: block problem in 1.81.5

2010-08-01 Thread Thadeus Burgess
a block inside of the report? -- Thadeus On Sun, Aug 1, 2010 at 4:50 AM, mdipierro wrote: > What is a "block of reports"? > > On Aug 1, 12:50 am, Thadeus Burgess wrote: >> obviously something about no definition for a block of reports =/ >> >> -- >> Thadeus >> >> On Sat, Jul 31, 2010 at 9:2

[web2py] ARTICLE: The good and bad about web2py

2010-08-01 Thread David Marko
http://www.ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/

Re: [web2py] [Feature Request] js mimifier

2010-08-01 Thread Phyo Arkar
Nice , but would it be extra work? -Most JS libs comes with their own minified versions. -And Production setup for web2py is not rocket/or any built-in web server . it is with Apache/Cherokee/Lighttpd, all of them have ability to gzip -You can comproess your own JS script using Yahoo/Google's Comp

Re: [web2py] Re: Werid syntax Error. web2py 1.81.4

2010-08-01 Thread Phyo Arkar
casesdb.define_table('case_ data',*casedata_halfschema,migrate=True) #works python 2.6 but not in 2.5 it worked after you corrected me to, casesdb.define_table('case_ data',migrate=True,*casedata_halfschema) #works both But i didn't see it was mention that , it is changed in python 2.6 at pytho

Re: [web2py] Re: rewrite url using routes.py

2010-08-01 Thread Jonathan Lundell
On Aug 1, 2010, at 2:54 AM, mdipierro wrote: > I realized there was a bug in rewrite that prevented $1, $2, etc from > working. Please check if this is now fixed in trunk. A very minor redundancy: regex_at = re.compile('(?

[web2py] Re: Getting Eclipse / Pydev running

2010-08-01 Thread Christopher Steel
I took a closer look at your error message. Make sure the web2py and Eclipse are not trying to serve on the same ports. You might try running Web2py on port 8080 from Eclipse... ;) Chris On Jul 29, 9:38 am, pabloest wrote: > Hi, > > I'm having some trouble simply getting started with Eclipse an

[web2py] Re: UL an OL html helper wrap everything in a LI even sub-ULs/OLs

2010-08-01 Thread mdipierro
Thanks for letting us know. I panicked for a second. ;-) On Aug 1, 10:35 am, qqsaqq wrote: > You're right, I'm sorry. LI is the only allowed child element to UL/ > OL. > > I just had to change the Code from > `` > {{=UL("item1","item2",UL("item2_1","item2_2"))}} > ``:template > > to this > > `` >

[web2py] Re: Werid syntax Error. web2py 1.81.4

2010-08-01 Thread mdipierro
> Did python community mentioned Syntax change for *args in 2.6 ? tell us more

[web2py] Re: UL an OL html helper wrap everything in a LI even sub-ULs/OLs

2010-08-01 Thread qqsaqq
You're right, I'm sorry. LI is the only allowed child element to UL/ OL. I just had to change the Code from `` {{=UL("item1","item2",UL("item2_1","item2_2"))}} ``:template to this `` {{=UL("item1",LI("item2",UL("item2_1","item2_2")))}} ``:template and everything looked fine. :) On Aug 1, 4:59

Re: [web2py] Re: Werid syntax Error. web2py 1.81.4

2010-08-01 Thread Phyo Arkar
Yeah Thats it!! Thanks a lot Prof Massimo! Did python community mentioned Syntax change for *args in 2.6 ? On Sun, Aug 1, 2010 at 8:08 PM, mdipierro wrote: > should be > > casesdb.define_table('case_data',migrate=True,*casedata_halfschema) > > > On Aug 1, 7:32 am, Phyo Arkar wrote: > > Hello

[web2py] Re: UL an OL html helper wrap everything in a LI even sub-ULs/OLs

2010-08-01 Thread mdipierro
Are you telling me that you want this one one-one instead of this one one-one I do not think the former is valid HTML but I may be wrong. Massimo On Aug 1, 9:50 am, qqsaqq wrote: > the UL or OL html helper wrap every *arg that is

[web2py] UL an OL html helper wrap everything in a LI even sub-ULs/OLs

2010-08-01 Thread qqsaqq
the UL or OL html helper wrap every *arg that is passed to it with an LI (if the arg is not a LI already). Even if you have a sub-UL in an UL, the sub-UL gets wrapped in an LI. This way you get a bullet too many in the outer UL. To see the effect, try this (plugin_wiki) code: `` {{=UL("item1","it

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread rochacbruno
I mean that THISPAGE should be a shortcut to {{=request.args(0)}} THISPAGE = '{{=request.args(0)}}' " name: comments table: THISPAGE record_id: 1 ":comments or " {{=THISPAGE}} ":template Sent from my iPhone On 01/08/2010, at 05:40, qqsaqq wrote: > Concerning Your THISPAGE idea: > > I thi

[web2py] book online has images

2010-08-01 Thread mdipierro
This is still not the most updated version... but I will post the latest soon. Massimo

[web2py] Re: auth_membership problem

2010-08-01 Thread mdipierro
You still need a first_name and last_name even if you choose to make them hidden On Aug 1, 9:01 am, Johann Spies wrote: > On 1 August 2010 04:21, mdipierro wrote: > > > Can I see your model > > from gluon.tools import * > auth=Auth(globals(),db)              # authentication/authorization > crud

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread rochacbruno
No I was talking about an alias to {{= request.args(0)}} used in :widget and :template Sent from my iPhone On 01/08/2010, at 05:40, qqsaqq wrote: > Concerning Your THISPAGE idea: > > I think what You mean can be achieved simply by writing > [[this page #]] > I tried it, works great. > > O

Re: [web2py] Re: auth_membership problem

2010-08-01 Thread Johann Spies
On 1 August 2010 04:21, mdipierro wrote: > Can I see your model from gluon.tools import * auth=Auth(globals(),db) # authentication/authorization crud=Crud(globals(),db) # for CRUD helpers using auth service=Service(globals()) # for json, xml, jsonrpc, xmlrpc, a

[web2py] Re: rewrite url using routes.py

2010-08-01 Thread mdipierro
('/(.*?)/(.*?)', '/$1/yourcontroller/$2'), or use ('/$a/$anything', '/$a/yourcontroller/$anything'), On Aug 1, 1:16 am, Vasile Ermicioi wrote: > oops, not like that but like this > > routes_in = ( >     ('/(.*)/(.*)',   '/$1/yourcontroller/$2'), > ) > > everything is passed to a controlle

[web2py] Re: How to map multiple 'tags' to a 'blog'

2010-08-01 Thread mdipierro
yes use tag.name instead of tag.id in IS_IN_DB(...) On Aug 1, 5:59 am, Abhiteja wrote: > hi Gurus, > > Thanks for your help, I was able to run the program successfully. > > After following the suggestions, I have following issue: > > Blogs table contents: >                 blogs.id        blogs.h

[web2py] Re: JSON from rows

2010-08-01 Thread mdipierro
On Aug 1, 4:47 am, PanosJee wrote: > Hello everyone, i have 2 small questions regarding JSON. > > Question1 > I use @service.json to return a JSON response to an ajax call with > some rows but besides the data I also get some lambdas that are > attached to Rows. Is there any to get rid of those?

[web2py] Re: Werid syntax Error. web2py 1.81.4

2010-08-01 Thread mdipierro
should be casesdb.define_table('case_data',migrate=True,*casedata_halfschema) On Aug 1, 7:32 am, Phyo Arkar wrote: > Hello all, > > I am getting very weird syntax error : > > Below is the controller code : > > global RESPONSE , REQUEST, SESSION , db > > REQUEST = Request() > REQUEST = request >

[web2py] Werid syntax Error. web2py 1.81.4

2010-08-01 Thread Phyo Arkar
Hello all, I am getting very weird syntax error : Below is the controller code : global RESPONSE , REQUEST, SESSION , db REQUEST = Request() REQUEST = request SESSION = Session() SESSION = session RESPONSE = Response() RESPONSE = response casesdb=DAL('mysql://r...@localhost/'+session.db_name)

[web2py] Re: How to map multiple 'tags' to a 'blog'

2010-08-01 Thread Abhiteja
hi Gurus, Thanks for your help, I was able to run the program successfully. After following the suggestions, I have following issue: Blogs table contents: blogs.idblogs.heading blogs.description blog.tags 1 h1 d1

[web2py] Re: plugin_wiki suggestions

2010-08-01 Thread qqsaqq
Concerning Your THISPAGE idea: You can achieve this simply by writing [[this page #]] in the markmin editor. This will create a Link with the name "this page" and it links to http://127.0.0.1:8000/cube2py/plugin_wiki/page/home# (mind the # in the end!) On Aug 1, 7:22 am, Bruno Rocha wrote: > But

[web2py] International chracters RSS

2010-08-01 Thread István Gazsi
Hi! I used web2py a lot nowadays, and I'm very pleased with it. The only problem I couldn't solve is when I try to use international (accented) characters in a RSS feed created by web2py I always get an error. I've tried to look into it, but I'm not enough experienced in Python and I couldn't find

[web2py] Re: plugin_wiki suggestions

2010-08-01 Thread qqsaqq
Concerning Your THISPAGE idea: I think what You mean can be achieved simply by writing [[this page #]] I tried it, works great. On Aug 1, 6:54 am, Bruno Rocha wrote: > I am developing and writing a lot with plugin_wiki (cube2py). I already have > some suggestions, observations and have also foun

[web2py] Re: rewrite url using routes.py

2010-08-01 Thread mdipierro
I realized there was a bug in rewrite that prevented $1, $2, etc from working. Please check if this is now fixed in trunk. On Aug 1, 1:20 am, Thadeus Burgess wrote: > Don't forget routes out > > routes_out = ( >   ('/(.*)/(.*)/(.*)', '/$3'), > ) > > -- > Thadeus > > On Sun, Aug 1, 2010 at 1:16 A

[web2py] Re: plugin_wiki suggestions

2010-08-01 Thread mdipierro
Most of your bug reports/suggestions will be accommodated shortly. Please continue. ;-) On Aug 1, 2:03 am, Bruno Rocha wrote: > One more suggestion for today. > > It will be great to create new pages from "template", as creating a template > page with standard texts, widgets and other stuff, we h

[web2py] Re: block problem in 1.81.5

2010-08-01 Thread mdipierro
What is a "block of reports"? On Aug 1, 12:50 am, Thadeus Burgess wrote: > obviously something about no definition for a block of reports =/ > > -- > Thadeus > > On Sat, Jul 31, 2010 at 9:25 PM, mdipierro wrote: > > I do not understand what this thread is about > > > On 31 Lug, 20:49, Thadeus Bu

[web2py] Re: new syntax in trunk, please check it

2010-08-01 Thread mdipierro
This is the main issue I am trying to solve. I often do def show(): record = db.mytable[request.args(0)] This can fail in 3 ways: - request.args(0) is None or the id of a non-existing record => record=None - request.args(0) is a string but not is_digiT() => raise Exception - request.args(0)

[web2py] JSON from rows

2010-08-01 Thread PanosJee
Hello everyone, i have 2 small questions regarding JSON. Question1 I use @service.json to return a JSON response to an ajax call with some rows but besides the data I also get some lambdas that are attached to Rows. Is there any to get rid of those? Question 2 Is it also possible to return rows i

Re: [web2py] Getting Eclipse / Pydev running

2010-08-01 Thread Miguel Lopes
On Thu, Jul 29, 2010 at 2:38 PM, pabloest wrote: > Hi, > > I'm having some trouble simply getting started with Eclipse and Pydev > for web2py development. > I can't get into a debugging mode with web2py.py and the web server > will not even start. When I right-click and select Debug As > Python >

Re: [web2py] load form by its name

2010-08-01 Thread Miguel Lopes
On Sun, Aug 1, 2010 at 9:20 AM, Neveen Adel wrote: > Hello, > > i have function for example > def form_1(): > form = SQLFORM (_name='form_1') > > and i want inside a different function to load this form and insert > element into it > > For example: > > def another_fn(form_name): >form = #

Re: [web2py] Re: rewrite url using routes.py

2010-08-01 Thread Bruno Rocha
Does not works here, may I doing something wrong. $1 HelloWorld $2 default $3 index/args/ I do not want the url: http://127.0.0.1/HelloWorld/default/index I need http://127.0.0.1/index that points me to the place I need, but raises INVALID REQUEST I tried to remane my app to 'init' but does not

[web2py] load form by its name

2010-08-01 Thread Neveen Adel
Hello, i have function for example def form_1(): form = SQLFORM (_name='form_1') and i want inside a different function to load this form and insert element into it For example: def another_fn(form_name): form = # load the form by form Name #and then do form[0].element().insert()

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
One more suggestion for today. It will be great to create new pages from "template", as creating a template page with standard texts, widgets and other stuff, we have any way to duplicate that page. actually just creating a way to duplicate certain page will do that work. {{=thanks}} 2010/8/1 B