Re: [web2py] Re: config file - configuration per environment

2012-03-19 Thread Johann Spies
On 18 March 2012 15:51, Alex wrote: > sorry, I don't understand your answer. What does mult tenance mean? > There is no description for tenant in the request documentation. When > I access request.tenant in my local app it is None. > There is something in the book ( http://www.web2py.com/books/d

[web2py] Request all function from a controller

2012-03-19 Thread Hassan Alnatour
Dear ALL , How can i get all the functions in a controller ?? i know i can get the function am in using request.function but how can i get them all ??

[web2py] Get All Controller Functions

2012-03-19 Thread Hassan Alnatour
Dear ALL , How Can I Get ALL controller functions , as i know i can get the one am at in the view using request.function , so how can i get all of them ??

Re: [web2py] Re: Web2py Update

2012-03-19 Thread Ovidio Marinho
Im use linux ubuntu 11.10 Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9334 0266 - Claro

[web2py] RESTful API: hook before controller is called ?

2012-03-19 Thread sebsto
Hello, Still developing around the RESTfull API. I am looking for a way to handle the HTTP POST payload *before* the controller is called. I want my REST clients to send encrypted and compressed content. I would need to decipher and decompress the content before the args parsing is done. Any su

[web2py] Re: Creating a cms with restricted video streaming access

2012-03-19 Thread Alan Etkin
Why not. But for now the problem is not in access control but in having Movuca support this new elearning data types, as long as the app knew how to manage the new data, then you'll be able to customize it as much as you want. On 19 mar, 01:46, Osama Khan wrote: > Hey! > > This is amazing, I am w

Re: [web2py] Re: Nginx and Web2py

2012-03-19 Thread Marco Tulio Cicero de M. Porto
Thanks for all the answers. As I said before, I used the script that comes with web2py ( web2py/scripts directory). Installed and ran nginx and uwsgi right away. What didn't work was the creation of new apps from admin interface. At least not untill I started web2py manually (python2.6 web2py.py

Re: [web2py] Installing a project which in cloned in mercurial repository in web2py

2012-03-19 Thread Christopher Steel
Hi Praveen, FYI a .w2p file is basically a tar archive. If you unpack it it gives you a directory structure. On Sunday, March 18, 2012 5:44:00 PM UTC-4, praveen krishna wrote: > > But to install an application it should be of .w2p format then how can I > copy or move a normal folder which cont

[web2py] Pyscripter 2.5 and Iron python 2.7.2.1 released

2012-03-19 Thread Rahul
Just saw that Pyscripter 2.5 and Iron python 2.7.2.1 were released.

Re: [web2py] Re: Creating a cms with restricted video streaming access

2012-03-19 Thread Bruno Rocha
VIMEO Plus protect videos for downloading http://zerp.ly/rochacbruno Em 19/03/2012 01:46, "Osama Khan" escreveu:

[web2py] Re: Get All Controller Functions

2012-03-19 Thread Anthony
Here's how the admin app does it: http://code.google.com/p/web2py/source/browse/applications/admin/controllers/default.py#728. You might try something like that. Anthony On Monday, March 19, 2012 6:16:45 AM UTC-4, Hassan Alnatour wrote: > > Dear ALL , > > How Can I Get ALL controller functio

Re: [web2py] Re: routes.py not picking up

2012-03-19 Thread Ruben Orduz
Another thing that needs to be pointed out (at least this is the case in Windows) that modifications to this file require a full web2py server shutdown/restart. If you use the tk UI to "stop" server and then "start" server, it will not pick up changes in the file -- perhaps this is obvious to some,

[web2py] SQLFORM.grid search using signature

2012-03-19 Thread Gian Luca Decurtins
Hi all I can't perform search operations on SQLFORM.grid forms. If I remove the "@auth.requires_signature()" part, it does work. In the webserver-logfile I noticed that the edit page is signed, while the search page isn't. EDIT: /init/location/form/edit/location/4?_signature=368187847e306b826b

[web2py] Re: trouble with @auth.requires_login() in wiki app from manual

2012-03-19 Thread Monte Milanuk
Ack. Well that would explain why it only caused a problem in the one spot! Thanks for the assistance! Monte On Sunday, March 18, 2012 4:10:49 PM UTC-7, Anthony wrote: > > As Alan suggests, you slightly mis-copied the code from the book -- it > should be: > > @auth.requires_login() > def doc

Re: [web2py] Re: TEXT data type deprecated in future MSSQL?

2012-03-19 Thread Ross Peoples
I don't think we need to worry about this for a while. It doesn't say "deprecated", but that it will be removed in a future version (semantics, I know). But, they have not given any indication of what version, which means they probably won't remove it until the version AFTER 2012 (2014, maybe).

[web2py] Re: web2py talk at PyCon US 2012 [video]

2012-03-19 Thread Alan Etkin
I've finished writing the english subtitles. I'd be nice if someone could refine it. There are a couple of sentences I left unwritten with a (?) mark and it needs better synchronization. When it was done, I'll be able to finish the spanish translation that I left incomplete. Thanks here is the li

[web2py] Re: web2py talk at PyCon US 2012 [video]

2012-03-19 Thread Massimo Di Pierro
Thank you Alan. Massimo On Monday, 19 March 2012 11:00:51 UTC-5, Alan Etkin wrote: > > I've finished writing the english subtitles. I'd be nice if someone > could refine it. There are a couple of sentences I left unwritten with > a (?) mark and it needs better synchronization. When it was done,

[web2py] trouble reading this list

2012-03-19 Thread Massimo Di Pierro
Is it just me? I am having trouble accessing some recent posts on this list. I see the title, author, and content says "loading...". I apologize if I cannot answer but I do not know what to do but wait. massimo

[web2py] Re: Get All Controller Functions

2012-03-19 Thread Alan Etkin
Would this work inside a controller? # this module belongs to the Python Standard Library # http://docs.python.org/library/inspect.html#module-inspect import inspect # when using the same globals() an exception is thrown for k, v in globals().copy().iteritems(): if inspect.isfunction(v):

[web2py] Re: trouble reading this list

2012-03-19 Thread Ross Peoples
I would suggest clearing browser cache and restarting it. On Monday, March 19, 2012 1:20:01 PM UTC-4, Massimo Di Pierro wrote: > > Is it just me? > > I am having trouble accessing some recent posts on this list. I see the > title, author, and content says "loading...". > I apologize if I cannot a

[web2py] Re: trouble reading this list

2012-03-19 Thread Anthony
I noticed the same thing this morning on my Android, but seems OK in my desktop browser, and Android seems OK now too. Anthony On Monday, March 19, 2012 1:20:01 PM UTC-4, Massimo Di Pierro wrote: > > Is it just me? > > I am having trouble accessing some recent posts on this list. I see the > ti

[web2py] Re: Get All Controller Functions

2012-03-19 Thread Anthony
I don't think that will distinguish functions defined in models or imported within models or the controller, though I guess in most cases such functions wouldn't have no arguments. Anthony On Monday, March 19, 2012 1:28:10 PM UTC-4, Alan Etkin wrote: > > Would this work inside a controller? >

[web2py] Re: trouble reading this list

2012-03-19 Thread szimszon
I was having that problem too... 2012. március 19., hétfő 18:20:01 UTC+1 időpontban Massimo Di Pierro a következőt írta: > > Is it just me? > > I am having trouble accessing some recent posts on this list. I see the > title, author, and content says "loading...". > I apologize if I cannot answer

[web2py] Re: export Data Abstraction Layer (DAL) to be used with Google Cloud SQL on App Engine

2012-03-19 Thread Anthony
Might be a bug -- you can file an issue here: http://code.google.com/p/web2py/issues/list On Sunday, March 18, 2012 11:03:25 PM UTC-4, Jarod G.R. Meng wrote: > > Hi, > > I was trying to use web2py's DAL with Google Cloud SQL on App Engine, > but to no avail. The error seems to be because GAE do

[web2py] Re: web2py and roundcube

2012-03-19 Thread LightDot
This is a problem with your web server configuration. Could you please post how are you using web2py, with Apache and mod_wsgi or...? How do your vhost configurations look like? On Friday, March 16, 2012 8:02:43 PM UTC+1, george3825 wrote: > > Hello, > > I am trying to setup web2py and roundcube

[web2py] DAL or SQL?

2012-03-19 Thread Keith Edmunds
I need to run a reasonably complex query, and I'm wondering whether it would be better to code it in SQL, or should I try to get the DAL to provide the data (or maybe there's another way). There's no right or wrong answer, but I'd welcome opinion on the best approach. Simply put, consider two tabl

[web2py] Errors in web2py Online Book

2012-03-19 Thread Eudean Sun
Just wanted to make note of two errors I found in the online book while coding up a website: 1) In the "Forms and validators" chapter, the SQLFORM constructor signature is shown with a named parameter "record_id". In fact, the parameter name is "record". 2) In the "Email and SMS" chapter, it s

[web2py] How do I add inside of in HTML format?

2012-03-19 Thread Kenny
I looked up the documentary and example, I wasn't able to find one. How can I convert this to Web2py format? Wish List (3) Thank you.

[web2py] Re: Get All Controller Functions

2012-03-19 Thread Alan Etkin
Ok, then the right approach is the admin's (I think it reads the controller files and does some sort of filtering with regular expressions). It even collects all function names from any controller in the app in a dictionary. What if web2py exposed that list for each app in an environment object (al

Re: [web2py] How do I add inside of in HTML format?

2012-03-19 Thread Kenny Chung
Never Mind. It was easier than I really thought of. {{=A('Wish List',B('(3)'),_href=URL('index'))}} Awesome :) On Mon, Mar 19, 2012 at 12:22 PM, Kenny wrote: > I looked up the documentary and example, I wasn't able to find one. > How can I convert this to Web2py format? > > Wish List (3) > > T

[web2py] How to execute code after Register and Login functions ?

2012-03-19 Thread sebsto
Dear All, I would like to execute some security related code (like key generation) after successful Registration and / or Login function ... Is it possible ? How to do it ? Thanks Seb

[web2py] Re: How to execute code after Register and Login functions ?

2012-03-19 Thread Anthony
auth.settings.login_onaccept and auth.settings.register_onaccept can each be a list of callback functions that take a form object (the post-submission instance of the login and registration form objects, respectively). There are callbacks for other auth events as well -- see http://web2py.com/b

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-19 Thread szimszon
The new ldap_auth.py is in the trunk. If you could test it. Please give me a feedback if something is broken. http://code.google.com/p/web2py/issues/detail?id=724 2012. március 18., vasárnap 12:20:24 UTC+1 időpontban IVINH a következőt írta: > > > > It's work. But changed "username_attrib" inst

[web2py] Pls, upgrade eCardsonMap to V3

2012-03-19 Thread Ashraf Mansour
Hi, Pls, upgrade eCardsonMap to V3 Regards, Ashraf

[web2py] Re: DAL or SQL?

2012-03-19 Thread Niphlod
Another DAL challenge. accepted! assuming the model: db.define_table('tasks', Field('name') ) db.define_table('periods', Field('task_id', db.tasks), Field('start_time', 'datetime'), Field('end_time', 'datetime'), ) You'd like to calculate the tota

[web2py] Re: How to execute code after Register and Login functions ?

2012-03-19 Thread sebsto
Thanks Anthony ! On Mar 19, 9:14 pm, Anthony wrote: > auth.settings.login_onaccept and auth.settings.register_onaccept can each > be a list of callback functions that take a form object (the > post-submission instance of the login and registration form objects, > respectively). There are callback

Re: [web2py] Re: TEXT data type deprecated in future MSSQL?

2012-03-19 Thread Niphlod
As an "insider" working with MSSQL at least 8 hours a day no need to worry, text is going to be there at least for five or more years. there are several professional applications that require it extensively. To make things worse, varchar(max) implementation - "forced and recommended" by MSS

Re: [web2py] Re: Book translation

2012-03-19 Thread Sefa Denizoğlu
Hello, Same here for Turkish translation... it might take a year by my humble hours I can dedicate now and then.. will be waiting for the heads-up.. On Tue, Dec 27, 2011 at 6:18 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > You will soon be able to do this online. > > On Dec 27, 10

[web2py] Using Translation without request object

2012-03-19 Thread Bruce Wade
Hi, I have created a standalone python module which allows me to do a whole bunch of tasks to the database. I then wrote a console application that can use this file, primary for automated tasks and or non-web based application api testing. Anyway how would I use the Translation in this situation

[web2py] Re: Creating a cms with restricted video streaming access

2012-03-19 Thread Nico de Groot
I've written a ELO - CMS using the plugin-wiki system and some custom widgets which for example insert a expandable/collapsable videoplayer based on MediaSite, audio-feedback and I'm working on self-evaluation tests with feedback and planning on using our SSO system for authentication/autorizat

[web2py] Spatial / GIS support in DAL

2012-03-19 Thread DenesL
Spatial / GIS support (in latest trunk) = Sponsored by AidIQ for use by Sahana Eden available for (so far) ++ 1) Postgres + PostGIS http://postgis.refractions.net/docs/ 2) MS SQL http://msdn.microsoft.com/en-us/library/ff848797.aspx SQLite + Spatiali

[web2py] Using Facebook for registration and login

2012-03-19 Thread pbreit
Has anyone programmed a Facebook integration for registration and login using this server-side technique: http://developers.facebook.com/docs/authentication/server-side/ I do not want to use Janrain.

Re: [web2py] Using Facebook for registration and login

2012-03-19 Thread Bruno Rocha
I use this in movuca and web2pyslices. Code in github. http://zerp.ly/rochacbruno Em 20/03/2012 02:41, "pbreit" escreveu: > Has anyone programmed a Facebook integration for registration and login > using this server-side technique: > http://developers.facebook.com/docs/authentication/server-side