[web2py] Re: Web2py Integration with Multiple Oauth Logins

2014-02-22 Thread Quint
Hi,

About the exception:

I changed the Field name to oauth_uid.
I did not notice this problem because i'm using GAE.

About *App does not exist or you are not authorized*:

This means that your oauth key/secret is not properly set in your 
configuration.
You are not supplying a valid/authorized oauth client key to the provider.
Which provider is giving this message?
What does your configuration look like?

What is find strange is that that plugin packed/installed by yourself is 
giving different result than te one installed manually. This should be 
exactly the same right? Are you sure everything is included in the one 
packed by yourself?

Regards,

Quint

On Saturday, February 22, 2014 4:15:11 AM UTC+1, James Q wrote:

 Interesting plugin, thanks for the link. 

 I took that repository, tar'ed and gzip'ed it, and uploaded it as a 
 plugin. Says App does not exist or you are not authorized. No idea what 
 that means, so I did it manually in a new app called oauth. Here is what I 
 get as an exception when trying to open up the new app:

 Traceback (most recent call last):
   File /home/james/Development/web2py/gluon/restricted.py, line 217, in 
 restricted
 exec ccode in environment
   File 
 /home/james/Development/deemok-web2py/applications/oauth/models/plugin_social_auth.py
  http://127.0.0.1/admin/edit/oauth/models/plugin_social_auth.py, line 7, in 
 module
 Field('user', 'reference auth_user', writable=False, notnull=True))
   File /home/james/Development/web2py/gluon/dal.py, line 8139, in 
 define_table
 table = self.lazy_define_table(tablename,*fields,**args)
   File /home/james/Development/web2py/gluon/dal.py, line 8156, in 
 lazy_define_table
 table = table_class(self, tablename, *fields, **args)
   File /home/james/Development/web2py/gluon/dal.py, line 8665, in __init__
 check_reserved(field_name)  File 
 /home/james/Development/web2py/gluon/dal.py, line 7850, in 
 check_reserved_keyword
 'invalid table/column name %s is a %s reserved SQL/NOSQL keyword' % 
 (name, backend.upper()))
 SyntaxError: invalid table/column name uid is a ALL reserved SQL/NOSQL 
 keyword

 Can you possibly rename the field:

 Field('uid', 'string', notnull=True, writable=False, length=255),

 to:

 Field('oauth_uid', 'string', notnull=True, writable=False, length=255),

 Or something along those lines?





 On Friday, February 21, 2014 3:55:00 AM UTC-5, Quint wrote:

 Hi,
  
 You could have a look at 
 python-social-authhttps://github.com/omab/python-social-auth and 
 if you like it and don't know how to integrate it, have a look at this 
 plugin https://code.google.com/p/w2p-social-auth/ to integrate it in 
 web2py.
  
  
 Quint

 On Wednesday, February 19, 2014 12:33:29 AM UTC+1, James Q wrote:

 I have a feeling that this topic comes up often, but I cannot seem to 
 Google a good solution to this. Essentially, I want users to be able to 
 login using either the built in Auth, or login via some Oauth provider, 
 like Twitter and Facebook. I have seen previous solutions using 
 ExtendedLoginForm and custom Twitter classes that inherit from 
 OAuthProvider, but they no longer seem to work. The Twitter code I find no 
 longer supports the newest Twitter API; the linkedin code from the web2py 
 book also  does not work.

 Here is sample code I have now, which only seems to constantly redirect 
 me to the logout page:

 1) Created new web2py application by copying the welcome one to a folder 
 named 'oauth'
 2) Added this code to db.py (taken from multiple examples online):

 from gluon.contrib.login_methods.oauth10a_account import OAuthAccount
 from oauth2 import Client, Consumer, Token

 class TwitterAccount(OAuthAccount):
 AUTH_URL = http://twitter.com/oauth/authorize;
 TOKEN_URL = https://twitter.com/oauth/request_token;
 ACCESS_TOKEN_URL = http://twitter.com/oauth/access_token;
 CLIENT_ID = ...
 CLIENT_SECRET = ...

 def __init__(self, g):
 OAuthAccount.__init__(self, g, self.CLIENT_ID, 
 self.CLIENT_SECRET, self.AUTH_URL, self.TOKEN_URL, self.ACCESS_TOKEN_URL)

 def get_user(self):
 if self.accessToken() is not None:
 consumer = Consumer(key=self.CLIENT_ID, 
 secret=self.CLIENT_SECRET)
 client = Client(consumer, self.accessToken())
 resp, content = client.request('
 http://api.twitter.com/1/account/verify_credentials.json')
 if resp['status'] != '200':
 # cannot get user info. should check status
 #redirect(http://google.com;)
 return None
 u = json.loads(content)
 return dict(first_name = u['name'], 
 username=u['screen_name'], name=u['name'], registration_id=u['id'])

 auth.settings.login_form=TwitterAccount(g=globals())

 3) Going to 127.0.0.1/oauth/user/login redirects me to user/logout.


 Besides my frustration in trying to find timely information about this, 
 is there working code out there that is *recent*, in that it 

[web2py] Load DAL only for DAL-related debugging in editor?

2014-02-22 Thread A36_Marty
Is there a (wise) way to load the DAL only for a project for debugging 
purposes in an editor.

Example:  I'm writing a class for doing some involved record calculations, 
look-ups from multiple tables, writing back to the tables using the app's 
DAL.  

From PyCharm, I would like to run just the .py file containing the class 
from if __name__ = __main__, loading just the DAL, and executing code 
within the single file...  Then for normal operations in web2py, the 
__main__ code wound't fire and the file would operate in the context of the 
overall web2py app

Is there a way to do this without lots of pitfalls/complexity?


-- 
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 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://groups.google.com/groups/opt_out.


[web2py] JqueryMobile

2014-02-22 Thread clarix
Hi all,

I am using JqueryMobile in a new web2py test application and it renders 
perfectly but the response.flash notifications don't work even though 
web2py_ajax.html is included in the layout file (\plugin_jqmobile\layout.html) 
which I didn't modify.

I appreciate your help! Thanks,

Clara

-- 
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 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://groups.google.com/groups/opt_out.


[web2py] How can i change the Label of_extra['count()'] in SQLTABLE headers ?

2014-02-22 Thread Fcosqui
Hi !

i have this simple problem.

Example:

rows = SQLTABLE(db(db.info).select(db.info.port.count(), headers={' *whats 
is the name of this Field ?* ':'new_name'} ) )

i tried, but isn't the real field :   info._extra['Count(port)']

Thnx.


-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: SQL Muli Select to Web2py format

2014-02-22 Thread Fcosqui
're right !

i didn't know this sentence count distinct   ( im not a professional dba 
:P)

thnx!

El jueves, 20 de febrero de 2014 17:57:27 UTC-3, Niphlod escribió:

 web2py's DAL has no support for subselects, so unfortunately there's no 
 current DAL-way to translate that query.

 BTW: your query doesn't make sense to me (I'm a professional dba in real 
 life). You're just counting how many distinct values of ip are in the 
 table why bother with a subselect when you can do a count distinct ? 
 That is supported by DAL (check the book)

 On Thursday, February 20, 2014 3:31:18 PM UTC+1, Fcosqui wrote:

 Hi !

 I want to translate this query to Web2py format, but i have found nothing 
 in Documentation

 SELECT COUNT(ip) from (SELECT ip FROM info GROUP BY ip) as b;

 i don't want to use executesql

 someone can help me? 

 thnx



-- 
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 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://groups.google.com/groups/opt_out.


[web2py] return all results for a field if no query.

2014-02-22 Thread Avi A
Hi,
Assuming I want to create an ajax query that will filter the results 
according to some data in fields:
 for example: ajax url:  ... eco/1/6/4/5/3

def eco:
my_content = db.table.created_by == auth.user.id
query_a = db.table.field_a == request.args(0)
query_b = db.table.field_b== request.args(1)
query_c = db.table.field_c == request.args(2)
query_d = db.table.field_d == request.args(3)
query_e = db.table.field_e == request.args(4)

filtered_list = db((my_content)  (query_a)  (query_b)  (query_c)  
(query_d)  (query_e)).select(,) 
return dict(filtered_list = filtered_list)
I guess, so far so good.

Now if any arg == 0 , (for example: eco/2/0/0/0/3) I want it to skip that 
specific query.

So I want to a chive something like that:
if request.args(0) != 0:
query_a = db.table.field_a == request.args(0)
else:
query_a = db.table.field_a == ALL
   if request.args(01) != 0:
etc...

with what should I replace the ALL? or the else part?

Thanks.
















-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: return all results for a field if no query.

2014-02-22 Thread Niphlod
every 
db.table.column == parameter
is something that further reduces the resultset (it's a filter condition)
in case parameter is 0, just don't use that condition in the query ^_^

moreover, you can do

filter_condition = (db.table.created_by == auth.user_id)
if .
filter_condition = filter_condition  (db.table.field_a == something)



filtered_set = db(filter_condition).select()


PS: usually filters are more manageable with request.vars than 
request.args() ... it's a little unconfortable to remember the order of the 
filter and to specify 0 as the ALL parameter is counterintuitive  
eco/0/1/0/6/0/0 sounds a lot more ugly than eco?b=1d=6

On Saturday, February 22, 2014 7:28:33 PM UTC+1, Avi A wrote:

 Hi,
 Assuming I want to create an ajax query that will filter the results 
 according to some data in fields:
  for example: ajax url:  ... eco/1/6/4/5/3

 def eco:
 my_content = db.table.created_by == auth.user.id
 query_a = db.table.field_a == request.args(0)
 query_b = db.table.field_b== request.args(1)
 query_c = db.table.field_c == request.args(2)
 query_d = db.table.field_d == request.args(3)
 query_e = db.table.field_e == request.args(4)
 
 filtered_list = db((my_content)  (query_a)  (query_b)  (query_c)  
 (query_d)  (query_e)).select(,) 
 return dict(filtered_list = filtered_list)
 I guess, so far so good.

 Now if any arg == 0 , (for example: eco/2/0/0/0/3) I want it to skip that 
 specific query.

 So I want to a chive something like that:
 if request.args(0) != 0:
 query_a = db.table.field_a == request.args(0)
 else:
 query_a = db.table.field_a == ALL
if request.args(01) != 0:
 etc...

 with what should I replace the ALL? or the else part?

 Thanks.


 
 














-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: return all results for a field if no query.

2014-02-22 Thread Avi A
Great, thanks. the moreover idea is what i was missing. Yeah, I'll 
replace the args with vars url, thanks.


On Saturday, February 22, 2014 9:36:58 PM UTC+2, Niphlod wrote:

 every 
 db.table.column == parameter
 is something that further reduces the resultset (it's a filter condition)
 in case parameter is 0, just don't use that condition in the query ^_^

 moreover, you can do

 filter_condition = (db.table.created_by == auth.user_id)
 if .
 filter_condition = filter_condition  (db.table.field_a == something)
 
 

 filtered_set = db(filter_condition).select()


 PS: usually filters are more manageable with request.vars than 
 request.args() ... it's a little unconfortable to remember the order of the 
 filter and to specify 0 as the ALL parameter is counterintuitive  
 eco/0/1/0/6/0/0 sounds a lot more ugly than eco?b=1d=6

 On Saturday, February 22, 2014 7:28:33 PM UTC+1, Avi A wrote:

 Hi,
 Assuming I want to create an ajax query that will filter the results 
 according to some data in fields:
  for example: ajax url:  ... eco/1/6/4/5/3

 def eco:
 my_content = db.table.created_by == auth.user.id
 query_a = db.table.field_a == request.args(0)
 query_b = db.table.field_b== request.args(1)
 query_c = db.table.field_c == request.args(2)
 query_d = db.table.field_d == request.args(3)
 query_e = db.table.field_e == request.args(4)
 
 filtered_list = db((my_content)  (query_a)  (query_b)  (query_c)  
 (query_d)  (query_e)).select(,) 
 return dict(filtered_list = filtered_list)
 I guess, so far so good.

 Now if any arg == 0 , (for example: eco/2/0/0/0/3) I want it to skip that 
 specific query.

 So I want to a chive something like that:
 if request.args(0) != 0:
 query_a = db.table.field_a == request.args(0)
 else:
 query_a = db.table.field_a == ALL
if request.args(01) != 0:
 etc...

 with what should I replace the ALL? or the else part?

 Thanks.


 
 














-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: return all results for a field if no query.

2014-02-22 Thread Anthony
If you make sure your URL vars have the same names as the associated table 
fields, you can simplify further as follows:

def eco:
my_content = db.table.created_by == auth.user.id
filter_query = reduce(lambda a, b: a  b,
  [db.table[v] == request.vars[v] for v in request.
vars
   if v in db.table.fields])
filtered_list = db(my_content  filter_query).select(,) 
return dict(filtered_list = filtered_list)

or if you prefer loops:

def eco:
filter_query = db.table.created_by == auth.user.id
for var in [v for v in request.vars if v in table.fields]:
filter_query = db.table[var] == request.vars[var]
filtered_list = db(my_content  filter_query).select(,) 
return dict(filtered_list = filtered_list)

Anthony

On Saturday, February 22, 2014 3:25:34 PM UTC-5, Avi A wrote:

 Great, thanks. the moreover idea is what i was missing. Yeah, I'll 
 replace the args with vars url, thanks.


 On Saturday, February 22, 2014 9:36:58 PM UTC+2, Niphlod wrote:

 every 
 db.table.column == parameter
 is something that further reduces the resultset (it's a filter 
 condition)
 in case parameter is 0, just don't use that condition in the query ^_^

 moreover, you can do

 filter_condition = (db.table.created_by == auth.user_id)
 if .
 filter_condition = filter_condition  (db.table.field_a == something)
 
 

 filtered_set = db(filter_condition).select()


 PS: usually filters are more manageable with request.vars than 
 request.args() ... it's a little unconfortable to remember the order of the 
 filter and to specify 0 as the ALL parameter is counterintuitive  
 eco/0/1/0/6/0/0 sounds a lot more ugly than eco?b=1d=6

 On Saturday, February 22, 2014 7:28:33 PM UTC+1, Avi A wrote:

 Hi,
 Assuming I want to create an ajax query that will filter the results 
 according to some data in fields:
  for example: ajax url:  ... eco/1/6/4/5/3

 def eco:
 my_content = db.table.created_by == auth.user.id
 query_a = db.table.field_a == request.args(0)
 query_b = db.table.field_b== request.args(1)
 query_c = db.table.field_c == request.args(2)
 query_d = db.table.field_d == request.args(3)
 query_e = db.table.field_e == request.args(4)
 
 filtered_list = db((my_content)  (query_a)  (query_b)  (query_c) 
  (query_d)  (query_e)).select(,) 
 return dict(filtered_list = filtered_list)
 I guess, so far so good.

 Now if any arg == 0 , (for example: eco/2/0/0/0/3) I want it to skip 
 that specific query.

 So I want to a chive something like that:
 if request.args(0) != 0:
 query_a = db.table.field_a == request.args(0)
 else:
 query_a = db.table.field_a == ALL
if request.args(01) != 0:
 etc...

 with what should I replace the ALL? or the else part?

 Thanks.


 
 














-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: How to support flash in new layout

2014-02-22 Thread horridohobbyist
Solved. After much trial and error. Wish it was documented somewhere.

The steps are fairly straightforward:

   1. {{include 'web2py_ajax.html'}}
   2. place div class=flash{{=response.flash or ''}}/div somewhere in 
   the body
   3. style div.flash { position: fixed; float: right; padding: 10px; 
   top: 10px; right: 30px; opacity: 0.75; margin: 10px 10px 10px 10px; 
   text-align: center; clear: both; color: #fff; font-size: 11pt; text-align: 
   center; vertical-align: middle; cursor: pointer; background: black; border: 
   2px solid #fff; -moz-border-radius: 5px; -webkit-border-radius: 5px; 
   z-index: 2; } div.error { background-color: red; color: white; padding: 
   3px; }/style


On Friday, 21 February 2014 22:47:17 UTC-5, horridohobbyist wrote:

 I'm trying to apply a new layout from a third-party CSS template. It 
 generally works. However, I am unable to get any flash messages (eg, 
 response.flash).

 Trying to merge two sets of CSS files is very tricky. What is the absolute 
 minimum CSS/JS that I need to get flash messages (without dragging in 
 unnecessary CSS that screws up my new layout)?

 Thanks.


-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Is it possible to execute {{code}} from database?

2014-02-22 Thread Robin Manoli
Suppose db.page.content has some text like : {{ arbitrary python code }}. 
Would this python code then be executed? Is it possible to execute such 
code?

-- 
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 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://groups.google.com/groups/opt_out.


Re: [web2py] Is it possible to execute {{code}} from database?

2014-02-22 Thread Jonathan Lundell
On 22 Feb 2014, at 3:31 PM, Robin Manoli ramat...@gmail.com wrote:
 Suppose db.page.content has some text like : {{ arbitrary python code }}. 
 Would this python code then be executed? Is it possible to execute such code?
 
 

Assuming that the code is a valid web2py template, I think you could set 
response.view to StringIO(your_text) and it'd be rendered normally as a web2py 
view (template). If that's what you're after...

That's just my quick reading of the template code, not solid information.

-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: Allow NULL in form validator with reference Field

2014-02-22 Thread brahama von
Thanks Niphlod! Will try that. Yes. Mysql with INNODB. I am loading the 
courses manually but wanted to do it via the web2py form...


El martes, 18 de febrero de 2014 17:24:25 UTC-3, Niphlod escribió:

 does your backend support a foreign key with a null value ? not all of 
 them can.
 As an alternative, you can

 Field('awc_pro_id', 'integer', requires=IS_EMPTY_OR(IS_IN_DB()))

 On Monday, February 17, 2014 7:21:14 PM UTC+1, brahama von wrote:

 Hi,

 dunno why my previous post didn't make it. Here it goes.

 part of my model

 legacy_db.define_table('courses',
 Field('awc_name','string'),
 Field('awc_version','string'),
 Field('awc_link','string'),
 Field('awc_pro_id',legacy_db.project, required=False, default=None),
 Field('awc_cli_id',legacy_db.client),
 format='%(awc_name)s',
 migrate=False)

 While creating a form for insert new courses i get the validator error; 
 value not in database

 While this is true, i allow that value to be NULL in DB. How can i allow 
 that in the form and insert the record?


 controller

 form=SQLFORM(legacy_db.courses)
 if form.process().accepted:
 response.flash = 'Course was added Correctly'
 return dict(form=form,message=T('Edition for Courses'))


 Thanks!



-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Ref: Handling File Uploads

2014-02-22 Thread Teddy Nyambe
I am trying to find out how I can handle file uploads in web2py if I need
total control of the process. For instance if I am using my own html form
and not the web2py. In controller how do I access the uploaded file so that
I can use python file system to rename the file and move it to a specific
folder and file name saved in the database.

Is it found in the request.vars.*

Any help

-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: Is it possible to execute {{code}} from database?

2014-02-22 Thread Anthony
Is it web2py template code that you want to execute, or just plain Python? 
If the former, you can use the gluon.template.render function -- 
see https://groups.google.com/d/msg/web2py/4r65UNLQTgQ/SxkW2zzsuwwJ. If the 
latter, there is always eval/exec. In either case, be aware of the security 
risk -- if the content comes from users, very bad things can happen (even 
inadvertently rather than maliciously).

Anthony

On Saturday, February 22, 2014 6:31:05 PM UTC-5, Robin Manoli wrote:

 Suppose db.page.content has some text like : {{ arbitrary python code }}. 
 Would this python code then be executed? Is it possible to execute such 
 code?


-- 
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 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://groups.google.com/groups/opt_out.


[web2py] When i'm uploading, my website lags

2014-02-22 Thread aslav
Hi there, I'm very new to programming, python and web2py and I have a 
question. I got this app in which I upload some file to db through appadmin 
( code is almost the same as the one massimo gave in the book [ chapter 
about image blog ] ). And when I'm uploading something or downloading 
something, I ( or anyone else ) can't access my website until 
uploading/downloading is finished. What may be the problem? Sorry if I 
described it wrong, but I'm really new to this stuff.

-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Auth with multiple E-mail addresses

2014-02-22 Thread Damien

I would like to associate to my users multiple E-mail addresses and phone 
numbers. I would like these users to be able to authenticate with any 
(verified) E-mail address or phone number. I am wondering what would be the 
best approach to achieve this. 

One idea would be to modify the existing Auth class. I am willing to do it, 
but I would like to know if this is something that could then potentially 
be merged in the main branch of web2py (any one else interested in this 
feature?). If not, this approach might not work as I don't want to maintain 
an alternate version of Auth that would diverge from the one integrated in 
web2py.

Thank you for your suggestions.

Damien

-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Using web2py build-in serwer

2014-02-22 Thread aslav
Hi there, I'm new to programming, python and web2py. I have a question - 
Can I use web2py build-in server insted of apache if I'm just running a 
small ( really small ) website with couple of visits and file downloads per 
day? 

-- 
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 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://groups.google.com/groups/opt_out.


[web2py] Re: Admin app support in app engine

2014-02-22 Thread pallav
Great job!

On Thursday, December 19, 2013 3:11:50 PM UTC-5, Alan Etkin wrote:

 A subset of the admin app features was enabled in trunk for Google App 
 Engine apps. New deployments using the app.yaml example file should support 
 the following (using GAE SDK 1.8.8 and Python 2.7/WSGI):

 - Error ticket storage and browser (with datastore connections)
 - Web shell
 - File viewer

 For sql databases, a connection should be specified as described in 
 http://www.web2py.com/books/default/chapter/29/13/deployment-recipes?search=ticket_storage.txt#Collecting-tickets


-- 
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 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://groups.google.com/groups/opt_out.