Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread Roberto De Ioris
Il giorno 03/ott/2011, alle ore 07:51, MidGe ha scritto: > Thank you for your interest and quick reply. > > > > > Ah! Yes, I could do that, But I also am able to log in and edit when using > apache as a server. > > > Yes, something like that is the cause. > > > Fine I can duplic

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread MidGe
OK, will give it a shot and let you know. What is the mercurial command for the version you committed? Michel

Re: [web2py] MongoDB and Web2py

2011-10-03 Thread ~redShadow~
On Sun, 2011-10-02 at 14:52 -0700, Francisco Costa wrote: > I don't want to spam the group about this, but I would like to have > some official incites about when will the DAL have a MongoDB Adapter. > > > Since this is the most requested feature by the web2py community > http://web2py.uservoice

[web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread andrej burja
hi how could i add a sum in the linked table? i have person, linked table payments. Opening the payments table from person table, displaying only payments from that person, i would like to display the sum for that person. How can i do that? and how to change the label on button 't_payments'? an

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-03 Thread David Marko
Here is the complete signature of grid method from source there is really no truncate param. def grid(query, fields=None, field_id=None, left=None, headers={}, columns=None, orderby=None, searchable=T

[web2py] Re: how to select a row that isn't linked by a second table?

2011-10-03 Thread Cliff
pbreit's answer will work as well. In case you don't grok left joins, check out the book at this link: http://www.web2py.com/book/default/chapter/06#One-to-Many-Relation No matter your experience level, it is very helpful to Read The Fine Manual. Web2py has plenty of neat features to make life

[web2py] Re: Problem with private mode of fluxflex

2011-10-03 Thread monotasker
Although my previous issues were a bit different, I've just hit the same login problem this morning. The site was fine when I went to sleep last night, and now the login doesn't persist past page refresh. In my case it wasn't related to private mode, though.

Re: Re : Re: [web2py] Re: fluxflex

2011-10-03 Thread monotasker
In case you haven't figured this out yet, you need to use https:// when you access the admin page on a remote site. If you try to use http:// you'll get that message about the password file not being accessible.

[web2py] composite views

2011-10-03 Thread Matt Broadstone
Good morning, I have a situation where I want to display composite views (a view for an object inside a view for its parent object). I have a class Connection that has a Profile associated with it. Profile can be one of a number of different subclasses (AProfile, BProfile, CProfile). I also have

Re: [web2py] composite views

2011-10-03 Thread Bruno Rocha
You can always set if x: response.view = 'folder/file.html' elif y: response.view = '' Also, you can use: def action: return response.render("file.html", dict(context=context)) On Mon, Oct 3, 2011 at 10:16 AM, Matt Broadstone wrote: > Good morning, > I have a situation where I wan

[web2py] DAL orderby question: should this work?

2011-10-03 Thread Cliff
The book says to do orderby this way db.person.ALL, orderby=db.person.name But I am using this: db.person.ALL, orderby='name' Is this an undocumented feature that might go away at some point, or can I continue to rely on it? Thanks, Cliff Kachinske

[web2py] Re: Subdomain based on blog users in routes.py

2011-10-03 Thread Farsheed Ashouri
Yes Anthony, I've read it 50 times! but i cant figure out this one. your code doesn't work. I test it few times on my local and main server. :( I am giving up!

Re: [web2py] composite views

2011-10-03 Thread Matt Broadstone
On Mon, Oct 3, 2011 at 10:11 AM, Bruno Rocha wrote: > You can always set > if x: > response.view = 'folder/file.html' > elif y: > response.view = '' > Also, you can use: > def action: >      return response.render("file.html", dict(context=context)) > I tried this with the following code in my

[web2py] Encryption/Decryption Modules

2011-10-03 Thread horridohobbyist
I'm looking for a way to encrypt/decrypt data in web2py. Someone suggested that pyme is already included in web2py, but I think he's just plain wrong. I've seen references to m2secret on the web, but it's obvious that it needs to be installed. I've not been able to figure out how to install M2Cryp

Re: [web2py] composite views

2011-10-03 Thread Matt Broadstone
On Mon, Oct 3, 2011 at 10:49 AM, Matt Broadstone wrote: > On Mon, Oct 3, 2011 at 10:11 AM, Bruno Rocha wrote: >> You can always set >> if x: >> response.view = 'folder/file.html' >> elif y: >> response.view = '' >> Also, you can use: >> def action: >>      return response.render("file.html",

[web2py] Re: Help: multiple=True with requires = IS_IN_SET()

2011-10-03 Thread jkral
No this does not work: > ...requires=[IS_IN_SET(...), IS_NOT_EMPTY(), ...] Here the widget is added manually: > db.define_table('info', > Field('info_number', 'integer', label='Info Number'), > Field('description', 'text'), > Field('environment', widget=SQLFORM.widgets.checkboxes.widget), >

[web2py] Re: Help: multiple=True with requires = IS_IN_SET()

2011-10-03 Thread jkral
I don't know if I am jumping the gun here, but DenesL your widget example appears to test for > 0, albeit it's not presented in the checkbox form, but it does seem to require 1 or more environments to be selected. (= ♥ On Oct 1, 12:10 pm, DenesL wrote: > On Sep 30, 8:39 pm, Anthony wrote: > >

[web2py] Problem with login not lasting after page refresh

2011-10-03 Thread monotasker
I've got an alpha-stage language quizzing app at paideia.fluxflex.com that requires auth login for pretty well every controller to track students' performance. But today when I pushed new changes to the server the login no longer lasts past any page refresh. Even an ajax refresh of a component

[web2py] Re: Help: multiple=True with requires = IS_IN_SET()

2011-10-03 Thread jkral
Nope lies... I did jump the gun (I need to work on my giddiness >.<) On Oct 3, 11:00 am, jkral wrote: > I don't know if I am jumping the gun here, but DenesL your widget > example appears to test for  > 0, albeit it's not presented in the > checkbox form, but it does seem to require 1 or more en

[web2py] Smartgrid litle bug

2011-10-03 Thread Roberto Perdomo
When i delete a row, the records dissapear fron the grid, but the counter still mantains the previus value

[web2py] DAL self-reference and how to display dropdown widget

2011-10-03 Thread David Marko
Just taking the example from web2py manual as below, how can I force web2py to show dropdown for father_id and mother_id fields with existing person items/values? For self-reference definition I cannot use IS_IN_DB validator, so there are no widgets displayed. db.define_table('person', Field

Re: [web2py] DAL self-reference and how to display dropdown widget

2011-10-03 Thread Richard Vézina
There is a issue about that : http://code.google.com/p/web2py/issues/detail?id=382 So it seems that it still pending? Do you have the last stable version? Richard On Mon, Oct 3, 2011 at 1:44 PM, David Marko wrote: > Just taking the example from web2py manual as below, how can I force web2py >

Re: [web2py] DAL self-reference and how to display dropdown widget

2011-10-03 Thread Richard Vézina
You can correct the problem yourself with represent for now... It's what I did. Richard On Mon, Oct 3, 2011 at 1:58 PM, Richard Vézina wrote: > There is a issue about that : > > http://code.google.com/p/web2py/issues/detail?id=382 > > So it seems that it still pending? Do you have the last stabl

[web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread Massimo Di Pierro
On Oct 3, 5:07 am, andrej burja wrote: > hi > > how could i add a sum in the linked table? > i have person, linked table payments. Opening the payments table from person > table, displaying only payments from that person, i would like to display > the sum for that person. How can i do that? Tha

[web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-03 Thread Massimo Di Pierro
maxtextlengths={'tablename.fieldname':20}, # per field maxtextlength=20, # default On Oct 3, 5:50 am, David Marko wrote: > Here is the complete signature of grid method from source there is > really no truncate param. > >   def grid(query, >              fields=Non

Re: [web2py] DAL self-reference and how to display dropdown widget

2011-10-03 Thread David Marko
Its not the list:reference problem, I use scenario described in here ... h ttp://www.web2py.com/book/default/chapter/06#Self-Reference-and-Aliases

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread Roberto De Ioris
> OK, will give it a shot and let you know. > > What is the mercurial command for the version you committed? > > Michel > hg clone http://projects.unbit.it/hg/uwsgi cd uwsgi make -- Roberto De Ioris http://unbit.it

Re: [web2py] anyone using jython with web2py on production

2011-10-03 Thread Phyo Arkar
My exprience with jython is , its VERY slow compare to CPython , so No I am not going to recommend it. On 10/1/11, elffikk wrote: > hi, > > I am interested to know if there is anyone using jython with web2py in > production > > - on top of what server > - with what database > - what is the memory

Re: [web2py] DAL self-reference and how to display dropdown widget

2011-10-03 Thread Richard Vézina
Can you explain I don't understand what's not working if it not the issue about self reference field that is in cause. Why you can't use IS_IN_DB? Richard On Mon, Oct 3, 2011 at 2:08 PM, David Marko wrote: > Its not the list:reference problem, I use scenario described in here ... h > ttp://www

Re: [web2py] DAL self-reference and how to display dropdown widget

2011-10-03 Thread Richard Vézina
If it is because you can fill both field at a time use IS_EMPTY_OR(IS_IN_DB(...)) Richard On Mon, Oct 3, 2011 at 3:10 PM, Richard Vézina wrote: > Can you explain I don't understand what's not working if it not the issue > about self reference field that is in cause. > > Why you can't use IS_IN_D

[web2py] How to start something when page rendering has completed?

2011-10-03 Thread TheSweetlink
Please help me with your suggestions. I'm playing with Redis pub/sub via redis-py as a possible method to reload a component in a page instead of polling. In its simplest form the idea is: 1) create pubsub object 2) subscribe it to one or more channels (just one in this case) 3) create listen

[web2py] Do not break on MySQL :: ERROR 1153: Got a packet bigger than 'max_allowed_packet .

2011-10-03 Thread Phyo Arkar
After webp2y swtich from mysql-python driver to pymysql , theres no error raised when a packet size is bigger. Below error is never raised: version 1.98.2 MySQL :: ERROR 1153: Got a packet bigger than 'max_allowed_packet . And i am thinking about how to handle Larger than 1GB inserts coz max_all

[web2py] Problem with format in DAL table definition ...

2011-10-03 Thread David Marko
I'm using common one-to-many scenario with company and emplees. I'm using format in table definitions but I cant see company name in exploee list in web2py db admin and smartgrid gives me this field.represent = lambda id,r=None,referee=referee,rep=field.represent: A(rep(id),_class=trap

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread Jim Steil
This didn't work for me, but maybe I'm applying it in the wrong spot. My controller is: @auth.requires_login() def members(): response.view = 'list.html' columns = ['member.firstName', 'member.lastName', 'member.city', 'member.state', 'member.phone', 'member.joinedOn',

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread Phyo Arkar
Very nice work ongoing .. Only sad thing is i am moving into Qooxdoo framework and am getting more and more into it , i am not going to be able to use any of smartgrid .. It have an excellent Table with well written remote model. Hope i can use in web2py way, On 10/4/11, Jim Steil wrote: > Thi

[web2py] Re: Howto change request.uri_language through URL function?

2011-10-03 Thread Kernc
On Aug 31, 10:44 pm, Alexander Cabezas wrote: > Did you build it with web2py? No, that website is powered by PHP. > How could I do the same thing in my application? As Massimo mentioned here (https://groups.google.com/d/msg/web2py/ q2B9mekNCwk/tUmqU0Iu-ZIJ), with the exception that in the model

[web2py] Re: anyone using jython with web2py on production

2011-10-03 Thread Massimo Di Pierro
My experience is that it relays on the java regular expression parser instead of the python one and that result in difference of behavior. On Oct 3, 2:09 pm, Phyo Arkar wrote: > My exprience with jython is , its VERY slow compare to CPython , so No > I am not going to recommend it. > > On 10/1/11

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread Anthony
>From the code, it looks like you would define _plural at table definition time: db.define_table('memberCampaign', singular='Campaign', plural='Campaigns', ...) But it should probably be made changeable. Actually, for now you can do: db.memberCampaign['_plural'] = 'Campaigns' Anthony On Mond

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread Jim Steil
Thanks Anthony, works perfect. Yes, it needs to changeable. I have the following tables: member, campaign and memberCampaign When I'm using SmartGrid to display members, I need the memberCampaign label to say Campaigns, but when I'm using SmartGrid for Campaigns, the memberCampaign label ne

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-10-03 Thread Anthony
On Monday, October 3, 2011 4:42:17 PM UTC-4, Jim S wrote: > > Thanks Anthony, works perfect. Yes, it needs to changeable. > I just submitted a patch. Anthony

[web2py] Re: anyone using jython with web2py on production

2011-10-03 Thread Chris Clark
Right now it doesn't run. See http://code.google.com/p/web2py/issues/detail?id=341 for more detail. If anyone has managed to get it to run please update the issue with details. There are issues with imports (which can be hacked around) and the ticketing system crashes. As Massimo points out if we

[web2py] Re: Admin security: https vs localhost

2011-10-03 Thread sadik fanan
Hi , i am developing an online booking system on GAE.. .the developement is allmost complete...recently i have come to know about brutforce attacks on web based application for admin login... my application is in web2py framework (python)...can anyone here please guide me on a functionality wh

[web2py] Re: Admin security: https vs localhost

2011-10-03 Thread Anthony
Looks like this has been implemented in admin -- see http://code.google.com/p/web2py/source/browse/applications/admin/models/access.py#55. Looks like 5 login attempts allowed from a given IP address per hour. Anthony On Monday, October 3, 2011 7:16:50 PM UTC-4, sadik fanan wrote: > > > Hi , i

[web2py] CAS question

2011-10-03 Thread mart
Hi all, I have a central App on our corporate intranet, and multiple instances of another app residing on multiple build servers. I would like users to be able to authenticated by registering an account on the central app (to server as provider), then get access to all other instances of the othe

[web2py] Problem with format in DAL table definition ...

2011-10-03 Thread monotasker
What does your model look like?

[web2py] DAL connection to SQL Server 2005 hanging with Linux

2011-10-03 Thread chris_g
I have setup web2py version 1.98.2 on Ubuntu Lucid Lynx. My dal is connecting to SQL Server 2005 using a connection string like this. db_connection_string = r'mssql://dbuser:pword92.168.1.1/mydb? DRIVER=FreeTDS' After my application has been running for some hours or days, there seems to some

[web2py] Re: Google Checkout Plugin Error

2011-10-03 Thread zukunftschauer
Thanks for responding. As I am just trying to test out the plugin, I have created a new application specifically for this. As such, my files reflect only what is shown in the plugin's model file. Here are the contents of "/var/web2py/applications/ Sample_Google_Checkout/views/default/index.html"

[web2py] Re: Admin security: https vs localhost

2011-10-03 Thread Massimo Di Pierro
make a file "models/plugin_conditionalrecaptcha.py" which contains: MAX_LOGIN_FAILURES = 3 RECAPTCHA_PUBLIC_KEY = '' RECAPTCHA_PRIVATE_KEY = '' def _(): from gluon.tools import Recaptcha key = 'login_from:%s' % request.env.remote_addr num_login_attempts = cache.ram(key,lambda:0,None)

[web2py] Re: CAS question

2011-10-03 Thread Massimo Di Pierro
Perhaps you need to set the cas_domain in the provider? http://web2py.com/book/default/chapter/08?search=cas_domain On Oct 3, 7:54 pm, mart wrote: > Hi all, > > I have a central App on our corporate intranet, and multiple instances > of another app residing on multiple build servers. > > I would

[web2py] Re: Problem with format in DAL table definition ...

2011-10-03 Thread Massimo Di Pierro
I think the problem is here: field.represent = lambda rep=field.represent: ... rep(id) Do you have a field represent to start with? Looks like you do not. Even when you do should be rep(id,r) not rep(id). On Oct 3, 2:34 pm, David Marko wrote: > I'm using common one-to-many scenario wi

[web2py] Re: Google Checkout Plugin Error

2011-10-03 Thread Massimo Di Pierro
This is an old plugin... ouch! Replace this: http://www.google.com'))}}" /> with this: http://www.google.com'))}}" /> On Oct 3, 9:18 pm, zukunftschauer wrote: > Thanks for responding.  As I am just trying to test out the plugin, I > have created a new application specifically for this.  As su

Re: [web2py] Re: CAS question

2011-10-03 Thread Bruno Rocha
I am curious, are you using default auth tables or custom auth tables? I am still with errors 'loop redirect' when trying CAS... On Tue, Oct 4, 2011 at 12:12 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Perhaps you need to set the cas_domain in the provider? > > http://web2py.com

[web2py] Re: CAS question

2011-10-03 Thread Massimo Di Pierro
I re-tested it last week and I cannot reproduce this error. On Oct 3, 10:18 pm, Bruno Rocha wrote: > I am curious, are you using default auth tables or custom auth tables? > > I am still with errors 'loop redirect' when trying CAS... > > On Tue, Oct 4, 2011 at 12:12 AM, Massimo Di Pierro < > > >

[web2py] Re: Problem with login not lasting after page refresh

2011-10-03 Thread pbreit
Might need to see some code. I went to your site and tried to register, login and reset password and the pages just seem to refresh without doing anything. Can you summarize the nature of the changes you made? Are you using version control?

[web2py] Re: Subdomain based on blog users in routes.py

2011-10-03 Thread pbreit
Does doing a simple redirect not work for you? if request.vars.u: redirect('%s.mysite.com' % request.vars.u)

[web2py] Re: DAL orderby question: should this work?

2011-10-03 Thread pbreit
I would advise using the more explicit db.person.name since your method might break if you have two tables both with a "name" column.

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread MidGe
Hi Roberto, Unfortunately, it failed on the make. It is missing libxml2 development package, In the error message there is a mention of using libexpat or disabling XML... Anything I can do about this? Michel

[web2py] Re: CAS question

2011-10-03 Thread mart
sounds good, will try the cas_domain. Thanks for the suggestion. @ Bruno: I'm using the default auth tables thanks Mart :) On Oct 3, 11:35 pm, Massimo Di Pierro wrote: > I re-tested it last week and I cannot reproduce this error. > > On Oct 3, 10:18 pm, Bruno Rocha wrote: > > > > > > > > > I a

[web2py] Re: Problem with login not lasting after page refresh

2011-10-03 Thread MidGe
monotasker, I experience a similar problem but not on fluxflex, on webfaction, and, in my case it seems related to uswgi use. I noticed also that the web2py logo (top left) is duplicated as if I was in a recursive mode when another logging is required (almost all pages). Hope this help

[web2py] Re: Admin security: https vs localhost

2011-10-03 Thread sadik fanan
Massimo Di Pierro writes: > > Hi , this didnt worked for ...i have tried both the ways mentioned above ...i already have access.py in my admin/models folder but it didnt worked outit was giving error on keywords like 'DEMO_MODE' and 'restricted'i also tried the code snippet mentione

[web2py] Re: Admin security: https vs localhost

2011-10-03 Thread sadik fanan
sadik fanan writes: > > Hi , the above mentioned solution didnt worked for me .. ...i have tried both the ways mentioned above ...i already have access.py in my admin/models folder but it didnt worked outit was giving error on keywords like 'DEMO_MODE' and 'restricted'i also tried the

[web2py] Re: CAS question

2011-10-03 Thread mart
hum so i added the cas_domains to the provider... maybe getting further (but not sure)... When I hit the login page for the consumer (this is on 127.0.0.1), it brings me to the provider alright, but the redirect throws an exception. It tell that the exception is a result of too many redirects.