[web2py] need more than 1 value to unpack.

2013-03-29 Thread maneesh2611
This error occurs when I try to insert a table into db but the page says new record inserted. Traceback (most recent call last): File "C:\Users\manish\Documents\iiit\semester 2\itws 2\web2py_win\web2py\applications\project\controllers/appadmin.py", line 227, in select File "gluon/dal.py",

[web2py] Re: signed url

2013-03-29 Thread yashar
thank you, now i understand it. On Wednesday, March 27, 2013 5:21:24 PM UTC+4:30, Anthony wrote: > > The user signature is a hash of the URL, and by default this includes the > query string. However, your code uses Javascript to append the query string > after web2py creates the URL and its sign

[web2py] Re: not getting what this says

2013-03-29 Thread maneesh2611
These are the database tables I defined.I guess the problem is with the person table only. If I remove the last 4 lines and try to insert values. They are not getting inserted into the person and it is showing the same error. db.define_table('person', db.Field('name','string',requires=IS

[web2py] Re: ajax function in a grid, I'm getting None in a request.vars

2013-03-29 Thread Tim Richardson
So this works as far as getting my database update going: passing args constructed with the URL helper links = [lambda row: INPUT(_name='toggle',_type="submit",_value="Toggle", _onclick="ajax('%s','' ,':eval')" % URL( 'toggle_order_import',args=[row.id]))]) --

[web2py] Re: pySerial - how to open port

2013-03-29 Thread Joe Barnhart
I think Niphlod is right. You need to add your user to teh "dialout" group. http://dereenigne.org/linux/debianubuntu-serial-port-access --Joe On Thursday, March 28, 2013 1:54:29 AM UTC-7, theoffi...@gmail.com wrote: > > Hello everyone. > I would like to use web2py as my Raspberry Pi webserver.

[web2py] Re: ajax function in a grid, I'm getting None in a request.vars

2013-03-29 Thread Tim Richardson
On Saturday, 30 March 2013 16:23:26 UTC+11, Tim Richardson wrote: > > I'm trying to learn more about LOAD and ajax. > > I have an SQLFORM.grid loaded as a component. It's read only. > So this means the result is just an HTML table, not a form, so the field name is actually not there. looking a

[web2py] ajax function in a grid, I'm getting None in a request.vars

2013-03-29 Thread Tim Richardson
I'm trying to learn more about LOAD and ajax. I have an SQLFORM.grid loaded as a component. It's read only. I've added a button to each row using links = [lambda row: INPUT(_name='toggle',_type="submit",_value="Toggle", _onclick="ajax('toggle_order_import_v2',['id'

[web2py] retrieving blobs from legacy (oracle) database

2013-03-29 Thread Martin Barnard
Hi, I have read-only access to a legacy oracle database which is storing image files as blobs. I cannot modify the model to include a 'filename' field, or alter the table in any way. How can I display returned images as a stream? I.e. model looks like this: odb.define_table('player_photo',

[web2py] Re: web2py + TurnKeyLinux + AWS + PyPy

2013-03-29 Thread james c.
It looks like the answer is that you can create an install "patch" for the base Linux of TKL, Debian Squeeze, to install pypy. regards, James On Friday, March 29, 2013 4:07:23 PM UTC-7, james c. wrote: > > PyPy is a just in time compiled Python and from my little testing is a lot > faster than

[web2py] Re: datetime diff between tables

2013-03-29 Thread 黄祥
i've tried both of it but the result is 0. any idea about this? thank you so much -- --- 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...@googl

[web2py] web2py + TurnKeyLinux + AWS + PyPy

2013-03-29 Thread james c.
PyPy is a just in time compiled Python and from my little testing is a lot faster than Python. For example, on my Toshiba Intel Pentium 64 2 core laptop, in Python a tight conditional, memory assignment, and variable increment done 500Milion times takes *1 minute and 43 seconds*. The same seque

[web2py] Re: pySerial - how to open port

2013-03-29 Thread Rufus
Perhaps it is already open by another process? I'm not a major linux user (yet) but in windows only one process can open the serial port at a time. Perhaps "Permission denied" is the same as "In use". Also make sure you close it when, if your application doesn't terminate, as web2py doesn't, d

[web2py] web2py plugins threaded comments seems to be down

2013-03-29 Thread BlueShadow
I wanted to have a glance at the threaded comments and it raises an error when opening the page http://web2py.com/plugins/default/comments -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving e

[web2py] Re: Social media icons.

2013-03-29 Thread Niphlod
70x more weight but nice, nonetheless ! TY Bruno. On Friday, March 29, 2013 11:17:47 PM UTC+1, rochacbruno wrote: > > > pure css icons http://zocial.smcllns.com/ > > > On Friday, March 29, 2013 3:49:21 AM UTC-3, Annet wrote: >> >> I like the social media icons that come with web2py, are they par

[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?

2013-03-29 Thread Niphlod
not to question your method, I'd just like to know better the requirements.. line numbers change (a lot) between commits. They'll be valid only in the context of the commit, i.e. they will be exact pointers only referring to the "past" status of the source file. What will happen is head^2

[web2py] Re: Social media icons.

2013-03-29 Thread rochacbruno
pure css icons http://zocial.smcllns.com/ On Friday, March 29, 2013 3:49:21 AM UTC-3, Annet wrote: > > I like the social media icons that come with web2py, are they part of a > larger set? > > I need icons for social media other than facebook, gplus and twitter. > > > Kind regards, > > Annet

[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?

2013-03-29 Thread Alan Etkin
> > you mean both on the original and on the new "stacks" ? > I suppose is enough if they are appended to the right side stack. That's what I'd use for browsing the places to modify in the chapter files. -- --- You received this message because you are subscribed to the Google Groups "web2p

[web2py] Re: is there a stable blog app for web2py ?

2013-03-29 Thread samuel bonilla
look... https://github.com/pyner/tiny_website demo : http://www.espern.net/tiny_website/pages/show_page/index El miércoles, 27 de marzo de 2013 22:37:32 UTC-5, RunSky ruan escribió: > > I need a blog app for my website. > Is there a stable blog app for web2py,the instant-press seems last update

[web2py] Re: A Web2py CMS like Joomla ?

2013-03-29 Thread samuel bonilla
look https://github.com/pyner/tiny_website El jueves, 24 de mayo de 2012 22:54:54 UTC-5, Andrew W escribió: > > There have been numerous posts on a web2py based cms, and I know there are > many solutions out there, at varying stages of development. They each > have a different focus so i

[web2py] Re: /views/default\index.html

2013-03-29 Thread BlueShadow
Hi I got a similar problem: I can edit all views except my index: /admin/edit/MyApp/views/default/index.html?id=views__default__index__html this one for example works: /admin/edit/MyApp/views/default/displayImage.html?id=views__default__displayImage__html I'm using the newest version of web2py: 2.

[web2py] Re: not getting what this says

2013-03-29 Thread Niphlod
those are many exceptions, but all of them raise ValueError: too many values to unpack he's getting "the opposite" ValueError: need more than 1 value to unpack On Friday, March 29, 2013 9:19:47 PM UTC+1, Cliff Kachinske wrote: > > I get those sometimes when I'm sloppy about refactoring. > > Look

[web2py] Re: not getting what this says

2013-03-29 Thread Cliff Kachinske
I get those sometimes when I'm sloppy about refactoring. Look for a stray comma on the left side of an equals foo, = bar() this is a problem, too foo, bar = 'foobar' and a third way to raise this error def fubar(): return 'hello, world' foo, bar = fubar() Those are the main ways I get th

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

2013-03-29 Thread Cliff Kachinske
Massimo, I tried setting them that way in the controller but it didn't help. On Friday, March 29, 2013 12:12:30 PM UTC-4, Massimo Di Pierro wrote: > > Have you tried making the fields that you do not want readable=False? > > On Friday, 29 March 2013 09:17:50 UTC-5, Cliff Kachinske wrote: >> >> Th

[web2py] Re: not getting what this says

2013-03-29 Thread Niphlod
depends on what line is raising it. On Friday, March 29, 2013 6:15:57 PM UTC+1, manee...@gmail.com wrote: > > (need more than 1 value to unpack) > > I got this weird kind of error and not able to figure out what this means. > -- --- You received this message because you are subscribed to

Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin
> I suppose the way of solving this, is patching that module, but there's no such patch so far. Here's the thing: - plugin_pyodel needs to call auth.wiki in the model in order to start, since it uses the wiki model and also it has a wiki action - When it calls auth.wiki, the Wiki constructor t

[web2py] PyCharm to Support web2py in the 3.0 release

2013-03-29 Thread Shawn Wheatley
According to their roadmap for 3.0: http://confluence.jetbrains.com/display/PYH/PyCharm+3.0+Roadmap web2py support is the 2nd bullet on the list. The feature is not marked as having been started or completed, but they are targeting a fall 2013 release. Shawn -- --- You received this messag

[web2py] Is there a stable web2py release for python 2.3?

2013-03-29 Thread Javier Luis de los Mozos
Hello, I manage a hosted web site and unfortunately the only pyhton version it supports is 2.3. So far the content is static but I'd like to start using web2py. I've asked for a python version upgrade but I'm not quite confident I can get it so I wonder if I can use an old web2py release suppor

[web2py] not getting what this says

2013-03-29 Thread maneesh2611
(need more than 1 value to unpack) I got this weird kind of error and not able to figure out what this means. -- --- 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 emai

[web2py] Re: Can file/upload field value be retained when form has errors/is not accepted?

2013-03-29 Thread Lamps902
Thanks for the advice, Niphlod. I really should go read a good book on relational db design... On Thursday, March 28, 2013 3:48:23 PM UTC-5, Niphlod wrote: > > cause usually you want to retrieve metadata more than you need the actual > contents. > It makes you more **sure** when you have to sele

[web2py] Re: IMG in A tag of SQLFORM `submit_button`?

2013-03-29 Thread Derek
works with images. On Thursday, March 28, 2013 7:52:08 PM UTC-7, Anthony wrote: > > The value of submit_button goes in the "value" attribute of the submit > element, so it can only be text, not more HTML elements. If you > need an alternative to a standard submit button with a text label, you

Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin
> > Hi Alan, > > It's true I'm using auth.wiki() in my app. Is there any work around for > the time being? > I don't think so, someone should look into web2py/gluon/tools.py to find out what is resetting the google accounts login status (or whatever) when it returns control to the app. I supp

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

2013-03-29 Thread Matt Broadstone
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, > but checked against PAM) > 2) rely on uwsgi to authenticate users t

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

2013-03-29 Thread Massimo Di Pierro
Have you tried making the fields that you do not want readable=False? On Friday, 29 March 2013 09:17:50 UTC-5, Cliff Kachinske wrote: > > There is a table something like this: > > db.define_table('example', > ... > field('user_id', 'reference auth_user', requires=IS_IN_DB(.)), > field('c

[web2py] Re: web2py user login form encoding problem

2013-03-29 Thread Massimo Di Pierro
The encoding should be be set in the HTML header. Yet it should not fail. Please open a ticket about this we may need to patch CRYPT. On Friday, 29 March 2013 03:09:33 UTC-5, Yebach wrote: > > hello > > I have a login form for user registration > > If user writes name surname password including s

Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread 冷春辉
Hi Alan, It's true I'm using auth.wiki() in my app. Is there any work around for the time being? On Mar 30, 2013 12:02 AM, "Alan Etkin" wrote: > This is very odd, I belive it is a bug in the app authentication >>> configuration itself, since I cannot reproduce the behavior in another GAE >>> ap

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

2013-03-29 Thread Niphlod
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, but checked against PAM) 2) rely on uwsgi to authenticate users through pam (kinda of a basic auth, but checked against PAM

Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin
> > This is very odd, I belive it is a bug in the app authentication >> configuration itself, since I cannot reproduce the behavior in another GAE >> app which also relies in auth for access control. In case I find a way >> around this I'll post it here: >> http://code.google.com/p/pyodel/iss

[web2py] nginx + uwsgi + web2py + PAM

2013-03-29 Thread Matt Broadstone
Hi, We're trying to migrate our web2py deployment to nginx and running into a problem using pam_auth as a login method. Before I go further I should clarify that PAM authentication works just fine with apache2 and a simple debug run with rocket. Also, we are trying to do this on Ubuntu 12.04, and t

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

2013-03-29 Thread Matt Broadstone
For further info, these are relevant configuration files: /etc/nginx/sites-enabled/site: server { listen 80; server_name $hostname; rewrite ^ https://$server_name$request_uri? permanent; } server { listen 443; server_name $

[web2py] Re: What does this do?

2013-03-29 Thread Anthony
The "authorize" argument applies to upload fields only. You can specify a function that takes the Row object of a given record and returns True or False to indicate whether the file is allowed to be retrieved (it is used in the Field's .retrieve() method, which is called by response.download()

[web2py] Re: Auth with Janrain but still require "registration"

2013-03-29 Thread DeanK
Thanks. I could/should have figured most of that out myself so sorry for the lame question but I appreciate the quick answer. Also I talk about using Janrain because it exists and works, but all my comments are applicable to something that is completely free such as sanction if it was integra

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

2013-03-29 Thread Cliff Kachinske
There is a table something like this: db.define_table('example', ... field('user_id', 'reference auth_user', requires=IS_IN_DB(.)), field('created_by', 'reference auth_user', requires=IS_IN_DB(.)), field('modified_by', 'reference auth_user', requires=IS_IN_DB(.)), ... ) Th

[web2py] Re: Auth with Janrain but still require "registration"

2013-03-29 Thread Anthony
> > @Anthony - As I said I'm new to web2py and some of the built in stuff is > still a black box to me. Could you point me to where the auth code is? In order to use Auth, you have to do: from gluon.tools import Auth which indicates that the Auth code is in the Auth class within the gluon.t

[web2py] Re: Auth with Janrain but still require "registration"

2013-03-29 Thread DeanK
@Massimo - First of all i'm a new web2py user and I'm really enjoying it so far. The only problem I've had so far is I did my database design in a traditional sense before fully understanding the web2py DAL limitations and had to redesign things to fit (no compound keys for example). Overall

Re: [web2py] Re: web2py app repository

2013-03-29 Thread felix jimenez
El 28/03/2013 15:16, "Anthony" escribió: > Maybe we could add Plugin and Application types to web2pyslices.com and > post them there. Authors could host the source for each plugin/application > in its own Github repo and provide a description and link on web2pyslices. > web2pyslices might then be

[web2py] What does this do?

2013-03-29 Thread maneesh2611
authorize=lambda row: auth.is_logged_in() -- --- 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 http

Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin
> > I tried pyodel and faced with the same issue of google login requirement. > I signed in with google account but redirect to the "Sign in with your > google > account

[web2py] Re: DAL is not joining tables if I have multiple clauses?

2013-03-29 Thread Niphlod
Annet got it right. On Friday, March 29, 2013 1:16:34 PM UTC+1, Cliff Kachinske wrote: > > For starters, look closely. > > db(db.family_members.user_id == auth.user_id and > db.family_members.connected_to==db.auth_user.id).select(db.family_members.connected_to, > > db.auth_user.last_name, db.au

[web2py] Re: DAL is not joining tables if I have multiple clauses?

2013-03-29 Thread Annet
Hi Dragan, In your first query 'and' should be '&' in case of 'or' it's '|' Annet -- --- 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...@goo

[web2py] Re: DAL is not joining tables if I have multiple clauses?

2013-03-29 Thread Cliff Kachinske
For starters, look closely. db(db.family_members.user_id == auth.user_id and db.family_members.connected_to==db.auth_user.id).select(db.family_members.connected_to, db.auth_user.last_name, db.auth_user.first_name) Also read the text here http://web2py.com/books/default/chapter/29/06#Logical-

[web2py] Re: Using an external lib - Twython

2013-03-29 Thread Annet
Hi Niphold, @annet: you can import with a simple "from relativedelta import *" > Thanks, for letting me know. Kind regards, Annet -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving email

[web2py] DAL is not joining tables if I have multiple clauses?

2013-03-29 Thread Dragan Matic
I have a table that shows family connections for users (I need one way connections) defined as: db.define_table('family_members', Field('user_id', 'integer'), Field('connected_to', 'integer')) I need to read and to show all users that are connected to a logged user, basically an inne

[web2py] web2py user login form encoding problem

2013-03-29 Thread Yebach
hello I have a login form for user registration If user writes name surname password including signs š, č, ž, ć there is an error 'ascii' codec can't decode byte 0xc5 in position 0: ordinal not in range(128) Where can I set the encoding for form?? thank you -- --- You received this messa

[web2py] Re: Using an external lib - Twython

2013-03-29 Thread Niphlod
@annet: you can import with a simple "from relativedelta import *" @nate: according to the module documentation, you need to do from twython import Twython On Friday, March 29, 2013 7:21:15 AM UTC+1, Annet wrote: > > Hi Nate, > > I am using a module relativedelta and have the following import

[web2py] Re: how about setting a standard fadeout to response.flash?

2013-03-29 Thread Niphlod
fits better in a plugin. On Friday, March 29, 2013 8:49:57 AM UTC+1, Craig Matthews wrote: > > How about including jQuery jNotify? http://www.myjqueryplugins.com/ > > > On Tuesday, March 26, 2013 12:55:12 PM UTC-4, LightDot wrote: >> >> I prefer to keep web2py.js stock, to ease updates, so I add

[web2py] Re: how about setting a standard fadeout to response.flash?

2013-03-29 Thread Craig Matthews
How about including jQuery jNotify? http://www.myjqueryplugins.com/ On Tuesday, March 26, 2013 12:55:12 PM UTC-4, LightDot wrote: > > I prefer to keep web2py.js stock, to ease updates, so I add a similar > fadeout js to layout.html when I need it. > > I'm not sure I'd alter the default though.