By default, the formname for an update form includes the record ID, which
yields a unique formname for each record. The formname is the key used to
store the CSRF token in the session, so if you create a form with one name
but submit a form with a different name, the CSRF tokens won't match.
Th
Can you be more specific?
Do you want to manage group from AD inside web2py?
Richard
On Mon, Sep 14, 2015 at 4:38 PM, Laurent Lc wrote:
> i am looking for a very simple example
> thanks
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/w
I thought it could be used for workflow management...
Richard
On Tue, Sep 15, 2015 at 4:33 PM, Niphlod wrote:
>
>
> On Tuesday, September 15, 2015 at 7:16:08 PM UTC+2, Richard wrote:
>>
>> I should try it, you right, it on my todo since a lot of time... But
>> eventually, I will need workflow n
It looks like what i was missing is that the SQLFORM will perform an insert
or update depending on *its form name*, it wont matter if i explicit set a
record id when before its processed.
If the submmited form name is mytable/create it will perform an insert, but
i was passing an id that exist
there are a LOT of untruths here.maybe is the lack of the
documentation, maybe the lack of willing to read it, but still I'll try
to uncover them one by one.
Let's start saying that these optimizations are on the far End of your -
high end - project, right were you want to optimize till
On Tuesday, September 15, 2015 at 7:16:08 PM UTC+2, Richard wrote:
>
> I should try it, you right, it on my todo since a lot of time... But
> eventually, I will need workflow not exactly related to task, but for
> general purpose...
>
got distracted.why mentioning luigi then ?
if you nee
Start small: you're missing how forms work in self-submitting controllers
(which is the de-facto standard in pretty every framework)...
def testfunction():
#. this piece gets called when you render the form AND when you
submit it
form = SQLFORM() #... this creates the form a
In the end I used sphinx with this extension:
http://pythonhosted.org/sphinxcontrib-httpdomain
2015-09-15 3:56 GMT+02:00 Richard Vézina :
> I like the way it's done here : https://open.fda.gov/api/reference
>
> I had saw many API doc that were looking the same (just can found back a
> couple o
Why can't you start one or more workers and then have the user simply
schedule a task in the queue?
On Tuesday, September 15, 2015 at 3:12:31 PM UTC-4, Phillip wrote:
>
> It is my understanding that, despite being able to queue tasks from the
> controller, workers can only be started from the co
It is my understanding that, despite being able to queue tasks from the
controller, workers can only be started from the command line (perhaps a
security issue?).
I have a long-running python script that needs to be executed by the user
for many files. Multiprocessing is essential.
Based on a
Update: I upgraded to 2.12.3-stable and am still having the same issue. But
I just checked and I can access the errors page for other apps on the same
installation. The issue doesn't seem to be the presence of old error
reports created by an earlier web2py version because those other apps have
Ok Niphlod i took your advise ive read the chapter again and i see what the
problem might be.
if id is not None the first time the form is created, the form does update
correctly without having to submit twice, but the tokens still dont match.
Is this the desired behaviour? The form works well
Hi. I just tried to access the admin/errors/appname page and I got the
following error:
'module' object has no attribute
'Reference_unpickler'
Traceback (most recent call last):
File "/home/ianwscott/webapps/web2py/web2py/gluon/restricted.py", line 227,
in restricted
exec ccode in environm
That's what i thougt first too.
But it doesn' ask.
I checked this again right now. Usually i use Firefox. I logged out each open
instance.
And called appadmin with Konqueror (which asked first, whether it should accept
SSL- Cert).
I'm pretty sure it does not ask even if i'm not logged in.
It ju
Ive bought the book, ive read it and watched the massimo videos. ill read
it again in case im missing something, maybe i should use SQLFORM.grid() or
something.
ive used {{=form.custom.begin}} to write where that form is submitted and
{{=form.custom.end}} to get the token. If the action or toke
good points. this thread should be pinned. Or includen in the book, wiki or
similar.
On Sunday, September 13, 2015 at 5:44:01 PM UTC-5, Louis Amon wrote:
>
> I'm opening a thread dedicated to website performance issues in web2py,
> giving the answers I've got so far so that other may contribute
I should try it, you right, it on my todo since a lot of time... But
eventually, I will need workflow not exactly related to task, but for
general purpose...
Thanks
Richard
On Tue, Sep 15, 2015 at 3:26 AM, Leonel Câmara
wrote:
> The included web2py's scheduler already supports job graphs, Simo
Errr appadmin by default asks for the admin interface password. Are you
sure you haven't already entered it?
--
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)
-
Hi @ all,
I set up web2py 2.12.3-stable+timestamp.2015.08.19.00.18.03 with
nginx/1.6.2, with uwsgi 2.0.2.
With nginx config all http traffic is pemanently routed to https.
With this setup appadmin is reachable for everybody. Even without being logged
in.
What is the recommented way to prev
https://www.pythonanywhere.com/try-web2py/
>
>
--
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 th
definitely not getting how self-submission works.. read the book first
if you want to fiddle with forms yourself.
tl:dr: you're selecting a record to edit BOTH before and after the form has
processed the actual submission.
On Tuesday, September 15, 2015 at 6:13:10 PM UTC+2, Alfonso Serra wr
I have to submit the form twice in order to update a record,
sometimes request.post_vars['id'] returns a list without changing the view
if i perform rows = db(db.agencias).select() it queries the database twice.
Should i report these behaviours as bugs or am i doin something wrong?
Ive compared th
webfaction !!
https://wiki.webfaction.com/wiki/InstallScripts
2015-09-15 16:48 GMT+01:00 Blutoh :
> Hi all,
>
> Most of the threads I found regarding Hosting Services seem to be very old.
> AFAIK, the only current hosting service is Pythonanywhere.
> I found this company, "Planet Host" (http://ww
Hi all,
Most of the threads I found regarding Hosting Services seem to be very old.
AFAIK, the only current hosting service is Pythonanywhere.
I found this company, "Planet Host" (http://www.planethost.com/) but I
don't get
any response to my inquiries regarding web2py, so I am not sure of they
elm lang is very interesting youtubing right now...
2015-09-15 10:14 GMT+01:00 Michele Comitini :
> Richard is right, using Ractive.js allows the creation of SPA easily.
> Much more effective than angular due to a saner template design that
> limits the number of new attibutes to learn. An
if with one backend it works fine and the other doesn't, I'd say it's a fb
problem.
On Sunday, September 13, 2015 at 2:02:28 AM UTC+2, Шаманов Алексей wrote:
>
> Hello.
> I have to import large amount of data from csv-files with some additional
> work on their structure.
> I try
> reader = csv.
update appadmin.py from the latest master repo...
On Saturday, September 12, 2015 at 10:37:56 PM UTC+2, St. Pirsch wrote:
>
> There is an 404 while loading the admin editor /admin/edit/app/views/
> which becomes visible when opening the tab on the bottom.
> Is there a way to avoid this?
> Tables
You can get it in:
auth.user.username
auth.user is stored in session when the user logs in. Hence the first time
you do this you may need to logout and login again to have the username
stored there.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/
do i have to use HTTP_AUTHORIZATION with WSGIPassAuthorization On ?
Le mardi 15 septembre 2015 11:52:34 UTC+2, Laurent Lc a écrit :
>
> Hi,
>
> a part of my db.py is :
> .
> .
> from gluon.tools import Auth, Service, PluginManager
>
> auth = Auth(db)
> service = Service()
> plugins = PluginManager
Hi,
a part of my db.py is :
.
.
from gluon.tools import Auth, Service, PluginManager
auth = Auth(db)
service = Service()
plugins = PluginManager()
auth.define_tables(username=True)
auth.settings.create_user_groups=False
.
.
I would like to get the session's username and use it for reseaching
Richard is right, using Ractive.js allows the creation of SPA easily. Much
more effective than angular due to a saner template design that limits the
number of new attibutes to learn. And the DOM is faster to update by
design. The only missing part is the AJAX communication that requires you
to
Thanks!!!I use the link
wget http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
chmod +x setup-web2py-ubuntu.sh
sudo ./setup-web2py-ubuntu.sh
but doesn't work..I use your script and work!!!Thanks!
On Thursday, October 17, 2013 at 11:55:16 PM UTC+2, rustytu...@gmail.com
wrote:
>
>
Many thanks Leonel for the quick answer which works..!
Thanks again, Ed.
--
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 becaus
Hey Edward,´
Instead of doing this
form.element(_id='txn_editor_account_id')['_value'] = 1
Before the SQLFORM call do this:
db.txn_editor.account_id.default = 1
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://c
The following html fragment is generated by SQLFORM.grid (create form)
CashSale
The following code in my controller action successfully sets the select
value = 1.
form.element(_id='txn_editor_account_id')['_value'] = 1
But the displayed widget remains blank?
What can I do to
Dmitry as far as I know this error only happens in a very specific situation
1. You're using Apache.
2. You're using Microsoft Windows.
3. You have more than one web2py virtualhost.
This is absolutely the worst setup imaginable, I do not support degrading
the performance for everyone e
Hi, I have to install web2py application on Apache Server. I see this page
http://web2py.com/books/default/chapter/30/11/ricette-per-linstallazione-e-la-distribuzione#Ricette-per-l-installazione-e-la-distribuzione
I download apache and use the command
*wget http://web2py.googlecode.com/sv
The included web2py's scheduler already supports job graphs, Simone Niphlod
really did an amazing job with it, you should try it and see if it fits
your purpose before using outside tools that don't integrate with web2py so
seamlessly.
--
Resources:
- http://web2py.com
- http://web2py.com/book
I've uploaded a file from static and I want to download it when I click on
a link. I've searched but I didn't find anything relevant.
I've managed just to open the file with the following command:
{{=T('Download
abc')}}
Is there a solution?
--
Resources:
- http://web2py.com
- http://web2py.
39 matches
Mail list logo