[web2py] Re: SQLForm grid vertical pagination issue

2013-04-01 Thread Rahul
Hey All, Any suggestions? Do I need to modify anything in sqlhtml.py file or other files? The application I created was with an older version of web2py. I am upgrading it so do I need to update or replace any files? css files etc ? Help would be much appreciated. Thanks, Rahul . On

[web2py] Re: weird auth error

2013-04-01 Thread vince
the default version of apache and mod_wsgi on centos 6.4. it was upgraded by web interface and i just replace the source code manually again and it seems fine now. On Thursday, March 28, 2013 11:32:38 PM UTC+8, Massimo Di Pierro wrote: > > What Python version? What platform? > > On Thursday, 28

[web2py] Re: smartgrid - limit which fields are editable after creation of record

2013-04-01 Thread DeanK
So I'm not sure if I understand this one-liner to properly use it. Request.args(-1) doesn't quite make sense to me...i would think you'd have to index into it starting at 0? If I place the line in the model or in my function that renders the smartgrid form the field is disabled completely. If

Re: [web2py] Re: pySerial - how to open port

2013-04-01 Thread The Organisation of Secret Shoppers
by that, do you mean to start the webserver by typing python web2py.py in the terminal? thanks a lot! :D On Mon, Apr 1, 2013 at 6:48 PM, Niphlod wrote: > clearly it was due to a permission problem btw, if you don't need > apache for anything else, given that the raspberry has "limited" res

[web2py] Re: smartgrid - limit which fields are editable after creation of record

2013-04-01 Thread Massimo Di Pierro
Yes: db.thetable.thefield.writable = (request.args(-1) == 'new') On Monday, 1 April 2013 17:31:16 UTC-5, DeanK wrote: > > I've been searching and haven't seemed to find someone trying to do this > yet. I'm wondering if there is a way to use the smartgrid, but limit what > fields can be edited

[web2py] Re: I wonder where Web2Py stands here...

2013-04-01 Thread Derek
That particular benchmark was quite unfair to rails, they had configured it in dev mode which recompiles code on every request. Also, it's not unbiased. They've released a lot of their own software which is written in Java, and it pays to have your own software ranked as highest performance, es

[web2py] smartgrid - limit which fields are editable after creation of record

2013-04-01 Thread DeanK
I've been searching and haven't seemed to find someone trying to do this yet. I'm wondering if there is a way to use the smartgrid, but limit what fields can be edited after you create an entry. I want to be able to use the smartgrid interface to create a new entry in some tables, but after th

[web2py] Re: File uploads from different tables wih SQLFORM.factory - table name issue

2013-04-01 Thread Anthony
I should mention this won't display validation errors in the form if you have any field validators -- you'd have to write additional logic to handle that. Anthony On Monday, April 1, 2013 1:26:09 PM UTC-4, Anthony wrote: > > You might try something like this: > > def upload(): > if request.

[web2py] Re: I wonder where Web2Py stands here...

2013-04-01 Thread Massimo Di Pierro
This is one of those tests where results depends on details (which json? which service?). Does it matter? On Monday, 1 April 2013 15:05:07 UTC-5, encompass wrote: > > www.techempower.com/blog/2013/03/28/framework-benchmarks/ > -- --- You received this message because you are subscribed to th

[web2py] Re: any way to convert svg file to a pdf file with web2py?

2013-04-01 Thread Massimo Di Pierro
Can you try imagemagick convert? http://www.imagemagick.org/script/convert.php On Monday, 1 April 2013 06:22:50 UTC-5, keiser1080 wrote: > > can you help my? > I need to convert a svg to a pdf end send it by mail. > I am able to edit the svg file. > I am able to send a mail with attachment. > > B

Re: [web2py] Re: A Web2py CMS like Joomla ?

2013-04-01 Thread samuel bonilla
django-cms, drupal, joomla, mezanine, plone etc web2py is so easy that don't need this. because web2py is how a cms 2013/4/1 Derek > You're looking in the wrong place then. Web2py is for developers to write > what they want. It's not a product that you just purchase and everything is >

[web2py] Re: File uploads from different tables wih SQLFORM.factory - table name issue

2013-04-01 Thread Lamps902
Interesting. Will give it a shot. Thanks! On Monday, April 1, 2013 12:26:09 PM UTC-5, Anthony wrote: > > You might try something like this: > > def upload(): > if request.post_vars: > request.post_vars._formkey = SQLFORM(db.table1).process(formname= > 'uploads').formkey > SQLFO

[web2py] I wonder where Web2Py stands here...

2013-04-01 Thread Jason (spot) Brower
www.techempower.com/blog/2013/03/28/framework-benchmarks/ -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more opt

[web2py] Re: /admin/design/MyApp very slow over 12 seconds

2013-04-01 Thread BlueShadow
Thats exactly what I'm saying. main site about 2sec admin/design/MyApp about 12 sec On Monday, April 1, 2013 9:39:00 PM UTC+2, Derek wrote: > > So you're saying your admin is slow but your main site isn't? > > On Saturday, March 30, 2013 12:29:48 AM UTC-7, BlueShadow wrote: >> >> Hi, >> my admin/

[web2py] Re: Populating of fields for a new record in a grid

2013-04-01 Thread Derek
http://web2py.com/books/default/chapter/29/06#Common-fields-and-multi-tenancy Look at db._common_fields On Monday, April 1, 2013 9:07:12 AM UTC-7, Sverre wrote: > > I have a query of N records for a grid like this one > > query = (db.locations.cid == static_cid) > > Every time I want to do a new r

[web2py] Re: /admin/design/MyApp very slow over 12 seconds

2013-04-01 Thread Derek
So you're saying your admin is slow but your main site isn't? On Saturday, March 30, 2013 12:29:48 AM UTC-7, BlueShadow wrote: > > Hi, > my admin/design is very slow (over 12 seconds) and my app isn't that big. > 9Models, > 2 Controllers (1 with 33 functions, 1 with 11), > 44 views, > I don't use

[web2py] Re: A Web2py CMS like Joomla ?

2013-04-01 Thread Derek
You're looking in the wrong place then. Web2py is for developers to write what they want. It's not a product that you just purchase and everything is how you want. You're looking for the "Plone" of Web2py (as "Plone" was to "Zope") you won't find one. You could certainly build on yourself. You'

[web2py] Parent record getting searched for, then having its ID captured for passing to child record

2013-04-01 Thread Alex Glaros
Can anyone show the syntax for getting the parent ID from a record that I have just retrieved as a result of a search? Related to my request, there's a great example on how to create a loop for adding child records to a parent on the slices website: http://www.web2pyslices.com/slice/show/161

[web2py] Re: /admin/design/MyApp very slow over 12 seconds

2013-04-01 Thread BlueShadow
This is on my ubuntu server so the bonjour service from that company with the half eaten fruit can't be the problem. On Monday, April 1, 2013 1:57:10 AM UTC+2, Chris Haubner wrote: > > One thing to check with your installation and setup that I was burned on > once regarding developing on a windo

Re: [web2py] any way to convert svg file to a pdf file with web2py?

2013-04-01 Thread keiser1080
I have no right on the server, so i can't install a package. Cairo isn't installed. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@goog

[web2py] Re: File uploads from different tables wih SQLFORM.factory - table name issue

2013-04-01 Thread Anthony
You might try something like this: def upload(): if request.post_vars: request.post_vars._formkey = SQLFORM(db.table1).process(formname= 'uploads').formkey SQLFORM(db.table2).process(formname='uploads') request.post_vars.clear() form = SQLFORM.factory(db.table1, db.

[web2py] Re: Smartgrid Bug?

2013-04-01 Thread Sverre
This was the solution! Thank you -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://group

[web2py] Populating of fields for a new record in a grid

2013-04-01 Thread Sverre
I have a query of N records for a grid like this one query = (db.locations.cid == static_cid) Every time I want to do a new record the cid field is empty and should not be visible because the static_cid is stored into the auth_user table as a part of a multi client software. How can I do it?

[web2py] Re: File uploads from different tables wih SQLFORM.factory - table name issue

2013-04-01 Thread Lamps902
Just realized a possible issue. It's simple enough to rename the strings that will become the database contents form 'no_table.[whatever]' to 'table_name.[whatever]' (i.e. doing a replace() on the appropriate form.vars), but if your upload field definitions have uploadseparate = True, will this

[web2py] Re: Smartgrid Bug?

2013-04-01 Thread Cliff Kachinske
I don't think that's a bug. Once you specify fields, you have to identify which fields you want to see for all the linked tables. In other words your fields arg should be something like this: fields = [ db.auth_user.first_name,db.auth_user.last_name,db.auth_user.username,db.auth_user.e

[web2py] Smartgrid Bug?

2013-04-01 Thread Sverre
I have a strange behaviour of the SQLFORM.smartgrid. I have this controller to do my own user management: @auth.requires_membership('admin') def user(): exportclasses = dict(xml=False, html=False, csv=False, json=False, tsv= False, tsv_with_hidden_cols=False, csv_with_hidden_cols=False)

[web2py] Re: smartgrid multiple links to related table - how to suppress all but one

2013-04-01 Thread Cliff Kachinske
Opened issue 1423 https://code.google.com/p/web2py/issues/detail?id=1423&thanks=1423&ts=1364829473 On Monday, April 1, 2013 10:11:59 AM UTC-4, Cliff Kachinske wrote: > > I have prototyped a change to the way smartgrid processes linked_tables. > I would like a similar change in the distributed

[web2py] Re: [solved] Re: Facebook conect and ExtendedLoginForm()

2013-04-01 Thread ctrlSoft
hi, i try to use web2social example, but got an error, { "error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", "type": "OAuthException", "code": 191 } } i setup, in facebook apps dashboard site url http://mysite.com/w

[web2py] Re: 'list:reference', contains, Mysql, instr

2013-04-01 Thread Ricardo Cárdenas
@niphlod - indeed, the use of expressions rather than values is not mentioned specifically in Ch. 6, though it is also not discounted. The added functionality would seem useful in many situations, while retaining the use of fixe

Re: [web2py] Re: nginx + uwsgi + web2py + PAM

2013-04-01 Thread Matt Broadstone
On Fri, Mar 29, 2013 at 12:15 PM, Matt Broadstone wrote: > On Fri, Mar 29, 2013 at 12:05 PM, Niphlod wrote: >> uhm. Before smashing heads against the wall, there are 3 different >> "available methods" here. >> >> 1) rely on nginx to authenticate users through pam (kinda of a basic auth, >> bu

[web2py] Re: File uploads from different tables wih SQLFORM.factory - table name issue

2013-04-01 Thread Niphlod
there's no feature to leverage in the current code. After all, a "factory" is something "ethereal" where your code needs to manage db interactions (and whatever needs to be done). SQLFORM.factory is just a shortcut: - to "play" with your current models - to save you defining a table just to g

[web2py] Re: 'list:reference', contains, Mysql, instr

2013-04-01 Thread Niphlod
@ricardo: this is done under the assumption that contains() takes a field it's nowhere documented in the book that this should work. contains() (just a few moments before the latest commit by Massimo) was supposed to take a "fixed" value, not a column. On Monday, April 1, 2013 4:31

[web2py] Re: 'list:reference', contains, Mysql, instr

2013-04-01 Thread Massimo Di Pierro
Fixed in trunk. Please check it out. On Monday, 1 April 2013 08:59:20 UTC-5, Ricardo Cárdenas wrote: > > Hi, I think I've run into this problem too (Web2py 2.4.5-stable, > PostgreSQL 9.1.8.). > > I have a list of movies; each may be tagged with one or more genres. Each > user in the system may s

[web2py] File uploads from different tables wih SQLFORM.factory - table name issue

2013-04-01 Thread Lamps902
If you have something like the following: form = SQLFORM.factory(db.table1, db.table2) and table1 has an 'upload' field named 'file1', with table2 containing an 'upload' field named 'file2', the filenames stored in the tables will end up as 'no_table.file[number].[unique_file_identifier].[exten

[web2py] Re: smartgrid multiple links to related table - how to suppress all but one

2013-04-01 Thread Cliff Kachinske
I have prototyped a change to the way smartgrid processes linked_tables. I would like a similar change in the distributed code. In current stable version, if linked_tables is a dictionary, smartgrid uses the keys but throws the values away. I propose the following: If linked_tables is not a d

[web2py] Re: 'list:reference', contains, Mysql, instr

2013-04-01 Thread Ricardo Cárdenas
Hi, I think I've run into this problem too (Web2py 2.4.5-stable, PostgreSQL 9.1.8.). I have a list of movies; each may be tagged with one or more genres. Each user in the system may show interest in one or more genres: db.define_table('genre', Field('name'), format='%(name)s') db.define_table('

[web2py] Typo on web2py.com homepage

2013-04-01 Thread Loïc
Red button on the right : "Sites Powere*b* by web2py" Regards -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more

[web2py] Re: auth ajax - how about this way?

2013-04-01 Thread Massimo Di Pierro
How about: def lost_password(): try: form = auth.retrieve_password() except HTTP: ### i assume that form redirected only if email send to user form = DIV('Please check your email, an email sent to you ',INPUT(_type='button',_value='Close',_class='btn btn-primary', _oncl

Re: [web2py] any way to convert svg file to a pdf file with web2py?

2013-04-01 Thread Alfonso de la Guarda
Hi, You can use this recipe to do something similar: http://stackoverflow.com/questions/8853553/convert-svg-to-pdf-svglib-reportlab-not-good-enough Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5

[web2py] any way to convert svg file to a pdf file with web2py?

2013-04-01 Thread keiser1080
can you help my? I need to convert a svg to a pdf end send it by mail. I am able to edit the svg file. I am able to send a mail with attachment. But i am not able to convert a svg to pdf. I try using fpdf and with svglig. -- --- You received this message because you are subscribed to the Goog

Re: [web2py] Re: pySerial - how to open port

2013-04-01 Thread Niphlod
clearly it was due to a permission problem btw, if you don't need apache for anything else, given that the raspberry has "limited" resources it would be better to stick with web2py's "embedded" webserver rather than having it mounted on apache. On Monday, April 1, 2013 10:56:03 AM UTC+2, Th

[web2py] Re: hook to add record in referenced table from current record edit?

2013-04-01 Thread Niphlod
did you check out http://www.web2pyslices.com/slice/show/1446/widget-select-or-add-option On Monday, April 1, 2013 11:28:46 AM UTC+2, Jurgis Pralgauskis wrote: > > > Hi, Django has it this way ( via "+" ) > https://docs.djangoproject.com/en/dev/_images/admin10.png > it opens in popup windown an

[web2py] many2one (reference) vs one2many (list: reference)

2013-04-01 Thread Jurgis Pralgauskis
Hi, list:reference is more human understandable... and traditional reference - more geek understandable :) if I use list:reference - because multiselect dropdown is what I need/like, how can I change the representation in appadmin grid and dropdown widget to show name not ID? what can be

[web2py] SQLForm grid vertical pagination issue

2013-04-01 Thread Rahul
Hi All, I am trying to use jquery-ui with sqlform grid. Here is my grid code from my controller - form = SQLFORM.grid( query=query, fields=fields, headers=headers, orderby=default_sort_order, user_signature=False, create=False, deletable=False, editable=False, csv=False, maxtextlength=64

[web2py] hook to add record in referenced table from current record edit?

2013-04-01 Thread Jurgis Pralgauskis
Hi, Django has it this way ( via "+" ) https://docs.djangoproject.com/en/dev/_images/admin10.png it opens in popup windown and after adding, refreshes dropdown.. What's the best way to hook it in web2py (appadmin or any SQLFORM)? -- --- You received this message because you are subscribed to

[web2py] Re: A Web2py CMS like Joomla ?

2013-04-01 Thread damufo
Thanks. I search anything as joomla CMS, with backend and with plugins. I think instantpress seem more complete. All is discontinued. Exist any project with development active in this moment? On Friday, March 29, 2013 10:08:47 PM UTC+1, samuel bonilla wrote: > > look > > https://github.com/

Re: [web2py] Re: pySerial - how to open port

2013-04-01 Thread The Organisation of Secret Shoppers
my web2py is forever "on". when i switch on my Raspberry-Pi, the web2py server is alive and i can access the webpage from another comp in the same network. Btw, thank you so much for your patience and help. :) It seems to work suddenly which i still could not figure out why! :/ just that i'm still

Re: [web2py] Re: pySerial - how to open port

2013-04-01 Thread Niphlod
you need to take into consideration what changes between the web2py environment and the cherrypy one. assuming that you start cherrypy with something like this in a mywebserver.py import cherrypyclass HelloWorld(object): def index(self): return "Hello World!" index.exposed = True

[web2py] auth ajax - how about this way?

2013-04-01 Thread yashar
is this true that SQLFORMs redirected to _next value when SQLFORM is accepted? so i did this: def lost_password(): from gluon.serializers import json try: form = auth.retrieve_password() except: ### i assume that form redirected only if email send to user return json