[web2py] Re: GAE: defaults on "_tableobj"

2014-01-07 Thread Massimo Di Pierro
Thank you. I will take care of this asap. Can you submit a patch? On Friday, 3 January 2014 04:10:11 UTC-6, Quint wrote: > > I created an issue for this: > > https://code.google.com/p/web2py/issues/detail?id=1842 > > On Thursday, January 2, 2014 6:45:59 PM UTC+1, Quint wrote: >> >> Hello everybody

[web2py] Re: IS_IN_SET in SQLFORM.dictform

2014-01-07 Thread Massimo Di Pierro
This is the source for SQLFORM.dictform: def dictform(dictionary, **kwargs): fields = [] for key, value in sorted(dictionary.items()): t, requires = SQLFORM.AUTOTYPES.get(type(value), (None, None)) if t: fields.append(Field(key, t, requires=r

[web2py] Rows.compact and other Rows methods

2014-01-07 Thread Joe Barnhart
I've been experimenting with the render method of the Rows class, and I am very impressed. But one drawback I found is that the Rows object must have its value set to "compact=False" to work properly with render(). It isn't a problem if the Rows object is used directly without any operators, b

[web2py] Re: Getting a 'list' object has no attribute 'xml' error when exporting smartgrid data in HTML format.

2014-01-07 Thread Massimo Di Pierro
I think it is fixed in trunk now. Please try it. On Tuesday, 31 December 2013 04:42:22 UTC-6, Rahul wrote: > > Hi All, > I am getting below exception under web2py 2.8.2 when I am exporting > the smartgrid in HTML format (SmartGrid attribute used csv=True) . > > *Steps*: Try to export a ta

Re: [web2py] styling widget divs

2014-01-07 Thread Massimo Di Pierro
Is there a patch for this? I'd take it. On Monday, 6 January 2014 15:27:59 UTC-6, Richard wrote: > > Ok, seems like a easy one, why not just commit the change on github? > > :) > > Richard > > > On Mon, Jan 6, 2014 at 4:22 PM, Paolo Caruccio > > > wrote: > >> That was the solution I proposed. >>

[web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread Massimo Di Pierro
Really nice. I will try it asap. How can I help distributing this? On Monday, 6 January 2014 15:19:54 UTC-6, samuel bonill wrote: > > > Admin > > Plus(A-Plus) is a web2py plugin that provides an easy-to-use

[web2py] Re: Possibly a problem with CAS redirection in v2.8.2

2014-01-07 Thread Massimo Di Pierro
Thanks Tim. Your patch is in trunk. On Tuesday, 7 January 2014 01:50:49 UTC-6, Tim Richardson wrote: > > this time it was throwing a ticket due to an undefined variable. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Redirecting From Register Function

2014-01-07 Thread Michael Gheith
I have two different register forms in my application. One is pretty basic and I control where it redirects to using: auth.settings.register_next = URL('default', 'home') In my other register function I want to redirect it to a completely different place, and I want to send some vars over to th

[web2py] Web2py Integration with Sentry

2014-01-07 Thread James Q
Has anyone ever integrated web2py an Sentry (https://github.com/getsentry/sentry)? I would like it if all web2py generated exceptions generate a ticket like usual, but also generates an event to a sentry server. Has anyone ever done this? If not, could anyone point to where I would need to patc

[web2py] Re: Important New Year News: Edison Award

2014-01-07 Thread Joe Barnhart
Wow. How cool would THAT be?? I'm hoping and pulling for you Massimo! Nobody deserves the award more than US! (Yes, we're all planning to bask in your reflected glory!) -- Joe B. On Friday, January 3, 2014 8:08:38 PM UTC-8, Massimo Di Pierro wrote: > > Web2py/me have been nominated for the

[web2py] Re: outer join? i guess

2014-01-07 Thread lucas
ah, nice. didn't know that. now i read it in the manual, and the db._lastsql makes it even a bit easier after the statement has run to compare to the output also. sweet. thanx for the tip. learned a new little thing. and after seeing the SQLs for all the different wanderings i did, things

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread Ovidio Marinho
Good job, administrative inteface is very important, but more importantly would create an engine of reports that web2py does not. Let's think about this. Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com Brasil 2014/1/

[web2py] Re: Getting a 'list' object has no attribute 'xml' error when exporting smartgrid data in HTML format.

2014-01-07 Thread Tim Richardson
trunk means the current state of the repository. the zip downloads are behind. gi to github.com and learn how to clone the repository. there is some discussion of this in the book under the chapter 'helping web2py', you need the pre-6th edition version of the book. or skip the book and learn

[web2py] Different applications usiong same set of tables

2014-01-07 Thread Jayadevan M
I have an application app1. I want to create another application - app2 which will use the same set of tables as used by app1. For this, what I have to do is create a tables.py under app2/models and mention migrate=False for the common tables. Is that right? Do I have to set fake_migrate=True a

[web2py] Re: Getting a 'list' object has no attribute 'xml' error when exporting smartgrid data in HTML format.

2014-01-07 Thread Tim Richardson
Here is the link to the book section where the git repository is discussed: http://web2py.com/books/default/chapter/29/15/helping-web2py On Tuesday, 7 January 2014 22:35:28 UTC+11, Tim Richardson wrote: > > trunk means the current state of the repository. the zip downloads are > behind. gi to

[web2py] Re: Important New Year News: Edison Award

2014-01-07 Thread Tim Richardson
Massimo, is there a link to the nomination? Good twitter food. On Saturday, 4 January 2014 15:08:38 UTC+11, Massimo Di Pierro wrote: > > Web2py/me have been nominated for the Edison Award. Please wish web2py > (and me) good luck. :-) > > -- Resources: - http://web2py.com - http://web2py.com/boo

[web2py] Is login dependent on web2py.js?

2014-01-07 Thread Robin Manoli
I'm using web2py with jQuery Mobile and I noticed that the login breaks if I omit web2py.js. I end up at an empty page with no fetched body content. Is it supposed to be so? I'm not sure I want to use web2py.js. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:/

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread samuel bonill
thanks all. massimo, can help with a posting on reddit, hacker news etc ... 2014/1/7 Ovidio Marinho > Good job, administrative inteface is very important, but more importantly > would create an engine of reports that web2py does not. Let's think about > this. > > > > > Ovidio Marinho

[web2py] ckeditor in appadmin

2014-01-07 Thread Michel Hayek
hi guys, is there any way to implement the ckeditor in the appadmin page when adding or editing records? Thanks -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread samuel bonill
You can Contribute in many ways: 1. reporting errors 2. writing code 3. contributing with Ideas 4. Also You can support with Bitcoin the next version will feature: 1. website for A-Plus 2. settings 3. ckeditor 4.3, (with with limitations in GAE) 4. create and customize permissions 2014/1/7 sa

[web2py] Re: IS_IN_SET in SQLFORM.dictform

2014-01-07 Thread brushek
Thank You Massimo, it's enaugh for me - indeed, the code is rather simple. Regards and good luck :) brushek W dniu wtorek, 7 stycznia 2014 09:09:04 UTC+1 użytkownik Massimo Di Pierro napisał: > > This is the source for SQLFORM.dictform: > > def dictform(dictionary, **kwargs): > fields =

[web2py] Re: Temporarily Poll View

2014-01-07 Thread EW
Answered in https://groups.google.com/forum/#!msg/web2py/4G8TBqqy33c/QqMMS31DSFMJ On Thursday, January 2, 2014 11:49:14 AM UTC-8, EW wrote: > Thanks, but I don't understand..how would I know when the insert > (scheduler task) has completed? > > > > On Thursday, January 2, 2014 11:14:00 AM

Re: [web2py] styling widget divs

2014-01-07 Thread Paolo Caruccio
Patch: https://code.google.com/p/web2py/issues/detail?id=1845 Il giorno martedì 7 gennaio 2014 09:15:50 UTC+1, Massimo Di Pierro ha scritto: > > Is there a patch for this? I'd take it. > > On Monday, 6 January 2014 15:27:59 UTC-6, Richard wrote: >> >> Ok, seems like a easy one, why not just

[web2py] Re: Rows.compact and other Rows methods

2014-01-07 Thread Anthony
.render() works fine on Rows objects with compact=True, and it also works fine on the results of .sort(), .exclude(), &, and | operations. The only problem is with the results of .find() operations when the original Rows object has compact=True. The problem is that the .find() method modifies t

[web2py] Matplotlib webagg in web2py

2014-01-07 Thread ArtDijk
Hi, I want to do data analysis in pandas and show results via web2py to managers. Is it possible to use the new webagg from matplot lib in web2py ? http://matplotlib.org/users/whats_new.html?highlight=webagg#backends If the answer is yes can you show an example ? Thanks very much Art -- Resour

[web2py] Re: Rows.compact and other Rows methods

2014-01-07 Thread Anthony
The Rows.find() method does the following: for row in self: if f(row): if a<=k: records.append(row) k += 1 if k==b: break In a Rows object, there is self.records, which is a list of Row objects. Each Row object has at least one

Re: [web2py] Matplotlib webagg in web2py

2014-01-07 Thread Richard Vézina
Look more like a interactive Ipython and built-in webserver then something that could be integrated with web2py, but there is few detail about how it works so can say for sure... Richard On Tue, Jan 7, 2014 at 10:51 AM, ArtDijk wrote: > Hi, > I want to do data analysis in pandas and show resul

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread Alan Etkin
> > You can Contribute in many ways: > Consider posting this to the plugins list in web2pyslices, adding a link to the installer (.w2p file) so it can be installed directly from admin. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] intercept closing session

2014-01-07 Thread Giuseppe D'Amico
Hi, I am new with web2py, is there a way to intercept the closing of a session? -- 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 messag

[web2py] Re: intercept closing session

2014-01-07 Thread Alan Etkin
El martes, 7 de enero de 2014 14:40:38 UTC-3, Giuseppe D'Amico escribió: > > Hi, I am new with web2py, is there a way to intercept the closing of a > session? > You mean you want to catch a user logout from the scaffolding app? You could modify the user action at controllers.py so it checks wet

Re: [web2py] intercept closing session

2014-01-07 Thread Richard Vézina
tornado and websocket_messaging.py in contrib Richard On Tue, Jan 7, 2014 at 12:40 PM, Giuseppe D'Amico < damicogiusepp...@gmail.com> wrote: > Hi, I am new with web2py, is there a way to intercept the closing of a > session? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

Re: [web2py] intercept closing session

2014-01-07 Thread Richard Vézina
You need websocket_messaging.py if you want to know who is actually connected... Alan solution may works if you only want to catch logout event, but you don't have logout event in case user closer the browser... Richard On Tue, Jan 7, 2014 at 1:03 PM, Richard Vézina wrote: > You may found more

Re: [web2py] intercept closing session

2014-01-07 Thread Richard Vézina
You may found more info with comet_messaging.py since it have been rename to websocket_messaging,py recently Richard On Tue, Jan 7, 2014 at 12:59 PM, Richard Vézina wrote: > tornado and websocket_messaging.py in contrib > > Richard > > > On Tue, Jan 7, 2014 at 12:40 PM, Giuseppe D'Amico < > da

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Akash Agrawall
Traceback (most recent call last): File "/home/hornet632/webapps/joyofreading/web2py/applications/AK_M14/controllers/appadmin.py", line 243, in select limitby=(start, stop)) File "/home/hornet632/webapps/joyofreading/web2py/gluon/dal.py", line 10335, in select return adapter.selec

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Akash Agrawall
On Tuesday, January 7, 2014 2:11:35 AM UTC+5:30, Dave S wrote: > > On Monday, January 6, 2014 12:32:01 PM UTC-8, Akash Agrawall wrote: >> >> I am getting this error: >> "Need more than one value to unpack" >> >> > Can you tell us which line the error message is referencing? Is there a > traceba

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Akash Agrawall
Traceback (most recent call last): File "/home/hornet632/webapps/joyofreading/web2py/applications/AK_M14/controllers/appadmin.py", line 243, in select limitby=(start, stop)) File "/home/hornet632/webapps/joyofreading/web2py/gluon/dal.py", line 10335, in select return adapter.select

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Akash Agrawall
on doing the change you mentioned a ticket comes up. Traceback (most recent call last): File "/home/hornet632/webapps/joyofreading/web2py/gluon/restricted.py", line 217, in restricted exec ccode in environment File "/home/hornet632/webapps/joyofreading/web2py/applications/AK_M14/mod

Re: [web2py] Re: intercept closing session

2014-01-07 Thread Giuseppe D'Amico
thanks I will do like you say 2014/1/7 Alan Etkin > El martes, 7 de enero de 2014 14:40:38 UTC-3, Giuseppe D'Amico escribió: > >> Hi, I am new with web2py, is there a way to intercept the closing of a >> session? >> > > You mean you want to catch a user logout from the scaffolding app? > > You

Re: [web2py] Re: intercept closing session

2014-01-07 Thread Giuseppe D'Amico
what if someone does not do the logout, but for some reason the session end? 2014/1/7 Giuseppe D'Amico > thanks I will do like you say > > > 2014/1/7 Alan Etkin > >> El martes, 7 de enero de 2014 14:40:38 UTC-3, Giuseppe D'Amico escribió: >> >>> Hi, I am new with web2py, is there a way to inte

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Dave S
On Tuesday, January 7, 2014 10:11:27 AM UTC-8, Akash Agrawall wrote: > > > > On Tuesday, January 7, 2014 2:11:35 AM UTC+5:30, Dave S wrote: >> >> On Monday, January 6, 2014 12:32:01 PM UTC-8, Akash Agrawall wrote: >>> >>> I am getting this error: >>> "Need more than one value to unpack" >>> >>> >>

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Anthony
There's a bug in your custom validator code -- should be: self.error_message = error_message On Tuesday, January 7, 2014 1:12:51 PM UTC-5, Akash Agrawall wrote: > > on doing the change you mentioned a ticket comes up. > > Traceback (most recent call last): > File "/home/hornet632/web

[web2py] Re: Need more than one value to unpack

2014-01-07 Thread Anthony
This error comes from appadmin. Exactly what were you doing in appadmin to generate this error (what URL was requested)? Anthony On Tuesday, January 7, 2014 1:10:45 PM UTC-5, Akash Agrawall wrote: > > Traceback (most recent call last): > File > "/home/hornet632/webapps/joyofreading/web2py/ap

Re: [web2py] Re: Possibly a problem with CAS redirection in v2.8.2

2014-01-07 Thread Vinicius Assef
Congrats. :-) On Tue, Jan 7, 2014 at 6:19 AM, Massimo Di Pierro wrote: > Thanks Tim. Your patch is in trunk. > > > On Tuesday, 7 January 2014 01:50:49 UTC-6, Tim Richardson wrote: >> >> this time it was throwing a ticket due to an undefined variable. > > -- > Resources: > - http://web2py.com > -

Re: [web2py] Re: intercept closing session

2014-01-07 Thread Richard Vézina
The same I guess, you will need websocket_messaging.py and tornado server... This video is great even if in portuguese : http://vimeo.com/38972256 Richard On Tue, Jan 7, 2014 at 1:39 PM, Giuseppe D'Amico wrote: > what if someone does not do the logout, but for some reason the session > end? >

Re: [web2py] Re: intercept closing session

2014-01-07 Thread Richard Vézina
There is also this vid : http://vimeo.com/18399381 Richard On Tue, Jan 7, 2014 at 2:14 PM, Richard Vézina wrote: > The same I guess, you will need websocket_messaging.py and tornado > server... > > This video is great even if in portuguese : http://vimeo.com/38972256 > > Richard > > > On Tue, J

Re: [web2py] Re: Important New Year News: Edison Award

2014-01-07 Thread Richard Vézina
Congrats! :) Richartd On Tue, Jan 7, 2014 at 6:51 AM, Tim Richardson wrote: > Massimo, > is there a link to the nomination? Good twitter food. > > > On Saturday, 4 January 2014 15:08:38 UTC+11, Massimo Di Pierro wrote: >> >> Web2py/me have been nominated for the Edison Award. Please wish web2p

[web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Richard
Hello, I was looking to find a way to compile the dependencies of my project and I falled on this : https://bitbucket.org/victorlin/gluttony It might be an interesting addon to web2py? Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Richard Vézina
Ho! Forget about that, there is no web2py pip package and gluttony required a pip package to work... So, not possible to make it works for app I guess. Richard On Tue, Jan 7, 2014 at 2:31 PM, Richard wrote: > Hello, > > I was looking to find a way to compile the dependencies of my project and

Re: [web2py] Re: intercept closing session

2014-01-07 Thread Anthony
What exactly do you need to do? On Tuesday, January 7, 2014 1:39:04 PM UTC-5, Giuseppe D'Amico wrote: > > what if someone does not do the logout, but for some reason the session > end? > > > 2014/1/7 Giuseppe D'Amico > > >> thanks I will do like you say >> >> >> 2014/1/7 Alan Etkin > >> >>> El ma

[web2py] Re: Ajax

2014-01-07 Thread Ruud Schroen
Have you found a solution for this yet? I'm struggling with this as well.. On Thursday, September 10, 2009 5:21:11 AM UTC+2, eddwinston wrote: > > Hi, > > I am trying to make an ajax login, I am currently sending request to > this url: [app]/default/user/login. But it has been fruitless. I just

[web2py] Re: custom widgets

2014-01-07 Thread Anthony
> > 1. Where should I put my custom widget logic? > > Right now i have it grossely stored in my db.py > You can always put it in a module file and import it. > 2. Can i pass more information to my widget other than field, value from > my > db.table.colum.widget = mywidgetfunc If you have

Re: [web2py] Re: custom widgets

2014-01-07 Thread Calvin Morrison
great thanks! On 7 January 2014 15:18, Anthony wrote: >> 1. Where should I put my custom widget logic? >> >> Right now i have it grossely stored in my db.py > > > You can always put it in a module file and import it. > >> >> 2. Can i pass more information to my widget other than field, value from

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Marco Mansilla
El Tue, 7 Jan 2014 14:55:17 -0500 Richard Vézina escribió: > Ho! Forget about that, there is no web2py pip package and gluttony > required a pip package to work... So, not possible to make it works > for app I guess. > > Richard > > > On Tue, Jan 7, 2014 at 2:31 PM, Richard > wrote: > > > He

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Niphlod
except that web2py depends on nothing by default, and in fact you can run it on the standard python library with no additions. That project just parses the various setup.py in packages to find dependencies that are explicitely written into setup.py, it doesn't inspect your code to see what libra

[web2py] Re: Different applications usiong same set of tables

2014-01-07 Thread Niphlod
migrate=False prevents web2py to check if the underlying tables are in sync with your model. you don't need to run fake_migrate=True if you're not planning on altering tables on app2. fake_migrate=True just generates .table files according to your model, so you'll get (assuming the connection st

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread Niphlod
before spreading the work, you could rename all spanish comments and variables in english. At least in my POV (Italian, knows english, "tries to auto-translate spanish but doesn't know a single word of it") its the first step towards getting more developers contributing. On Tuesday, January 7,

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Richard Vézina
I didn't try before post :( I should have... I know web2py is self containing, but I may have import other python package from my app... Do you have a cue about a prog or a python script that could ramp my source and list my dependencies? Thanks Richard On Tue, Jan 7, 2014 at 3:46 PM, Niphlo

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Richard Vézina
This may seems what I am searching for : http://furius.ca/snakefood/ Richard On Tue, Jan 7, 2014 at 3:54 PM, Richard Vézina wrote: > I didn't try before post :( > > I should have... > > I know web2py is self containing, but I may have import other python > package from my app... > > Do you have

[web2py] Re: Important New Year News: Edison Award

2014-01-07 Thread Carlos Zenteno
Congratulations and good luck! Routing for you! On Friday, January 3, 2014 10:08:38 PM UTC-6, Massimo Di Pierro wrote: > > Web2py/me have been nominated for the Edison Award. Please wish web2py > (and me) good luck. :-) > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Niphlod
never tried. I'd go for http://pythonhosted.org/modulegraph/index.html. BTW: why don't you just initialize an empty venv, run your test suite and add modules as they are found missing ? Given the nature of web2py applications you'll have hard times to figure out dependencies without running every

[web2py] Re: Different applications usiong same set of tables

2014-01-07 Thread Anthony
You can also define models in a module function or class and import into both apps (e.g., the way Auth works). There is also http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Using-DAL-without-define-tables, though you don't get the web2py specific attributes, such as

Re: [web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Richard Vézina
That's a idea... You are right snakefood can't import web2py modules... Thanks Richard On Tue, Jan 7, 2014 at 4:31 PM, Niphlod wrote: > never tried. I'd go for http://pythonhosted.org/modulegraph/index.html. > BTW: why don't you just initialize an empty venv, run your test suite and > add mod

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-07 Thread samuel bonill
> > before spreading the work, you could rename all spanish comments and > variables in english. > At least in my POV (Italian, knows english, "tries to auto-translate > spanish but doesn't know a single word of it") its the first step towards > getting more developers contributing. > thanks Niphl

[web2py] Re: Rows.compact and other Rows methods

2014-01-07 Thread Joe Barnhart
It's actually a little deeper problem. I see that Rows.sort() has the effect of stripping the table key from the resulting Row objects. If I try the obvious fix, to use the built-in "sorted" on self.records instead of self, then the next problem surfaces -- the supplied sort key must include t

[web2py] Re: Rows.compact and other Rows methods

2014-01-07 Thread Anthony
Ah, I see, .sort has the same problem as .find. I think we should just try to fix .sort. Anthony On Tuesday, January 7, 2014 5:53:15 PM UTC-5, Joe Barnhart wrote: > > It's actually a little deeper problem. I see that Rows.sort() has the > effect of stripping the table key from the resulting Ro

[web2py] Re: Rows.compact and other Rows methods

2014-01-07 Thread Anthony
Note, same problem with .sort (it modifies the Row objects in self.records), so we should probably fix that as well (will be a bit more complicated). Anthony On Tuesday, January 7, 2014 11:03:56 AM UTC-5, Anthony wrote: > > The Rows.find() method does the following: > > for row in self:

[web2py] web2py administrative interface issue

2014-01-07 Thread sonu kumar
Hi, Today I was trying to access my application via web2py administrative interface but one of my application was not opening on 'edit' click in 'manage' button. It waits and throws a internal server error. Till yesterday it was working fine... Whereas other application like 'example' is opening

[web2py] Re: SQLFORM and IS_IN_SET problem

2014-01-07 Thread User
I have the same problem as the original poster. I am only storing a single value as of now but I'm using list:string instead of string so that if I change my mind to allow multiple values it will be easier to transition. Is this a bug that it won't preselect the selected value? Alternatively,

[web2py] Re: Web2py Integration with Sentry

2014-01-07 Thread Derek
I haven't, but I've done something similar with a different piece of software. You'd usually just use it as a wsgi middleware around your app. So you'd need to run web2py as wsgi and wrap it with Sentry. On Monday, January 6, 2014 8:14:46 PM UTC-7, James Q wrote: > > Has anyone ever integrated w

[web2py] Re: Why web2py and AnguljarJS?

2014-01-07 Thread Derek
Yea, there are a lot of similarities, I decided myself just to skip web2py and do most of the work in a client side template, where the webserver only serves static files and json, and the client framework handles everything else. It works pretty good on the desktop, but I haven't even tested in

[web2py] Re: Rows.compact and other Rows methods

2014-01-07 Thread Joe Barnhart
Maybe the best answer is to change Row so that it always holds the full set of keys (table:field) and change the __getitem__ method to look up the key recursively if only one part is provided. Here is a sample method which implements this strategy of testing keys for dicts within dicts. Our ca

[web2py] Re: Different applications usiong same set of tables

2014-01-07 Thread Jayadevan M
Thank you. So fake_migrate=True will scan the structure defined for tables defined under models in the .py files and create files under databases so that the structure defined in the python files and in the databases folder are same. It wil not really connect to the database at all. If we set m

Re: [web2py] Re: intercept closing session

2014-01-07 Thread Giuseppe D'Amico
I have to connect to a database known only at runtime, I create the model on the fly, but it is not thread safe, so I thoughtthat a possible solution could be to give to the model the name of the session_id, but I believe that there is a better solution, how do