[web2py] Re: ERP projects

2010-11-22 Thread Rahul
Hi Bruno, Nice to know that you've written a scrum mgt system in web2py. In my organization we use a inhouse tool to manage AGILE development using scrum menthods. That is a client server app in .NET. However its painfully slow. Is the scrum mgt system you've written open source? Cheers,

[web2py] Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread demetrio
Hi, I have a problem with the represent functionality. In version 1.89.1 it was working fine, but then i updated to 1.89.4 and now to 1.89.5 (I don't know if it happens on .2 and .3), and it doesn't works. Moreover, the fields with the reference, now show the id of the table instead the format

[web2py] Re: Please help: Are these errors?

2010-11-22 Thread Seeker
Hi, Error 1 still happenning ... please help. On Nov 19, 10:28 am, Seeker tmurn...@gmail.com wrote: Hi Massimo, Error 1 described above still exists; even in trunk. Also, if the same specified-out-of-sequence table is selected in appadmin an error results: File

Re: [web2py] web2py 1.89.5 is OUT

2010-11-22 Thread Kenneth Lundström
Problem with change admin password is gone but problem with layout not being applied is still active. Now I have tried 3-4 different layouts, none is applied. This is a relative fresh installation of web2py, maybe 1.88 something this is my test installation. Then I have my main application

[web2py] import modules from plugin

2010-11-22 Thread Aurigadl
as I can import a model from plugin Example: myAplication =models =controller =views . . . . =plugins_xxx = models = plugin_xxx.py =modules = libs1py = libs2.py In the file models/plugin_xxx.py I write this: libs1.py

[web2py] how to get the message-id of a send mail

2010-11-22 Thread selecta
I was wondering if there is a proper way to get the message-id of a send mail. mail.send just returns true or false So far I tried to send the mail also to my own account and guess from comparing header and body that this is the mail that I send out. This however gives me quite some headaches with

[web2py] Re: After-method Execution

2010-11-22 Thread Ishbir
On Nov 21, 4:05 pm, Branko Vukelic bg.bra...@gmail.com wrote: Is it a pr0n site? :) lol No it ain't. Massimo: Thank you, I'll try your approach and get back if it worked or not.

[web2py] How to lauch an app from the edit page

2010-11-22 Thread António Ramos
Hello, when i´m in the edit page for App1 for example, how can i lauch this app without having to go back to Installed Applications page or search for index link and edit it and then Try View !!! Am i missing something here? Best regards antónio

[web2py] Re: After-method Execution

2010-11-22 Thread Ishbir
Okay, thank you; it worked. :) But, I couldn't yield from the controller function, I had to return a generator. Why is that so? On Nov 22, 5:47 pm, Ishbir ishbi...@gmail.com wrote: On Nov 21, 4:05 pm, Branko Vukelic bg.bra...@gmail.com wrote: Is it a pr0n site? :) lol No it ain't.

[web2py] Re: tables created dynamically

2010-11-22 Thread mdipierro
Now I understand. I think this should work: # some loop over name,repoType,task db.define_table({0}{1}{2}.format(name,repoType,task), Field('fileName'), Field('fileSize','integer')) for pTable in db.tables: if

[web2py] Re: Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread mdipierro
What do you mean: it does not work? The only change in this respect is that represent for id fields and reference fields in now ignored by SQLTABLE if linkto is passed. This is because linkto is used by appadmin and appadmin breaks when those fields have a represent. Massimo On Nov 22, 4:10 am,

[web2py] Re: Please help: Are these errors?

2010-11-22 Thread mdipierro
I think the problem is corrupted data. Can you try delete you data? Delete everything in applications/yourapp/ detabases On Nov 22, 4:14 am, Seeker tmurn...@gmail.com wrote: Hi, Error 1 still happenning ... please help. On Nov 19, 10:28 am, Seeker tmurn...@gmail.com wrote: Hi Massimo,

[web2py] Re: web2py 1.89.5 is OUT

2010-11-22 Thread mdipierro
On Nov 22, 5:05 am, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Problem with change admin password is gone but problem with layout not being applied is still active. Now I have tried 3-4 different layouts, none is applied. Can you clarify what does this mean? This is a relative

[web2py] Re: import modules from plugin

2010-11-22 Thread mdipierro
Assuming the file should be in applications/yourapp/modules/plugin_xx/libs1.py should be libs1 = local_import(plugin_xxx/libs1.py) and if there is a function f in the module r=libs1.f(...) On Nov 22, 5:09 am, Aurigadl aurig...@gmail.com wrote: as I can import a model from plugin

[web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread mdipierro
What is the message-id? On Nov 22, 6:02 am, selecta gr...@delarue-berlin.de wrote: I was wondering if there is a proper way to get the message-id of a send mail. mail.send just returns true or false So far I tried to send the mail also to my own account and guess from comparing header and

[web2py] Re: After-method Execution

2010-11-22 Thread mdipierro
That is wsgi works. On Nov 22, 7:30 am, Ishbir ishbi...@gmail.com wrote: Okay, thank you; it worked. :) But, I couldn't yield from the controller function, I had to return a generator. Why is that so? On Nov 22, 5:47 pm, Ishbir ishbi...@gmail.com wrote: On Nov 21, 4:05 pm, Branko Vukelic

[web2py] Re: How to lauch an app from the edit page

2010-11-22 Thread mdipierro
Click on index after the default.py exposes INDEX ... On Nov 22, 6:56 am, António Ramos ramstei...@gmail.com wrote: Hello, when i´m in the edit page for App1 for example, how can i lauch this app without having to go back to Installed Applications page or search for index link and edit it and

[web2py] doubt in redirection to different pages for different users after logging in

2010-11-22 Thread Vishnu
Hi, I am designing a portal where there are 2 kinds of users. one is admin and the other non-admin(regular). my doubt is, for admin i need to redirect to http://127.0.0.1:8000/IIITH_PGSSP/admin/index; after he logs in. actually it is redirecting to http://127.0.0.1:8000/

Re: [web2py] how to get the message-id of a send mail

2010-11-22 Thread Bruno Rocha
I guess you have to create table to store your sent messages, and a method which sends and store the send message. db.define_table('sentmail',Field('to'),Field('from'),Field('body')) def mail_sender(to,body): try: #send the mail . . return

Re: [web2py] Re: web2py 1.89.5 is OUT

2010-11-22 Thread Kenneth Lundström
Can you clarify what does this mean? When I select a layout when using the wizard to create a new application the layout is not applied. It shows the application without the layout I have selected. Kenneth This is a relative fresh installation of web2py, maybe 1.88 something this is my

[web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread selecta
If you look into the header of an email message, you will find a key called message-id, the value looks something like 4cea5d16.6010...@biologie.hu-berlin.de this message id is for example used when you reply to a mail then the header contains something like In-Reply-To:

Re: [web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread Bruno Rocha
Is there a result dictionary in Mail class, method send. http://code.google.com/p/web2py/source/browse/gluon/tools.py#549 But I dont know it this got message_id from the SMTP server. 2010/11/22 selecta gr...@delarue-berlin.de If you look into the header of an email message, you will find a

Re: [web2py] Re: web2py 1.89.5 is OUT

2010-11-22 Thread Branko Vukelic
2010/11/22 Kenneth Lundström kenneth.t.lundst...@gmail.com: Can you clarify what does this mean? When I select a layout when using the wizard to create a new application the layout is not applied. It shows the application without the layout I have selected. This only happened to me if I

Re: [web2py] about cron tasks

2010-11-22 Thread Vinicius Assef
2010/11/19 António Ramos ramstei...@gmail.com: Hello, can cron tasks write output to web2py console? Just use print command.

[web2py] Re: Please help: Are these errors?

2010-11-22 Thread Seeker
Hi Massimo, Each time I test I build an entirely new application from scratch. On Nov 22, 3:36 pm, mdipierro mdipie...@cs.depaul.edu wrote: I think the problem is corrupted data. Can you try delete you data? Delete everything in applications/yourapp/ detabases On Nov 22, 4:14 am, Seeker

[web2py] Re: doubt in redirection to different pages for different users after logging in

2010-11-22 Thread mdipierro
auth.settings.login_next=URL('admin','index') On Nov 22, 2:02 am, Vishnu sgvishnu...@gmail.com wrote: Hi,      I am designing a portal where there are 2 kinds of users. one is admin and the other non-admin(regular). my doubt is, for admin i need to redirect to

[web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread mdipierro
Perhaps this: result = server.sendmail(self.settings.sender, to, payload.as_string()) server.quit() except Exception, e: logger.warn('Mail.send failure:%s' % e) self.result = result self.error = e return False

Re: [web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread Bruno Rocha
Returning result will not break the compatibility? if someone has made a system which test if mail.send(...): or if mail.send(...) == True ? 2010/11/22 mdipierro mdipie...@cs.depaul.edu Perhaps this: result = server.sendmail(self.settings.sender, to,

Re: [web2py] ajax push

2010-11-22 Thread Michele Comitini
Phyo, very interesting! mic 2010/11/21 Phyo Arkar phyo.arkarl...@gmail.com: Websocket , yeah but compatiblity for websocket is bad , not even standardized yet. Here is pure python Comet server with client framework! http://orbited.org/ and looks quite good! On 11/18/10, Michele

Re: [web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread Bruno Rocha
Mey be having mail.settings.returning_method = 'boolean' | 'dict' ?? 2010/11/22 mdipierro mdipie...@cs.depaul.edu Perhaps this: result = server.sendmail(self.settings.sender, to, payload.as_string()) server.quit() except Exception, e:

[web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread mdipierro
Returning a dict evaluates as True therefore I would not consider it a breaking of backward compatibility. Unless objections I would not make this more complex that needs to be. Moreover I am not sure what GAE returns for sendmail. Massimo On Nov 22, 8:41 am, Bruno Rocha rochacbr...@gmail.com

Re: [web2py] Re: Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread Daniel Gonzalez
Hi With the code that I send in the previous mail, the crud.select() list should appear as: Actions | Name | Title | Type | State Work, Card | project_name | Project Title | devel | In process Where Actions field is the id.represent, and Type and State are fields with

[web2py] Re: Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread mdipierro
For now add crud.select(linkto=None) I understand the problem. I need to think about how to fix this one ... Massimo On Nov 22, 8:54 am, Daniel Gonzalez dgzabal...@gmail.com wrote: Hi With the code that I send in the previous mail, the crud.select() list should appear as: Actions    

Re: [web2py] Re: Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread Daniel Gonzalez
Ok this works, thank you very much. El lun, 22-11-2010 a las 07:03 -0800, mdipierro escribió: For now add crud.select(linkto=None) I understand the problem. I need to think about how to fix this one ... Massimo On Nov 22, 8:54 am, Daniel Gonzalez dgzabal...@gmail.com wrote: Hi

[web2py] Re: Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread mdipierro
Can you also check if the fix in trunk works for you? Massimo On Nov 22, 9:09 am, Daniel Gonzalez dgzabal...@gmail.com wrote: Ok this works, thank you very much. El lun, 22-11-2010 a las 07:03 -0800, mdipierro escribió: For now add    crud.select(linkto=None) I understand the

Re: [web2py] Re: Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread Daniel Gonzalez
Yes it works also in trunk with my app, with and without the linkto parameter. Thanks! Daniel El lun, 22-11-2010 a las 07:12 -0800, mdipierro escribió: Can you also check if the fix in trunk works for you? Massimo On Nov 22, 9:09 am, Daniel Gonzalez dgzabal...@gmail.com wrote: Ok this

[web2py] special attr to particular row crud.select or SQLTABLE

2010-11-22 Thread Richard Vézina
Hello, I would like to know if there is way to pass a class attribute to a particular row of crud.select or SQLTABLE? And if yes, how I may do it? Thanks Richard

Re: [web2py] about cron tasks

2010-11-22 Thread António Ramos
I my pc it does not print. Also the path to the script have to include the absolute path? Can it be a controller script? Antonio 2010/11/22 Vinicius Assef vinicius...@gmail.com 2010/11/19 António Ramos ramstei...@gmail.com: Hello, can cron tasks write output to web2py console? Just use

[web2py] Re: special attr to particular row crud.select or SQLTABLE

2010-11-22 Thread mdipierro
form=SQLTABLE(..) form[0] is the TABLE form[0][i] is the row i form[0][i]['_class']='myclass' # sets the class of that row. You can also do it wit jquery On Nov 22, 9:29 am, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello, I would like to know if there is way to pass a class

Re: [web2py] Re: special attr to particular row crud.select or SQLTABLE

2010-11-22 Thread Richard Vézina
Thank you. I try. Richard On Mon, Nov 22, 2010 at 10:34 AM, mdipierro mdipie...@cs.depaul.edu wrote: form=SQLTABLE(..) form[0] is the TABLE form[0][i] is the row i form[0][i]['_class']='myclass' # sets the class of that row. You can also do it wit jquery On Nov 22, 9:29 am, Richard

[web2py] How do I capture the IDs from an 'insert'

2010-11-22 Thread Lorin Rivers
I have a set that represents the records within a minute time span, upon insert of the calculated summary into another table, I'd like to update the source set with the ID of the inserted record. How do I do that? -- Lorin Rivers Mosasaur: Killer Technical Marketing http://www.mosasaur.com

[web2py] Re: How do I capture the IDs from an 'insert'

2010-11-22 Thread mdipierro
id = db.table.insert() or form=SQLFORM(...) if form.accepts() id=form.vars.id On Nov 22, 10:12 am, Lorin Rivers lriv...@mosasaur.com wrote: I have a set that represents the records within a minute time span, upon insert of the calculated summary into another table, I'd like to

Re: [web2py] Re: How do I capture the IDs from an 'insert'

2010-11-22 Thread Lorin Rivers
Do I need to set up my model so that the source set will accept the id? I'm getting a KeyError on RollupID: myset.update(RollupID=db4.array_mins.insert(..) On Nov 22, 2010, at 10:18 , mdipierro wrote: id = db.table.insert() or form=SQLFORM(...) if form.accepts()

[web2py] Re: How do I capture the IDs from an 'insert'

2010-11-22 Thread mdipierro
I do not underatnd the question. What is you current model? On Nov 22, 10:45 am, Lorin Rivers lriv...@mosasaur.com wrote: Do I need to set up my model so that the source set will accept the id? I'm getting a KeyError on RollupID: myset.update(RollupID=db4.array_mins.insert(..) On Nov 22,

Re: [web2py] Re: How do I capture the IDs from an 'insert'

2010-11-22 Thread Lorin Rivers
Both tables have an int field RollupID. The first table 'raw_data' is where I want to store the id of the insert into 'minute_table' (which will in turn store the id of the insert of the '5minute_table'). There's no reference set up in the model. On Nov 22, 2010, at 10:51 , mdipierro wrote:

Re: [web2py] Re: how to get the message-id of a send mail

2010-11-22 Thread Bruno Rocha
smtplib will return something just in case the server refuses a recipient, I guess you have to define the message-ID and send this in the mail header. In fact, smtplib doesn't include *any* headers automatically, but just sends the text that you give it as a raw message message = 'From:

[web2py] Type in Book 3rd Edition

2010-11-22 Thread António Ramos
In Web2py book, page 297 ,line 16 of code. Missing : Best regards António

[web2py] Cross Domain xml

2010-11-22 Thread Bruno Rocha
HI, I am in need to create an Cooliris web gallery from a RSS feed from the web2py app, My RSS feed is working well here: http://natalanimal.com.br/init/default/canil.rss But Cooliris http://www.cooliris.com/yoursite/express/builder/ , is asking me to create a crossdomain.xml file as: ?xml

[web2py] Re: Cross Domain xml

2010-11-22 Thread mdipierro
you put it in /init/static/ and have in route.py routes_in=[('/crossdomain.xml','/init/static/crossdomain.xml')] On Nov 22, 12:28 pm, Bruno Rocha rochacbr...@gmail.com wrote: HI, I am in need to create an Cooliris web gallery from a RSS feed from the web2py app, My RSS feed is working well

[web2py] Re: Type in Book 3rd Edition

2010-11-22 Thread cjrh
On Nov 22, 7:57 pm, António Ramos ramstei...@gmail.com wrote: In Web2py book, page 297 ,line 16 of code. Missing : I don't have my hard-copy of the book handy, could you specify the place in the online book? http://web2py.com/book

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Bruno Rocha
I already tried with routes_in = ((r'.*:/crossdomain.xml',r'/init/static/crossdomain.xml')) restarted apache and not works 2010/11/22 mdipierro mdipie...@cs.depaul.edu you put it in /init/static/ and have in route.py routes_in=[('/crossdomain.xml','/init/static/crossdomain.xml')] On Nov

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Jonathan Lundell
On Nov 22, 2010, at 10:38 AM, Bruno Rocha wrote: I already tried with routes_in = ((r'.*:/crossdomain.xml',r'/init/static/crossdomain.xml')) restarted apache and not works Restart web2py, not Apache, for changes to routes.py. 2010/11/22 mdipierro mdipie...@cs.depaul.edu you put it in

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Bruno Rocha
OK, now it works! thanks 2010/11/22 Jonathan Lundell jlund...@pobox.com On Nov 22, 2010, at 10:38 AM, Bruno Rocha wrote: I already tried with routes_in = ((r'.*:/crossdomain.xml',r'/init/static/crossdomain.xml')) restarted apache and not works Restart web2py, not Apache, for changes to

[web2py] Re: edit the book, get a free book

2010-11-22 Thread GoldenTiger
I finished my search, I'd like to know how to edit the book, maybe sending it to cjrh? (doing a copy/paste here makes a loss of format) On 19 nov, 03:32, mdipierro mdipie...@cs.depaul.edu wrote: If you have time to go over the last 1-2 months of emails and suggestedbookcorrections and

[web2py] Re: edit the book, get a free book

2010-11-22 Thread mdipierro
Login in the book. Let me know what email address you use for login and I will make you editor. Once editor the [edit] link is at the bottom of the pages. On Nov 22, 12:46 pm, GoldenTiger goldenboy...@gmail.com wrote: I finished my search, I'd like to know how to edit the book, maybe sending it

[web2py] Re: tables created dynamically

2010-11-22 Thread mart
Fantastic! Did a little test: tlist = ['martP4Sync', 'coreP4Sync', 'testP4Sync'] for t in tlist: db.define_table('{0}'.format(t), Field('name'), Field('value')) db.commit() for pTable in db.tables: if 'P4Sync' in pTable:

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Jonathan Lundell
On Nov 22, 2010, at 10:46 AM, Bruno Rocha wrote: OK, now it works! thanks Might be nice to have a reload routes button in the admin app. If someone is feeling ambitious to do it, it should just do: gluon.rewrite.load(), except that load can raise a syntax error, so you want something like:

[web2py] Re: edit the book, get a free book

2010-11-22 Thread GoldenTiger
i use this one goldenboy.es at gmail (i think my user_id is 128) On 22 nov, 19:51, mdipierro mdipie...@cs.depaul.edu wrote: Login in the book. Let me know what email address you use for login and I will make you editor. Once editor the [edit] link is at the bottom of the pages. On Nov 22,

[web2py] Re: edit the book, get a free book

2010-11-22 Thread GoldenTiger
what about suggestions like following one ? -- SUGGESTION #1 Undocumented IS_IN_SET http://groups.google.com/group/web2py/browse_frm/thread/418417e058ef9428 You can use dictionary to define values e.g.

[web2py] Re: Cross Domain xml

2010-11-22 Thread mdipierro
There is a workflow issue. If routes fail to reload and routes is important to access admin, user is locked out. Massimo On Nov 22, 1:06 pm, Jonathan Lundell jlund...@pobox.com wrote: On Nov 22, 2010, at 10:46 AM, Bruno Rocha wrote: OK, now it works! thanks Might be nice to have a reload

[web2py] Re: tables created dynamically

2010-11-22 Thread mdipierro
Now... as an exrecise... try to that with Django. ;-) On Nov 22, 12:57 pm, mart msenecal...@gmail.com wrote: Fantastic!   Did a little test: tlist = ['martP4Sync',          'coreP4Sync',          'testP4Sync'] for t in tlist:     db.define_table('{0}'.format(t),                    

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Bruno Rocha
Very useful feature! it can call a reload_routes function via ajax, and returns an flash if error. 2010/11/22 Jonathan Lundell jlund...@pobox.com On Nov 22, 2010, at 10:46 AM, Bruno Rocha wrote: OK, now it works! thanks Might be nice to have a reload routes button in the admin app. If

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Bruno Rocha
Must include an advice 'Do it carefuly' 2010/11/22 mdipierro mdipie...@cs.depaul.edu There is a workflow issue. If routes fail to reload and routes is important to access admin, user is locked out. Massimo On Nov 22, 1:06 pm, Jonathan Lundell jlund...@pobox.com wrote: On Nov 22, 2010,

Re: [web2py] Re: Type in Book 3rd Edition

2010-11-22 Thread António Ramos
Chapter 7 Topic On validation line 16 : missing!!! 2010/11/22 cjrh caleb.hatti...@gmail.com On Nov 22, 7:57 pm, António Ramos ramstei...@gmail.com wrote: In Web2py book, page 297 ,line 16 of code. Missing : I don't have my hard-copy of the book handy, could you specify the place in the

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Jonathan Lundell
On Nov 22, 2010, at 11:22 AM, mdipierro wrote: There is a workflow issue. If routes fail to reload and routes is important to access admin, user is locked out. I was looking at that. The current logic could use a little work, but basically it doesn't have that problem, because the routing

[web2py] Re: better keywords comics

2010-11-22 Thread Anthony
A few typos: - auth.reuiqres_permission should be auth.requires_permission - service.jsonrpx should be service.jsonrpc - service.amprpc3 should be service.amfrpc3 - Also, looks like def all_friend() would make more sense as def all_friends() Anthony On Nov 19, 10:42 pm, mdipierro

[web2py] Re: tables created dynamically

2010-11-22 Thread mart
Ha! lol alright... but if it works, maybe I can document and put THAT in your book and get a copy? ;) On Nov 22, 2:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: Now... as an exrecise... try to that with Django. ;-) On Nov 22, 12:57 pm, mart msenecal...@gmail.com wrote: Fantastic!   Did a

[web2py] tunneling over ssh causes incomplete page loads with apache

2010-11-22 Thread G
Hello, I have a strange problem. My server is behind a fire wall so I must use ssh tunnels to access web2py pages running on it. This works great with the default webserver included with web2py. To achieve better performance, I have now installed apache and got web2py working with it after a few

[web2py] Re: tables created dynamically

2010-11-22 Thread mdipierro
hmmm. I do not think so. On Nov 22, 1:58 pm, mart msenecal...@gmail.com wrote: Ha! lol alright... but if it works, maybe I can document and put THAT in your book and get a copy? ;) On Nov 22, 2:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: Now... as an exrecise... try to that with

[web2py] Re: unable to install application

2010-11-22 Thread Will Stevens
Sorry, I am an idiot. I thought that the plugin_wiki was an application on its own. I found the video and saw that the plugins are actually installed inside an application. Sorry to waste your time... Will On Nov 21, 9:13 pm, mdipierro mdipie...@cs.depaul.edu wrote: It is a plugin, not an

[web2py] Re: unable to install application [solved]

2010-11-22 Thread mdipierro
No problem. Thanks for clarifying. On Nov 22, 3:00 pm, Will Stevens williamstev...@gmail.com wrote: Sorry, I am an idiot.  I thought that the plugin_wiki was an application on its own.  I found the video and saw that the plugins are actually installed inside an application. Sorry to waste

[web2py] AJAX forms with validation and security

2010-11-22 Thread blackthorne
hi SQLForm() offers validation, prevents double submission, a formkey and it's possible to have many forms in the same page. I'm looking for a recipe that shows me how to keep all the goods of SQLFORM() but for AJAX. Any help? Thank you, Best regards

[web2py] Re: how do I load a database CSV dump into GAE?

2010-11-22 Thread howesc
Hi there, First off, read up on the GAE bulk loader: http://code.google.com/appengine/docs/python/tools/uploadingdata.html i think the newer releases support CSV, though i have not used it for CSV. below i'm pasting some old code of mine for uploading and downloading CSV, including fixup of

[web2py] Re: how do I load a database CSV dump into GAE?

2010-11-22 Thread howesc
Hi there, First off, read up on the GAE bulk loader: http://code.google.com/appengine/docs/python/tools/uploadingdata.html i think the newer releases support CSV, though i have not used it for CSV. below i'm pasting some old code of mine for uploading and downloading CSV, including fixup of

[web2py] Creating vars in a URL

2010-11-22 Thread Lorin Rivers
I've got the starttime and endtime portions figured out, how do I represent the Strings portion in a url? Storage {'EndTime': '2010-11-08 22:00:00', 'String': ['S1', 'S2'], 'StartTime': '2010-11-08 21:00:00', '_formname': 'no_table_create'} Without the string bits, the url looks something like

[web2py] How to call function from other app?

2010-11-22 Thread António Ramos
Hello, i have this need I want to create an app1 to validate and compute some data from other apps After that i want to create many apps to send data to be processed by app1 and returned by app1 to those apps. What is the best way? I looked at SQLFORM onvalidation to send fields to a function

[web2py] Re: AJAX forms with validation and security

2010-11-22 Thread mdipierro
I have a pending patch for signing form submissions. I did not have time to study it in detail. Should be in soon, I hope. On Nov 22, 3:13 pm, blackthorne francisco@gmail.com wrote: hi SQLForm() offers validation, prevents double submission, a formkey and it's possible to have many forms

[web2py] Re: How to call function from other app?

2010-11-22 Thread mdipierro
I would use xmlrpc Massimo On Nov 22, 3:39 pm, António Ramos ramstei...@gmail.com wrote: Hello, i have this need I want to create an app1 to validate and compute some data from other apps After that i want to create many apps to send data to be processed by app1 and returned by app1 to

[web2py] New slice [WMS and WFS with mapsever mapscript]

2010-11-22 Thread Jose
Hi, In web2pyslices [1] is an example to publish geo-referenced maps using webservices. You need to have installed python mapscript (Mapserver) Jose [1] http://www.web2pyslices.com/main/slices/take_slice/104

Re: [web2py] Re: How do I capture the IDs from an 'insert' [solved]

2010-11-22 Thread Lorin Rivers
I did have to create a variable to store the returned ID then update the set using the variable. In other words: myRollUpID = db.table.insert(..) mySet.update(RollUpID=myRollUpID) On Nov 22, 2010, at 10:51 , mdipierro wrote: I do not underatnd the question. What is you current model? On

Re: [web2py] tunneling over ssh causes incomplete page loads with apache

2010-11-22 Thread Phyo Arkar
Yes thats happen for me too seems that it is caused due to ssh tunnel is single connection where web request open multiple connections. Try testing with a page with no external css/js and it will work fine. There may be work around for ssh-tunnel not doing multiple requests . On Tue, Nov 23,

[web2py] Re: tunneling over ssh causes incomplete page loads with apache

2010-11-22 Thread mdipierro
One more reason for not having ajax in admin. On Nov 22, 4:15 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: Yes thats happen for me too seems that it is caused due to ssh tunnel is single connection where web request open multiple connections. Try testing with a page with no external css/js

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-22 Thread Phyo Arkar
Oh well i tried with ffox and chrome , under linux.. On Mon, Nov 22, 2010 at 10:45 AM, Anthony abasta...@gmail.com wrote: On Nov 21, 9:48 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: I tested , opened 20 welcome pages atonce , and also my application at once. No slow down (not trunk but

[web2py] remove dups when using IS_IN_DB validator

2010-11-22 Thread Audra Rudys
I have a form that only allows a subset of choices for some of the fields, so I'm using a SQLFORM Factory and the IS_IN_DB validator to generate a list of allowable values for the drop down list. The determination of allowable values requires a join, which generates some duplicates in the drop

[web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-11-22 Thread db-py
Since there's no response, I'd figure I'd rephrase my question.. Does anyone have a fully working web2py instance in production without the use of Apache or Cherokee web servers? Thanks, Dave On Nov 16, 3:17 pm, db-py dbr...@gmail.com wrote: Can someone tell me if they have Web2py fully

Re: [web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-11-22 Thread Phyo Arkar
nginx? Yes i have it working well. You just need to setup nginx port 80 as reverse proxy to web2py service running at port 8000 (or any) check around nginx config scripts its very powerful . On Tue, Nov 23, 2010 at 4:55 AM, db-py dbr...@gmail.com wrote: Since there's no response, I'd figure

Re: [web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-11-22 Thread Phyo Arkar
i have not tried as FCGI tho. On Tue, Nov 23, 2010 at 4:57 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: nginx? Yes i have it working well. You just need to setup nginx port 80 as reverse proxy to web2py service running at port 8000 (or any) check around nginx config scripts its very

[web2py] Re: Translation of the navbar

2010-11-22 Thread Nico de Groot
A small patch in tools.py is also possible, the rest of the navbar- function is neatly internationalized. There is a minimal downside: if someone would call navbar with a translated string instead of T(a greeting) as in the above suggestion this text would show up in de language files at the LHS.

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-22 Thread Kuba Kucharski
ok, if it disappers on unpluging network, that it is not that issue, sorry

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-22 Thread Phyo Arkar
It still happening for Anthony and Carlos. On Tue, Nov 23, 2010 at 5:07 AM, Kuba Kucharski kuba.kuchar...@gmail.comwrote: ok, if it disappers on unpluging network, that it is not that issue, sorry

[web2py] Suggested patch to DAL

2010-11-22 Thread brad
Massimo, I'm not sure how best to submit patches. I have a small fix to dal.py to fix a problem when MySQL backends are given a table definition having only the implicit primary key field: # HG changeset patch # Parent ff8a9ebefcc5b540cd9036e2711e6df46171e2f7 diff -r ff8a9ebefcc5 gluon/dal.py

Re: [web2py] bug in the book or in the code? linkedin instruction

2010-11-22 Thread Michele Comitini
Kuba, does the following work for you? def onlogin_add_permission(): if not auth.has_permission(auth.user_group(form.vars.id), 'create', 'my_table'): auth.add_permission(auth.user_group(form.vars.id),'create','my_table') auth.settings.login_onaccept = onlogin_add_permission

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-22 Thread Anthony
On Nov 22, 5:34 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: Just a hyphotesis, I've seen the issue you are describing many times. It always disapears when I move from Rocket to Apache/WSGI. It seems to me that it got smth to do with handling static files. You might be onto something.

[web2py] Re: remove dups when using IS_IN_DB validator

2010-11-22 Thread mdipierro
IS_IN_DB(db,'field.id','%(name)s',groupby=db.field.name) On Nov 22, 4:23 pm, Audra Rudys sphin...@gmail.com wrote: I have a form that only allows a subset of choices for some of the fields, so I'm using a SQLFORM Factory and the IS_IN_DB validator to generate a list of allowable values for the

[web2py] Re: import modules from plugin

2010-11-22 Thread Aurigadl
Thanks for the answer When I wrote this also worked. prueba = local_import('plugin_test.test') On 22 nov, 08:39, mdipierro mdipie...@cs.depaul.edu wrote: Assuming the file should be in   applications/yourapp/modules/plugin_xx/libs1.py should be   libs1 =

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-22 Thread Phyo Arkar
Hmm rocket server issue again..? also what i see is Rocket server is not updated for very long , Massimo , is Rocket still in development or dead ? , i dont see any development updates there.. On Tue, Nov 23, 2010 at 5:04 AM, Kuba Kucharski kuba.kuchar...@gmail.comwrote: Just a hyphotesis,

Re: [web2py] Creating vars in a URL

2010-11-22 Thread Phyo Arkar
You better use JSON via Post , dont pass from URL. On Tue, Nov 23, 2010 at 3:48 AM, Lorin Rivers lriv...@mosasaur.com wrote: I've got the starttime and endtime portions figured out, how do I represent the Strings portion in a url? Storage {'EndTime': '2010-11-08 22:00:00', 'String': ['S1',

[web2py] Re: how do I load a database CSV dump into GAE?

2010-11-22 Thread Richard
unfortunately the original Bulkloader was deprecated recently and they now use configuration files: transformers: - kind: person connector: csv connector_options: property_map: - property: identifier external_name: Identifier - property: name external_name: Name

Re: [web2py] Creating vars in a URL

2010-11-22 Thread Lorin Rivers
Phyko, Can you provide a simple example? On Nov 22, 2010, at 17:47 , Phyo Arkar wrote: You better use JSON via Post , dont pass from URL. On Tue, Nov 23, 2010 at 3:48 AM, Lorin Rivers lriv...@mosasaur.com wrote: I've got the starttime and endtime portions figured out, how do I represent

[web2py] Re: tables created dynamically

2010-11-22 Thread mart
yeah i know, but ... I still get to create update tables on the fly! :) Thanks again for the help, this REALLY helps! Mart :) On Nov 22, 3:47 pm, mdipierro mdipie...@cs.depaul.edu wrote: hmmm. I do not think so. On Nov 22, 1:58 pm, mart msenecal...@gmail.com wrote: Ha! lol alright...

  1   2   >