Re: [web2py] Re: web2py scheduler not working

2013-10-22 Thread ranjith
Thanks for the response. Other than the below script, it was mentioned in the document that scheduler workers can be started via cron@reboot The scheduler does not use cron, although one can use cron @reboot to start the worker nodes. I am just starting to work on web2py. So, sorry for ignorance

[web2py] Re: Help with production deployment on virtual server

2013-10-22 Thread Ricardo Cárdenas
Hello curious, I'l assume you're using web2py 2.6 (you reference the handlers/ directory, which is new). Please review handlers/README. wsgihandler.py (all handlers in fact) is meant to be copied to web2py's root directory. Hope this helps, please report back... best regards -Ricardo On Tues

[web2py] Re: drop down for grid or smart grid search fields

2013-10-22 Thread Sarbjit
Can someone please help. On Tuesday, October 22, 2013 4:39:00 PM UTC+5:30, Sarbjit wrote: > > I am using GRID for displaying my database results. I want to use search > feature provided by GRID/SMARTGRID where users can build queries and get > the results. I want to have a drop down field popula

[web2py] Re: Web2py admin crashes

2013-10-22 Thread Dave S
On Tuesday, October 22, 2013 6:55:37 PM UTC-7, Joe Magaro wrote: > > Hi Dave, > > Im not sure what source zip to download? Can you provide some more info? > [...] > >> Basically, the update button is still having problems updating the gluon >> files. (This is mentioned in the followups in the

[web2py] Re: Web2py admin crashes

2013-10-22 Thread Joe Magaro
Hi Dave, Im not sure what source zip to download? Can you provide some more info? On Friday, October 4, 2013 3:57:32 PM UTC-4, Dave S wrote: > On Thursday, October 3, 2013 10:51:37 AM UTC-7, Dave S wrote: >> >> >> On Thursday, October 3, 2013 8:28:52 AM UTC-7, Joe Magaro wrote: >>> >>> Hi, >>>

[web2py] Re: Help with production deployment on virtual server

2013-10-22 Thread curiouslearn
Niphlod, Thanks again. Is uwsgi faster/safer? Anyhow, I tried doing what you said. But instead of following the difficult instructions in the web2py book, I used the instructions in uwsgi documentation. I have attached three files: (1) My nginx configuration. (mysite_nginxconf.com) (2) uwsgi co

Re: [web2py] Bootstrap 2.2.2 / 2.3.2

2013-10-22 Thread Kiran Subbaraman
Ykä, +1, this would interest me too: "implementing a front end framework for web2py". Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 10/22/2013 12:38 PM, Ykä Marjanen wrote: I'm with Niphlod on moving this to developers forum. As a newbie

Re: [web2py] Re: Combining rows

2013-10-22 Thread Anthony
On Tuesday, October 22, 2013 3:48:26 PM UTC-4, Richard wrote: > Ok, wasn't know if it was direct Python operator or web2py implementation, > the documentation is not clear about that : > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=union > The Rows class

[web2py] Signature in Auth

2013-10-22 Thread archeaneon
I saw that signature is set to True by default in Auth. I was wondering since I could not find much material on this topic, what is it used for and how is it implemented? Any answers would be very much appreciated! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

Re: [web2py] Re: Unknown Error

2013-10-22 Thread __pyslan__ - Ayslan Jenken
Thanks, Niphlod. I performed some tests to better understand it. I stayed a long time without working with web2py. I needed to remember some things. Thanks again! pyslan On Sat, Oct 19, 2013 at 9:03 AM, Niphlod wrote: > if you don't have blablabla_auth_*.table files in the databases/* folde

[web2py] Re: get user name and email on External cas login

2013-10-22 Thread Massimo Di Pierro
This cannot be right: db(db.auth_user.id==db.auth_user.id).select() will select all records. On Tuesday, 22 October 2013 03:54:23 UTC-5, ora marin wrote: > > Found a solution to use my headers generated by the sso that is providing > cas > ( header are defined by me and you can see them if you

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-22 Thread Massimo Di Pierro
Please make a minimalist app to reproduce and post it or email it to me. On Saturday, 19 October 2013 11:25:34 UTC-5, Andreas Wienes wrote: > > > Hey guys, > > I'm using web2py 2.7.4 and get some strange behavior with some redirects. > > If I click on "change password" in the user navbar I want t

[web2py] Re: Application not OK after upgrade from 2.5.1 to any posterior release...

2013-10-22 Thread Massimo Di Pierro
Can you create a minimal app to reproduce and email it to me? On Tuesday, 22 October 2013 01:54:40 UTC-5, pkomor wrote: > > I have deleted all sessions files, I have packaged the application with > 2.5.1 and restored in web2py > 2.5.1, deleting session files, I have made > an initial setup of th

Re: [web2py] web2py_component() works LOAD does not

2013-10-22 Thread Niphlod
that's pretty right, considering that in this way web2py knows for sure that an element with id "whatever" is indeed in the DOM. On Tuesday, October 22, 2013 8:50:49 PM UTC+2, Ricardo Pedroso wrote: > > On Tue, Oct 22, 2013 at 7:15 PM, Niphlod >wrote: > >> >> Try this instead: >>> >>> >>> {{=L

[web2py] Re: Help with production deployment on virtual server

2013-10-22 Thread Niphlod
low performances vs running web2py on uwsgi. PS: try running uwsgi directly pointing to that config file (i.e. no emperor mode with upstart, so you get a chance to see any logged error that may pop up) On Tuesday, October 22, 2013 10:15:16 PM UTC+2, curiouslearn wrote: > > While some helpful so

[web2py] Re: MySQL problem

2013-10-22 Thread Cliff Kachinske
Are you using lazy tables? Do your models define the referenced tables before they define the referrer? On Tuesday, October 22, 2013 2:14:22 PM UTC-4, Alfonso de la Guarda Reyes wrote: > > Hi, > > For the first time i have found a problem between web2py and mysql in > two Linux flavors: Ubuntu

[web2py] Re: Help with production deployment on virtual server

2013-10-22 Thread curiouslearn
While some helpful soul helps me understand how to setup web2py to work with nginx and uwsgi, I had another question. Is there anything wrong, or problematic in using the following for deployment Run web2py using python web2py.py -a mypasswd -i 0.0.0.0 -p 9001 and then use nginx to direct t

Re: [web2py] Re: DAL and JOINS error

2013-10-22 Thread Diogo Munaro
O...Ok, thanks Anthony! 2013/10/22 Anthony > On Tuesday, October 22, 2013 3:22:09 PM UTC-4, Diogo Munaro wrote: > >> But the book is wrong? >> Here: http://web2py.com/books/**default/chapter/29/06/the-** >> database-abstraction-layer?**search=join#Inner-joins

Re: [web2py] Re: Combining rows

2013-10-22 Thread Richard Vézina
Ok, wasn't know if it was direct Python operator or web2py implementation, the documentation is not clear about that : http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=union It seems, it is a python operation Richard On Tue, Oct 22, 2013 at 3:07 PM, Anthony w

Re: [web2py] Re: Combining rows

2013-10-22 Thread Richard Vézina
Consider I have w2p 2.4.7 Richard On Tue, Oct 22, 2013 at 3:48 PM, Richard Vézina wrote: > Ok, wasn't know if it was direct Python operator or web2py implementation, > the documentation is not clear about that : > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?s

[web2py] Re: DAL and JOINS error

2013-10-22 Thread Anthony
On Tuesday, October 22, 2013 3:22:09 PM UTC-4, Diogo Munaro wrote: > But the book is wrong? > Here: > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=join#Inner-joins > What do you see wrong in the book? Note, using the WHERE clause still does an inner join,

[web2py] Re: form.custom usage

2013-10-22 Thread Anthony
Please show all of your controller and view code. On Tuesday, October 22, 2013 3:18:16 PM UTC-4, Diogo Munaro wrote: > > Sorry Antony, I forgot the = here, but the code have it. > > The fields are there, but no validators work > > Em terça-feira, 22 de outubro de 2013 12h33min37s UTC-2, Anthony es

[web2py] Re: Help with production deployment on virtual server

2013-10-22 Thread curiouslearn
Niphlod, Thanks for getting back to me. There is no file that has uwsgi-emperor in its name in /var/log/upstart. Anything else I can do to find what is the problem? On Tuesday, October 22, 2013 1:03:37 PM UTC-4, Niphlod wrote: > > every upstart job logs something into > /var/log/upstart/name

[web2py] Re: DAL and JOINS error

2013-10-22 Thread Diogo Munaro
But the book is wrong? Here: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=join#Inner-joins Em terça-feira, 22 de outubro de 2013 13h09min07s UTC-2, Anthony escreveu: > > db(db.city.name.contains('rio') & db.city.state_id == db.state.id).select( >> db.city.na

[web2py] Re: form.custom usage

2013-10-22 Thread Diogo Munaro
Sorry Antony, I forgot the = here, but the code have it. The fields are there, but no validators work Em terça-feira, 22 de outubro de 2013 12h33min37s UTC-2, Anthony escreveu: > > {{form.custom.begin}} >> >> {{form.custom.widget.first_name}} >> >> {{form.custom.submit}} >> {{form.custom.end}} >>

Re: [web2py] Re: Combining rows

2013-10-22 Thread Anthony
Looks like a bug in the "|" operator method -- I think I have a fix. Anthony On Tuesday, October 22, 2013 1:20:15 PM UTC-4, Richard wrote: > > Ok, actually, it the "|" that lead to the "problem". > > len(rows1) > >>> 1 > len(rows2) > >>> 3 > > rows3 = rows1&rows2 > > len(row3) > >>> 4 > > len(row

Re: [web2py] web2py_component() works LOAD does not

2013-10-22 Thread Ricardo Pedroso
On Tue, Oct 22, 2013 at 7:15 PM, Niphlod wrote: > > Try this instead: >> >> >> {{=LOAD(url,ajax=True,target='**content')}} >> >> > LOAD(target='something') creates the div itself. > You are right, even without target keyword LOAD creates the DIV with a random id Ricardo -- Resources: - http

Re: [web2py] Re: web2py scheduler not working

2013-10-22 Thread Marin Pranjić
You are not supposed to add entries to scheduler_worker. You need to run scheduler in the background. python web2py.py -K myapp Detailed explanation here: http://web2py.com/books/default/chapter/29/04/the-core#Scheduler Marin On Tue, Oct 22, 2013 at 8:25 PM, ranjith wrote: > I tried changin

[web2py] Re: web2py scheduler not working

2013-10-22 Thread ranjith
I tried changing the worker table status to active/pick and others. It didnt work On Tuesday, 22 October 2013 23:53:24 UTC+5:30, ranjith wrote: > > Hi, > > I have a model file called scheduler.py which has > > from gluon.scheduler import Scheduler > def messageTask(): > mail.send(to=['ranjith

[web2py] web2py scheduler not working

2013-10-22 Thread ranjith
Hi, I have a model file called scheduler.py which has from gluon.scheduler import Scheduler def messageTask(): mail.send(to=['ranjith2...@gmail.com'],subject='hello', message='hi there') return scheduler = Scheduler(db,tasks=dict(messageTask=messageTask)) I added an entry in scheduler_t

Re: [web2py] web2py_component() works LOAD does not

2013-10-22 Thread Niphlod
> Try this instead: > > > {{=LOAD(url,ajax=True,target='content')}} > > LOAD(target='something') creates the div itself. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] MySQL problem

2013-10-22 Thread Alfonso de la Guarda
Hi, For the first time i have found a problem between web2py and mysql in two Linux flavors: Ubuntu and Arch. When i try to simply change the database from sqlite to mysql (and after delete all inside databases) the mysql shows me an error: (1005, "Can't create table 'bassistant.auth_user' (err

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Francisco Costa
Thanks Marin but I'm using the parameters based system I've found this question https://groups.google.com/forum/#!searchin/web2py/translation$20routes/web2py/Y8rc6yJgmbk/Iy6rqwYe27oJ and I think I will go with the models trick On Tuesday, October 22, 2013 7:00:45 PM UTC+1, Marin Pranjić wrote

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Marin Pranjić
Check here: http://web2py.com/books/default/chapter/29/04/the-core?search=routes#Pattern-based-system you need something like: routes_in=(('/appname/translated_controller_1/translated_function_1/$anything', '/appname/original_controller_1/original_function_1/$anything'), (...)) repeat for every

Re: [web2py] web2py_component() works LOAD does not

2013-10-22 Thread Ricardo Pedroso
On Tue, Oct 22, 2013 at 5:49 PM, Annet wrote: > > {{=LOAD(url,ajax=True,target='content')}} > > > Try this instead: {{=LOAD(url,ajax=True,target='content')}} if does not work pack a minimal app as Niphlod said. Ricardo -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] Re: new feature in trunk

2013-10-22 Thread Dave S
On Tuesday, October 22, 2013 10:41:43 AM UTC-7, Dave S wrote: > > On Monday, October 21, 2013 10:56:52 PM UTC-7, webpypy wrote: >> >> >> very nice >> >> what about the display of the tree in the view ? maybe as a column in a >> table. >> > > I would think that nested ul's would also be a natu

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Francisco Costa
Thanks Marin, can you provide me with an example of a translated controller and function using routes? On Tuesday, October 22, 2013 6:38:32 PM UTC+1, Marin Pranjić wrote: > > You can't translate a controller name, but you can use routes to map > translated name into original one. > The same is

[web2py] Re: new feature in trunk

2013-10-22 Thread Dave S
On Monday, October 21, 2013 10:56:52 PM UTC-7, webpypy wrote: > > > very nice > > what about the display of the tree in the view ? maybe as a column in a > table. > I would think that nested ul's would also be a natural choice. /dps -- Resources: - http://web2py.com - http://web2py.com/

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Marin Pranjić
You can't translate a controller name, but you can use routes to map translated name into original one. The same is for functions. Table names and fields can be translated easily using T('string_to_translate') Marin On Tue, Oct 22, 2013 at 7:25 PM, Francisco Costa wrote: > Is it possible to tra

[web2py] Controller name translation and function name translation

2013-10-22 Thread Francisco Costa
Is it possible to translate a controller name, without to copy the all code to a different controller name? And a function name? What about table names and fields? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

Re: [web2py] Re: Combining rows

2013-10-22 Thread Richard Vézina
Ok, actually, it the "|" that lead to the "problem". len(rows1) >>> 1 len(rows2) >>> 3 rows3 = rows1&rows2 len(row3) >>> 4 len(rows1) >>> 1 len(rows2) >>> 3 But rows4 = rows1|rows2 len(rows4) >>> 4 (in my use case) len(rows1) >>> 4 len(rows2) >>> 3 Richard On Tue, Oct 22, 2013 at 1:01

[web2py] Re: Help with production deployment on virtual server

2013-10-22 Thread Niphlod
every upstart job logs something into /var/log/upstart/name_of_the_service.log check if you have something on /var/log/upstart/uwsgi-emperor.log On Tuesday, October 22, 2013 6:48:42 PM UTC+2, curiouslearn wrote: > > I want to get web2py running on a Digital Ocean virtual server with nginx > an

Re: [web2py] Re: Combining rows

2013-10-22 Thread Richard Vézina
Hello Anthony, Not sure if it is an issue or web2py (or python) is intent to work like so... But let's say I have 2 rows sets : rows1 = query1 rows2 = query2 rows_combined = rows1 & rows2 rows_combined and rows1 seems to be equal, I mean rows1 seems to be containing rows2, so I can't do rows1 &

[web2py] Re: web2py_component() works LOAD does not

2013-10-22 Thread Niphlod
please, can you pack a minimal app to reproduce the issue and post it here as an attachment ? On Tuesday, October 22, 2013 6:49:01 PM UTC+2, Annet wrote: > > In my application I have the following code: > > > $(document).ready(function(){ > {{if url:}} > web2py_component('{{=url}}', 'content

[web2py] web2py_component() works LOAD does not

2013-10-22 Thread Annet
In my application I have the following code: $(document).ready(function(){ {{if url:}} web2py_component('{{=url}}', 'content'); {{pass}} }); url is set in a function: url=URL('smartapp', 'smartpage', args=[nodeID,categoryID]) In a view I have a div with id 'content' The problem with thi

[web2py] Help with production deployment on virtual server

2013-10-22 Thread curiouslearn
I want to get web2py running on a Digital Ocean virtual server with nginx and uWSGI. I followed the instructions on deployment recipes in Web2py book, but things are not working. The following are the differences between the instructions given in the book and my specific case. *Differences fro

[web2py] Re: Same menu in two applications.

2013-10-22 Thread Niphlod
On Tuesday, October 22, 2013 6:33:57 PM UTC+2, Annet wrote: > > Thanks for your reply. > > do those apps share the same session ? >> > > No, they don't share the same session. > > >> every app in web2py by default doesn't share the session, so if you're >> logged in in the first, it doesn't me

[web2py] Re: Same menu in two applications.

2013-10-22 Thread Annet
Thanks for your reply. do those apps share the same session ? > No, they don't share the same session. > every app in web2py by default doesn't share the session, so if you're > logged in in the first, it doesn't mean you're logged in into the other. > I haven't given sessions much thought y

Re: [web2py] Re: Combining rows

2013-10-22 Thread Richard Vézina
Yes sir!! I didn't think about it, I don't need to matter with duplicate, since each component of the union are mutually exclusive... At least it was working with or, but very long... Thanks Anthony!! Richard On Tue, Oct 22, 2013 at 11:45 AM, Anthony wrote: > On Tuesday, October 22, 2013 11

Re: [web2py] Re: Combining rows

2013-10-22 Thread Anthony
On Tuesday, October 22, 2013 11:28:07 AM UTC-4, Richard wrote: > Hello, > > I try to do union as explain the book, but it keeps running and running... > on row1|row2, I hava complexe query though with a lot of join and > subrequest... > It loops through row2 and checks whether each record alrea

Re: [web2py] Re: Combining rows

2013-10-22 Thread Richard Vézina
Hello, I try to do union as explain the book, but it keeps running and running... on row1|row2, I hava complexe query though with a lot of join and subrequest... When was this feature was available, I have web2py 2.4.7 Thanks Richard On Tue, Jun 11, 2013 at 7:13 AM, webpypy wrote: > > yes,

[web2py] Re: DAL and JOINS error

2013-10-22 Thread Anthony
> > db(db.city.name.contains('rio') & db.city.state_id == db.state.id).select( > db.city.name,db.city.id,db.state.name) db(db.city.name.contains('rio') & db.city.state_id == db.state.id) should be: db(db.city.name.contains('rio') & (db.city.state_id == db.state.id)) In python, the & takes pre

[web2py] Re: form.custom usage

2013-10-22 Thread Anthony
> > {{form.custom.begin}} > > {{form.custom.widget.first_name}} > > {{form.custom.submit}} > {{form.custom.end}} > Is that the actual code? If so, you need to precede each item above with an "=". > The fields comes without validators. Then, it reflect problems with > form.process().accepted >

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Richard Vézina
d3js seems a good horse to bet on him in the long run, I mean it is there to stay and offer a lot of feature... But I didn't compare neither. But there is not that much plot js in open source that offer all the goodies of highcharts Richard On Tue, Oct 22, 2013 at 10:13 AM, Thomas S wrote: > T

[web2py] form.custom usage

2013-10-22 Thread Diogo Munaro
Hi, I'm using custom forms because I have a predefined layout. So, in views, if I make: {{form.custom.begin}} {{form.custom.widget.first_name}} {{form.custom.submit}} {{form.custom.end}} The fields comes without validators. Then, it reflect problems with form.process().accepted By now, I'm us

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Richard Vézina
file_name come from your field : db.table.field.upload_field Here my field definition : Field('picture', 'upload', uploadseparate=True, autodelete=True, label=T('Profile image'), represent=lambda value, row: image_chooser(value, row, '360px', '360px') ), You can read the fu

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Thomas S
There are tons of such JavaScript based applications for plots. I have not compared them but flot seems to do the job. web2py is using flot for some graphs. What I meant with Java tools is that it's quite complex to write and read hdf files in Java applications. Unfortunately I have to use Java

[web2py] DAL and JOINS error

2013-10-22 Thread Diogo Munaro
Hi guy, I'm using web2py version 2.7.2 with ubuntu 12.04. I made a simple db.py: state = db.define_table('state', Field('name','string',label=T('State'))) city = db.define_table('city', Field('name','string',label=T('City')), Field('state_id','reference state',required=True,

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Richard Vézina
request.application ?? On Tue, Oct 22, 2013 at 10:01 AM, Thomas S wrote: > Yes, I use HDF5 for more than a year now. > It's great. The only drawback is the lack of elegant Java tools. > I upload those files and store their obfuscated names in a database, but > the actual file in uploads. > Havin

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Richard Vézina
You actually store the file name in database? if file_name != '' and file_name is not None: image_dir = db.auth_user[field].retrieve_file_properties(file_name)['path'] img = Image.open(os.path.join(image_dir, file_name)) :) Richard On Tue, Oct 22, 2013 at 10:06 AM, Richard Vézi

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Richard Vézina
There is also : http://d3js.org/ :) Richard On Tue, Oct 22, 2013 at 10:04 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > request.application ?? > > > On Tue, Oct 22, 2013 at 10:01 AM, Thomas S wrote: > >> Yes, I use HDF5 for more than a year now. >> It's great. The only drawback is

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Thomas S
Yes, I use HDF5 for more than a year now. It's great. The only drawback is the lack of elegant Java tools. I upload those files and store their obfuscated names in a database, but the actual file in uploads. Having said that it's not very elegant to construct the URL to locate the file: def sho

Re: [web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Richard Vézina
I heard a lot of good about HDF5 file format to hande important volume of data hierachical (mean you can query what ever data you need without load the full data set into a json for instance) : http://en.wikipedia.org/wiki/Hierarchical_Data_Format It very much faster then postgres (sure postgres i

Re: [web2py] Re: grid in component only works in Firefox

2013-10-22 Thread Jim Steil
...the nested form, that is... On Tue, Oct 22, 2013 at 7:58 AM, Jim Steil wrote: > Excellent guess!! That was it. Thanks a bunch for your help! > > > On Tue, Oct 22, 2013 at 7:21 AM, Ricardo Pedroso wrote: > >> >> On Mon, Oct 21, 2013 at 9:35 PM, Jim S wrote: >> >>> >>> Found a little more.

Re: [web2py] Re: grid in component only works in Firefox

2013-10-22 Thread Jim Steil
Excellent guess!! That was it. Thanks a bunch for your help! On Tue, Oct 22, 2013 at 7:21 AM, Ricardo Pedroso wrote: > > On Mon, Oct 21, 2013 at 9:35 PM, Jim S wrote: > >> >> Found a little more. Look at the two attachments. One is the generated >> html from Opera and the other from Firefox

Re: [web2py] Re: grid in component only works in Firefox

2013-10-22 Thread Jim Steil
Yes, Opera is showing the form tag. On Mon, Oct 21, 2013 at 4:31 PM, Niphlod wrote: > this means that in Opera the product_addon.load shows the tag ? > > > On Monday, October 21, 2013 11:26:36 PM UTC+2, Jim S wrote: > >> It works fine. Also, the data input elements are all displayed >> approp

[web2py] Re: summary of session optimisations

2013-10-22 Thread Anthony
> * It seems that web2py needs sessions most of them when users are logged > in, if we're following recommendations for signed URLs etc. Also, disabled > sessions means no CRUD according to the book, which presumably also rules > out SQLFORM & family. > SQLFORM does not require the session,

[web2py] Re: Unable to join more than one table in SQLForm.grid

2013-10-22 Thread Niphlod
to summarize. a Query is a condition q = db.auth_user.id > 0 The Set takes the Query and asks to the backend the results rows = db(q).select() The grid can exclusively take either a table (in which case, it knows it has to query for all the records in that table) or a query. Since it's t

Re: [web2py] Re: schema database support for the DAL

2013-10-22 Thread Niphlod
ehm... what ? are you searching for the word "schema" in the code ? :D see the new rname attribute On Tuesday, October 22, 2013 2:05:57 PM UTC+2, Johann Spies wrote: > > The only context I can see 'schema' being used in DAL is in connection > with GEO field types. > > Regards > Johann > -- Re

Re: [web2py] Re: grid in component only works in Firefox

2013-10-22 Thread Ricardo Pedroso
On Mon, Oct 21, 2013 at 9:35 PM, Jim S wrote: > > Found a little more. Look at the two attachments. One is the generated > html from Opera and the other from Firefox. The opera one is missing the > Form element. > Just guessing... Maybe nested forms? Ricardo -- Resources: - http://web2py.c

Re: [web2py] Re: schema database support for the DAL

2013-10-22 Thread Johann Spies
The only context I can see 'schema' being used in DAL is in connection with GEO field types. Regards Johann -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --

[web2py] drop down for grid or smart grid search fields

2013-10-22 Thread Sarbjit
I am using GRID for displaying my database results. I want to use search feature provided by GRID/SMARTGRID where users can build queries and get the results. I want to have a drop down field populated with the values defined in the database for the fields which are defined as strings in databa

[web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Cliff Kachinske
use the rows field in auth_permission as described here. http://web2py.com/books/default/chapter/29/09/access-control#Authorization On Tuesday, October 22, 2013 5:40:49 AM UTC-4, Thomas S wrote: > > Ok, I am making progress. I guess all those JavaScript tools are not great > when it comes to plo

[web2py] Re: Unable to join more than one table in SQLForm.grid

2013-10-22 Thread Cliff Kachinske
This defines a set of Row objects. query = db((db.auth_group.id==db.auth_membership.group_id) & (db.auth_user.id==db.auth_membership.user_id) & (db.auth_user.id==auth.user.id)).select(db.auth_group.ALL) This is how you define a query object. query = ((db.auth_group.id==db.auth_membership.group_i

[web2py] Re: Writing a time series monitor, pandas, matplotlib, highcharts...

2013-10-22 Thread Thomas S
Ok, I am making progress. I guess all those JavaScript tools are not great when it comes to plotting millions of points but I am happy to downsample on the server side and send less points - I am using flot instead of highcharts - Currently, the user is uploading a csv file. I don't do any par

Re: [web2py] Issues with creating a hash...

2013-10-22 Thread Ricardo Pedroso
On Mon, Oct 21, 2013 at 10:48 AM, Jason (spot) Brower wrote: I have the following in my controller... > # -*- coding: utf-8 -*- > def validate_message(recieved_data, message_hash): > secret_salt = "12345" > import hashlib > m = hashlib.sha224() > m.update(recieved_data + secret_sal

Re: [web2py] Bootstrap 2.2.2 / 2.3.2

2013-10-22 Thread Gael Princivalle
Ok I'm gone use 2.3.2. For sure Bootstrap 3 could be an improvement, but I'm still having a lot of fun with web2py + bootstrap 2.3.2. Thanks to all. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Re: get user name and email on External cas login

2013-10-22 Thread ora marin
Found a solution to use my headers generated by the sso that is providing cas ( header are defined by me and you can see them if you put this {{=request.env}} in a view file ) I added this in def user(): of my controllers/default.py def user(): if 'login' in request.args: row = db(db.

Re: [web2py] Help me test model subfolders

2013-10-22 Thread Johann Spies
Thanks Anthony and Massimo for *Revision:* *5a3f2701b077 *in the trunk a few hours ago. That fixed the problem for me. Both admin and the app works as expected. Regards Johann On 22 October 2013 08:26, Johann Spies wrote: > On 21 October 2013 21:28, Massimo Di Pierro wrote: > >> I do not u

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-22 Thread Andreas Wienes
No ideas? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] Re: summary of session optimisations

2013-10-22 Thread Niphlod
Il giorno martedì 22 ottobre 2013 08:47:48 UTC+2, Tim Richardson ha scritto: > > I'm trying to understand better some of the tips for session optimisation. > I've read the book and explored this group. Any improvements and > corrections would be appreciated. > > * It seems that web2py needs ses

Re: [web2py] Bootstrap 2.2.2 / 2.3.2

2013-10-22 Thread Ykä Marjanen
I'm with Niphlod on moving this to developers forum. As a newbie on front end framework and implementing it to web2py, here are some issues/topics I went through: 1) How layout.html works and can be changed 2) What are the additional web2py ajax and js functions and which ones I need and which