Thank you for highlighting this! Learnt something new today
On Monday, June 29, 2015 at 10:12:19 PM UTC+8, Massimo Di Pierro wrote:
>
> You are right. we should make it more clear.
>
> On Monday, 29 June 2015 08:16:36 UTC-5, 黄祥 wrote:
>>
>> i think it's already documented on web2py book
>> ref :
>
Thank you, this is what I need.
Funny thing is, I had already read that months ago and forgot it. The book
has an impressive amount of information!
El lunes, 29 de junio de 2015, 19:58:01 (UTC-5), Anthony escribió:
>
> Check out
> http://web2py.com/books/default/chapter/29/06/the-database-abst
Check out
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Caching-selects
and
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#as_dict-and-as_list.
Anthony
On Monday, June 29, 2015 at 8:52:38 PM UTC-4, Antonio Salazar wrote:
>
> I have
I have a task periodically generating a handful of records which may or may
not be already in a versioned table. To minimize versioning logs, I want to
generate the records in-memory and only update the changed ones.
Is there a simple way to copy a row structure to a dictionary or list, for
exa
exactly what I needed to know
thanks for the timely reply Niphlod
if future needs require, perhaps a graph DB would be effective for this
type of query
Alex
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://cod
Hey that's a good plan too. I say In these kinds of things, just do what
works!
Best wishes! D
--
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 r
does anyone know what this means?
{
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2015
Version 2.11.2-stable+timestamp.2015.05.30.16.33.24
Database drivers available: sqlite3, psycopg2, pg8000, pymysql, imaplib
Traceback (most recent call last):
File "/home/www-data/web2py/gl
> 1. What template means in this context is not layout template but content
> template. You can start a new page with a copy of another page. Pages have
> tags. All public pages with a "template" tag can be used as templates for
> other pages.
>
This is a useful information, maybe it could be
test application is just as downloaded from web2py website.
On Monday, June 29, 2015 at 4:08:19 PM UTC+9, kawate wrote:
>
> Deploying test application ends well but only returns 'Hello world!' from
> server(local host and google). I expect well known welcome page.
> I tried deployment both thru
either you add redundantly groups or you have to resort to a recursive
query each time you need to check for membership at higher levels than the
first one... in either case I really don't see the issue: given that
auth_membership is a one-to-many, web2py isn't getting in your way.
If you don't
Example: Role is "Citizen" (In db.auth_group)
Object (as in Subject/Predicate/Object) of role is "City of New Orleans"
(Added extra field in db.auth_group "superObject" for this object role.)
In db.auth_membership, user_id is "Bob" with FK to db.auth_group.role.
Result: "Bob is citizen of New O
usually it's not rocket science.. do you have a
databases/***_restaurants.table in your databases folder ?
if yes, drop it and go to the appadmin controller to recreate it.
>From the error it seems that web2py is trying to migrate a table that is
not on the backend but it's supposed to be there
On Monday, June 29, 2015 at 12:19:21 AM UTC-7, MS wrote:
>
>
>
>
> We have a Web2py application hosted on Google app engine.
>
> We are trying to implement Taskqueue for fetching record from tables, we
> are passing the filter field (date type) and number of years as parameters.
> These param
/me restricts himself to review the code before the actual merge. if noone
rescues the bounty in a week I'll do it.
On Monday, June 29, 2015 at 5:43:30 PM UTC+2, Massimo Di Pierro wrote:
>
> I offer $50 is you can do this in a couple of days:
>
> In the web2py admin interface there is a "pack cus
For now, I'm just separating my coordinates with a letter of the alphabet,
since it doesn't make any difference. I'll try to give this a shot when I
get home. Thanks!
On Sunday, 28 June 2015 16:14:31 UTC-7, villas wrote:
>
> Hi Robert,
> I think args and vars are all url encoded.
> I think
I got everything working fine at home on my Ubuntu 14.04 server. Then I
did a git push to pythonanywhere.com. Web2py created all my new tables
except for one, and it continues to fail to create this table. Tech
support at pythonanywhere can't find the problem.
Here's my table that is having
1. This should work
@auth.requires_login_or_token()
@auth.requires_membership('whatever')
def youtfunction():
2. yes that is correct (except it is _token=, not token=). Just mind that
the token is as good as a password and may be unsafe to send it via email.
If if you need it, you can do it
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
ok, thanks!
But I have two questions:
1. what can I do with auth.requires_membership and
auth.requires(custom_function), which I use a lot?
2. so if I have to send an email, all I have to do is find the use token
in the database with:
user_token =
1. What template means in this context is not layout template but content
template. You can start a new page with a copy of another page. Pages have
tags. All public pages with a "template" tag can be used as templates for
other pages.
2. the should not. There is nothing in the page that conta
Hi,
I'am trying to get familiar with the auth.wiki, which I think is great to
use for simple cms tasks.
The documentation in the book is a bit short, a least from the perspective
of a novice. I couldn't find much more information on auth.wiki here nor
elsewhere. Maybe it would help other users
I offer $50 is you can do this in a couple of days:
In the web2py admin interface there is a "pack custom page" which redirects
to
http://127.0.0.1:8000/admin/default/pack_custom/
and has a button "download w2p".
I would like one addition button there that says "download as exe" which
will do t
You can use these tokens for your purpose. You would also have to do (in
models/db.py)
auth.requires_login = auth.requires_login_or_token
In the general case the user many want to allow the token only on some API
so we want to distinguish.
Massimo
On Monday, 29 June 2015 09:25:35 UTC-5, p.
Hello:
I'm actually interested in a way to send user notification emails with
custom links, so that a click sends the user to the website and also logs
the user in automatically.
Is that what these tokens are for? If they are, I don't see why I would use
the decorator requires_login some times
Could we say that it is a bug on GAE and that for now it is not possible to
have translated static assets when deployed on Google?
Should I report it somewhere or maybe explain better the issue for a future
fix?
Thanks!
On Friday, 26 June 2015 22:36:56 UTC+2, Sébastien Loix wrote:
>
> Hello t
You are right. we should make it more clear.
On Monday, 29 June 2015 08:16:36 UTC-5, 黄祥 wrote:
>
> i think it's already documented on web2py book
> ref :
>
> http://web2py.com/books/default/chapter/29/09/access-control#Application-Management-via-privileged-users--Experimental-
>
> best regards,
>
That code may run when no user is logged in so auth.user is None
On Monday, 29 June 2015 08:02:32 UTC-5, Sai Harsh Tondomker wrote:
>
> db.define_table("Questions",
> Field('quesno', unique=True),
> Field('question', 'text'),
> Field('optionA', 'string'),
> Field('optionB', 'string'),
>
i think it's already documented on web2py book
ref :
http://web2py.com/books/default/chapter/29/09/access-control#Application-Management-via-privileged-users--Experimental-
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/
db.define_table("Questions",
Field('quesno', unique=True),
Field('question', 'text'),
Field('optionA', 'string'),
Field('optionB', 'string'),
Field('optionC', 'string'),
Field('optionD', 'string'),
Field('answer', 'string'),
Field('extra1','string'),
Field('extra2','string'))
db.
+1 very handy!
2015-06-29 9:20 GMT+02:00 Massimo Di Pierro :
> No. @Anthony, can I ask you to send me a paragraph and I will include it
> in the book?
>
>
> On Sunday, 28 June 2015 17:49:01 UTC-5, Vinicius Assef wrote:
>>
>> Is it documented anywhere?
>>
>> On 28 Jun 2015, at 19:13, Massimo Di Pi
request is a web2py object. I think you are importing a module called
request (or there is something you import from a module called request)
that shadows the web2py request object.
look for a
import request
and replace it with
import request as other_request
On Monday, 29 June 2015 02:
what is the "test application"?
On Monday, 29 June 2015 02:08:19 UTC-5, kawate wrote:
>
> Deploying test application ends well but only returns 'Hello world!' from
> server(local host and google). I expect well known welcome page.
> I tried deployment both thru web2py.py and gae launcher, results
does this help? https://code.google.com/p/gui2py/
On Sunday, 28 June 2015 16:41:57 UTC-5, Phillip Veda wrote:
>
> I started a project in web2py aimed to store and manipulate user files,
> which at some point needs a dynamic GUI interface.
>
>
> Due to the intensive nature of the file processing,
No. @Anthony, can I ask you to send me a paragraph and I will include it in
the book?
On Sunday, 28 June 2015 17:49:01 UTC-5, Vinicius Assef wrote:
>
> Is it documented anywhere?
>
> On 28 Jun 2015, at 19:13, Massimo Di Pierro
> wrote:
>
> How many of you know of the existence of this page?
>
>
We have a Web2py application hosted on Google app engine.
We are trying to implement Taskqueue for fetching record from tables, we
are passing the filter field (date type) and number of years as parameters.
These parameters will be then passed to a Query to fetch the data from the
Database
thanks Massimo
a related error I get after that is:
Error ticket for "omniavx_joe"Ticket ID
108.234.157.233.2015-06-29.03-00-34.5b339bb8-b672-4ea0-a143-c0f6302be3ab
'module' object has no attribute
'application'Versionweb2py™Version
2.11.2-stable+timestamp.2015.05.30.16.33.24PythonPython 2.7.
Deploying test application ends well but only returns 'Hello world!' from
server(local host and google). I expect well known welcome page.
I tried deployment both thru web2py.py and gae launcher, results are same.
I did not change any but on app.yaml application ID as attached.
Thank you in advanc
36 matches
Mail list logo