[web2py] Re: How to receive notification from users

2010-11-22 Thread mdipierro
form=SQLFORM.factory(Field('email'),Field('comment')) if form.accepts(request,session): mail.send(to=YOU,subject='from:'+form.vars.email,message=form.vars.comment) response.flash='Thanks for posting your comment' On Nov 22, 10:01 pm, David Liu wrote: > Hello everyone, > > I am currently doi

[web2py] How to receive notification from users

2010-11-22 Thread David Liu
Hello everyone, I am currently doing a project now and I have a question about how to receive notifications from users. For example, when some one file up the necessay form information, I want to get a notification. Appreciated for your help. David

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

2010-11-22 Thread Phyo Arkar
You can do Remote SSH Full TUN VPN (it will not just do one port forwarding but all protocols) by Doing as below. You can skip iptables part , these are for sharing connection from remote end. You need to be root on the server machine . >From Gentoo Wiki Archive: http://www.gentoo-wiki.info/H

[web2py] Re: Suggested patch to DAL

2010-11-22 Thread mdipierro
Talking about sql.py or dal.py. dal.py is an experimental rewrite of sql.py. dal.py is not used in web2py. dal.py has not been updated in long time. Massimo On Nov 22, 8:48 pm, Mariano Reingart wrote: > On Mon, Nov 22, 2010 at 10:27 PM, brad wrote: > > I tested further and am not sure now about

[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-22 Thread G
I ran into a problem with setting up SSL too which turned out to be caused by an ssl.conf file that was overriding the web2py.conf settings. I had similar messages in error.log, but as the [warn] indicates, they do not seem to be fatal errors. The errors I found were more like File does not exist.

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

2010-11-22 Thread G
Interesting, that makes sense. Except why does it seem to work so well with the built in web2py webserver but not apache. Is there a configuration setting in apache that would make it act more like the web2py server in this regard? Thanks for the response. On Nov 22, 2:15 pm, Phyo Arkar wrote: >

Re: [web2py] Re: Suggested patch to DAL

2010-11-22 Thread Mariano Reingart
On Mon, Nov 22, 2010 at 10:27 PM, brad wrote: > I tested further and am not sure now about my proposed fix. > > In dal.py, there seem to be two approaches to user-defined primary > keys: > > One is to assume that only special tables have an > attribute ._primarykey, and run special case code if ha

Re: [web2py] Delay to load images on webfaction

2010-11-22 Thread Jonathan Lundell
On Nov 22, 2010, at 5:47 PM, Bruno Rocha wrote: > Keep in mind that routes.py doesn't enter the picture for anything being > served directly by the host server (I see you're using nginx). > > Aside from figuring out how to serve the images directly, I see a couple of > other problems. Here's the

[web2py] Re: ssl and http web2py command line issues

2010-11-22 Thread Timbo
Dave, Sorry it's taken me so long to get back to you on this. I've taken a quick look at this and need a little more information. First of all, you're using one file as your key and your cert file. But the file you've supplied only contains a cert. Naturally it can't used as a key unless it con

Re: [web2py] Re: remove dups when using IS_IN_DB validator

2010-11-22 Thread Audra Rudys
That worked -- thanks! On Mon, Nov 22, 2010 at 4:58 PM, mdipierro wrote: > IS_IN_DB(db,'field.id','%(name)s',groupby=db.field.name) > > On Nov 22, 4:23 pm, Audra Rudys 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

[web2py] Re: AJAX forms with validation and security

2010-11-22 Thread blackthorne
Great, so I will anxiously wait! I'm doing my homepage with web2py :) On Nov 22, 9:43 pm, mdipierro wrote: > 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 wrote: > > > > > hi > > >

Re: [web2py] Delay to load images on webfaction

2010-11-22 Thread Bruno Rocha
> > Keep in mind that routes.py doesn't enter the picture for anything being > served directly by the host server (I see you're using nginx). > > Aside from figuring out how to serve the images directly, I see a couple of > other problems. Here's the header from one of the dogs: > > HTTP/1.1 200 OK

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

2010-11-22 Thread Dave Johnson
Updated in book: def insert_numbers(): form = SQLFORM (db.numbers) if form.accepts(request .vars, session , onvalidation=my

[web2py] Re: Suggested patch to DAL

2010-11-22 Thread brad
I tested further and am not sure now about my proposed fix. In dal.py, there seem to be two approaches to user-defined primary keys: One is to assume that only special tables have an attribute ._primarykey, and run special case code if hasattr(self, "_primarykey"), e.g.: if hasat

[web2py] Re: Creating vars in a URL

2010-11-22 Thread DenesL
To get a url you should use URL as explained in http://web2py.com/book/default/chapter/04#URL and it should look something like URL('reports','export_array_records',vars={'EndTime': '2010-11-08 22:00:00', 'String': ['S1', 'S2'], 'StartTime': '2010-11-08 21:00:00'}, extension='csv') but that will

Re: [web2py] Delay to load images on webfaction

2010-11-22 Thread Jonathan Lundell
On Nov 22, 2010, at 4:57 PM, Bruno Rocha wrote: > I am hosting a website in a shared webfaction plan, I need to load some > images, so I made all adjusts I found in webfaction user fórum to make apache > to server the images directly not overprocessing web2py static function. > > I made changes

[web2py] web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-22 Thread Hybride
Hi everyone, I have my head wrapped up with trying to set up SSL for web2py. I used, at first, the initial one-step deployment available for Ubuntu/ debian servers. The SSL was the issue then, so I went through the entire step-by-step available on the official book. I still can't seem to get SSL t

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

2010-11-22 Thread mr.freeze
Cool! I encourage anyone that has good web2py-centric info like this to make a slice. Google groups loses information after a painfully short time. On Nov 22, 3:57 pm, Jose wrote: > Hi, > > In web2pyslices [1] is an example to publish geo-referenced maps using > webservices. > > You need to have

[web2py] To map view to function's name

2010-11-22 Thread Phyo Arkar
is there a way to map the route of default_controller to same name of default_function, programmatically? have to define in route.py ? i cant find approute.py where is it? (yes i removed welcome app lol) . what i want to do is , i want default contoller/function/view all the same name: resulti

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

2010-11-22 Thread db-py
Thanks! I will give it a try.. On Nov 22, 5:28 pm, Phyo Arkar wrote: > i have not tried as FCGI tho. > > On Tue, Nov 23, 2010 at 4:57 AM, Phyo Arkar wrote: > > > nginx? > > > Yes i have it working well. > > > You just need to setup nginx port 80 as reverse proxy to web2py service > > running at p

[web2py] Delay to load images on webfaction

2010-11-22 Thread Bruno Rocha
Hi, I am hosting a website in a shared webfaction plan, I need to load some images, so I made all adjusts I found in webfaction user fórum to make apache to server the images directly not overprocessing web2py static function. I made changes to routes, I made Symbolic Links to Static, I made apac

[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 wrote: > hmmm. I do not think so. > > On Nov 22, 1:58 pm, mart wrote: > > > Ha! lol alright... but if it works, maybe I can document

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 wrote: > >> I've got the starttime and endtime portions figured out, how do I represent >> the Strings

[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 Phyo Arkar
You better use JSON via Post , dont pass from URL. On Tue, Nov 23, 2010 at 3:48 AM, Lorin Rivers wrote: > I've got the starttime and endtime portions figured out, how do I represent > the Strings portion in a url? > > 'StartTime': '2010-11-08 21:00:00', '_formname': 'no_table_create'}> > > With

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 wrote: > Just a hyphotesis, I've seen the issue you a

[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 wrote: > Assuming the file should be in > >   applications//modules/plugin_xx/libs1.py > > should be > >   libs1 = local_import("plugin_xxx/libs1.py) > > and if there is

[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 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 drop down list.

[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 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. Sometimes once the examp

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] 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] 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 wrote: > 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 Kuba Kucharski
ok, if it disappers on unpluging network, that it is not that issue, sorry

[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
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. -- Kuba

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 wrote: > 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

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 wrote: > Since there's no response, I'd figure I'd rephrase my

[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 wrote: > Can someone tell me if they have Web2py fully working on Nginx w/FCG

[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 dow

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 wrote: > On Nov 21, 9:48 pm, Phyo Arkar wrote: > > I tested , opened 20 welcome pages atonce , and also my application at > once. > > No slow down (not trunk but i commented out google cdn jquerys). S

[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 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 and it will work fi

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, 201

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? > >

[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

[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 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 those apps. > > Wha

[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 wrote: > hi > > SQLForm() offers validation, prevents double submission, a formkey and > it's possible to have many forms in the same page. I'

[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 in

[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? Without the string bits, the url looks something like this:

[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 refer

[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 refer

[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: unable to install application [solved]

2010-11-22 Thread mdipierro
No problem. Thanks for clarifying. On Nov 22, 3:00 pm, Will Stevens 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 your time... > > Will

[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 wrote: > It is a plugin, not an application. Are you inst

[web2py] Re: tables created dynamically

2010-11-22 Thread mdipierro
hmmm. I do not think so. On Nov 22, 1:58 pm, mart 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 wrote: > > > Now... as an exrecise... try to that with Django. ;-) > > > On Nov 22, 12:57 pm, mart

[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 go

[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 wrote: > Now... as an exrecise... try to that with Django. ;-) > > On Nov 22, 12:57 pm, mart wrote: > > > Fantastic!   Did a little test: > > > tlist = ['martP4Sync

[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

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

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 > On Nov 22, 7:57 pm, António Ramos 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/

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Bruno Rocha
Must include an advice 'Do it carefuly' 2010/11/22 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 wrote: > > On Nov 22, 2010, at 10:46 AM, Bruno Rocha wrote: > >

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 > 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

[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 wrote: > Fantastic!   Did a little test: > > tlist = ['martP4Sync', >          'coreP4Sync', >          'testP4Sync'] > for t in tlist: >     db.define_table('{0}'.format(t), >                     Field('name'), >    

[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 wrote: > On Nov 22, 2010, at 10:46 AM, Bruno Rocha wrote: > > > OK, now it works! thanks > > Might be nice to have a "reload routes" butto

[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. Field('name',requires=IS_IN_SET

[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 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, 12:46 pm, GoldenTig

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: 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:

[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 wrote: > I finished my search, I'd like to know how to edit the book, maybe > sending it to cjrh? > > (doing

[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 wrote: > If you have time to go over the last 1-2 months of emails and > suggestedbookcorrections and implement them in thebook, I

Re: [web2py] Re: Cross Domain xml

2010-11-22 Thread Bruno Rocha
OK, now it works! thanks 2010/11/22 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.p

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 > you put it in /init/static/ an

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 > 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

[web2py] Re: Type in Book 3rd Edition

2010-11-22 Thread cjrh
On Nov 22, 7:57 pm, António Ramos 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

[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 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 > here:http://na

[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: http://

[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

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: m...@exam

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:

[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 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, 2010, at 10:18 ,

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() >id=

[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 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 update the > source

[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

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 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 Vézina > w

[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 wrote: > Hello, > > I would like to know if there is way to pass a class attribute to a > particular ro

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 > 2010/11/19 António Ramos : > > Hello, can cron tasks write output to web2py console? > > Just use print command. >

[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] 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 wrote: > > Ok this works, thank

[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 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 problem. I need

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 wrote: > > Hi > > > > W

[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 wrote: > Hi > > With the code that I send in the previous mail, the crud.select() list > should appear as: > > Actions     |   Name      

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: 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 wrote: > Mey be having >

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 > Perhaps this: > >result = server.sendmail(self.settings.sender, to, > payload.as_string()) >server.quit() >except Exception, e: >logger.warn('Mail.sen

Re: [web2py] ajax push

2010-11-22 Thread Michele Comitini
Phyo, very interesting! mic 2010/11/21 Phyo Arkar : > 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 Comitini wrote: >> 2

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 > Perhaps this: > >result = server.sendmail(self.settings.sender, to, > payload.as_string()) >

[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

[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 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 "http://127.0.0.1:8000/IIITH_PGSSP/admin/index"; a

[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 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 wrote: > > > > > Hi

Re: [web2py] about cron tasks

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

Re: [web2py] Re: web2py 1.89.5 is OUT

2010-11-22 Thread Branko Vukelic
2010/11/22 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. This only happened to me if I skipped the very first step.

  1   2   >