I get the impression web2py.com is not maintained these days - I see an
award from 2012, a broken button (This button could not be generated. Help
https://www.coinbase.com/external_redirect?link=https%3A%2F%2Fsupport.coinbase.comsignature=2b3e71a85b300325118665602b21e9470c9ce414),
and looks
?
On Tuesday, May 26, 2015 at 3:59:38 PM UTC+2, Richard Penman wrote:
I wasn't using the scaffolding app, just setting the formstyle and
then checking the user login/register forms.
On Sat, May 23, 2015 at 2:58 AM, Niphlod nip...@gmail.com wrote:
uhm. could you point out what
Because the first examples used a different attribute:
auth.settings.login_verify_password = False
On Saturday, August 25, 2012 at 9:56:33 PM UTC+8, Alec Taylor wrote:
Hmm, that worked this time... not sure what happened last-time. Maybe
I had put the code in the wrong section of the file?
Hello,
Is there a working boostrap3 formstyle for auth?
I tried:
auth.settings.formstyle = 'bootstrap3'
auth.settings.formstyle = SQLFORM.formstyles.bootstrap3_stacked
auth.settings.formstyle = SQLFORM.formstyles.bootstrap3_inline
All of these added bootstrap3 to the form but some parts were
well, here is a temporary workaround:
auth.settings.remember_me_form = False
auth.settings.register_verify_password = False
On Friday, May 22, 2015 at 3:34:03 PM UTC+8, Richard Penman wrote:
Hello,
Is there a working boostrap3 formstyle for auth?
I tried:
auth.settings.formstyle
Hello,
is there documentation about how to create a custom widget?
The autocomplete example in the book is quite limited:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Widgets
Basically I want to create a custom CAPTCHA for my form.
Looking at the existing Recaptcha class I
Hello,
I used the recipe here for installing web2py on webfaction with nginx and
uwsgi:
https://community.webfaction.com/questions/7193/install-web2py-with-nginx-and-uwsgi
It worked great for me before but now have some problems.
I copied uwsgihandler.py from handlers/ directory but get this
Hello,
I noticed the encoding type for all forms is multipart/form-data rather
than application/x-www-form-urlencoded. Is there a reason for this? My
understanding is the form-data encoding is useful for file uploads and when
transferring large amounts of non-alphanumeric data, but otherwise
at 3:32:31 PM UTC+8, Richard Penman wrote:
Do you happen to have made a script that can login to web2py?
It looks quite complex because have to manage the _formkey and login form
uses multipart/form-data instead of application/x-www-form-urlencoded.
I have this working solution using
Do you happen to have made a script that can login to web2py?
It looks quite complex because have to manage the _formkey and login form
uses multipart/form-data instead of application/x-www-form-urlencoded.
I have this working solution using mechanize:
br = mechanize.Browser()
Hello,
my database table defines 'format' - what is the proper way to use this in
a view?
Currently I have been using what I found in internals of SQLFORM:
db.tablename._format(record)
Richard
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Hello,
how is the default app set on GAE?
In routes.py I have default_application = 'places' but still redirects to
welcome.
app.yaml states:
# Warning! Static mapping - below - isn't compatible with
# the parametric router's language logic.
# You cannot use them together.
I have
Was this threading problem resolved?
On Saturday, August 18, 2012 7:15:37 AM UTC+2, Massimo Di Pierro wrote:
I am pretty sure web2py does not put those variables in global namespace
but there is some extra logic for GAE that was written with some stronger
assumptions. Will take a look.
Would be worth mentioning this in the book.
On Saturday, January 4, 2014 3:25:17 AM UTC+1, Massimo Di Pierro wrote:
It is in handlers/gaehandler.py
There reason we moved is that we do now want to pollute the main folder
and we do now want to overwrote any changes you may have to make to it
Try putting something like this in your controller to detect and ban IP
addresses that download too fast:
# block malicious crawlers that download too fast
BAN_IP_TIME = 60
I created a simpler system just counting requests and then blocking when
exceeded maximum in a time frame:
http://www.web2pyslices.com/slice/show/1991/block-fast-bots
On Friday, May 10, 2013 1:36:22 AM UTC+2, Derek wrote:
I've read an idea about using a 'ticket' system... each session gets X
I usually use nginx / uwsgi but just tried comparing the cherokee setup.
The admin has changed quite a lot since the book was written.
For running admin the web2py book has this:
sudo nohup cherokee-admin
However this will block displaying the admin login password, so need this
instead:
sudo
hello,
I set up a uwsgi / nginx server using
the setup-web2py-nginx-uwsgi-ubuntu.sh script.
However I find when the app tries to start a sub-process I get this error:
Fatal Python error: Couldn't create autoTLSkey mapping
I read around and apparently this can happen when lack of memory.
Do
I have had an app running for a few months and recently could not connect
to (nginx) server. Then after restart got this error:
RuntimeError: table appears corrupted
If I add migrate=False,fake_migrate=True to DAL then app works. But when
remove this error returns.
Any idea what is going
Interesting development. This seems to address the common criticisms of
web2py, which aren't an issue for me but surely deter others.
On Friday, November 30, 2012 3:51:20 AM UTC+11, LightDot wrote:
Some valid and interesting questions can get unanswered, slip below
the radar, that's bound
-linux-i686.egg')
It will make the path longer at every http request.
If MCryption is pip installed. web2py should just see it.
On Wednesday, 14 November 2012 22:28:30 UTC-6, Richard Penman wrote:
I installed a module with pip to:
/home/www/lib/python2.6/M2Crypto-0.21.1-py2.6-linux-i686.egg
Having trouble migrating with postgres.
With fake_migrate=True the the .table files are created.
If migrate=True then error: auth_user already exists.
Tried all combinations of these and deleting and removing .table files, but
no joy.
Is web2py meant to support modify the tables with
I installed a module with pip to:
/home/www/lib/python2.6/M2Crypto-0.21.1-py2.6-linux-i686.egg
When using python directly I can import this module. How should I help
web2py find this?
For now I have this in my model:
import sys
processes - or is there a better way?
On Thursday, November 1, 2012 3:45:28 PM UTC+11, Massimo Di Pierro wrote:
Please use the scheduler.
On Wednesday, 31 October 2012 21:56:47 UTC-5, Richard Penman wrote:
Hello,
I create a new process after each form submission to parse some data
Hello,
I create a new process after each form submission to parse some data:
subprocess.Popen(['python', parser_script],
cwd=os.path.dirname(parser_script))
(The parser_script is independent of web2py)
This parsing can take days and multiple parsers need to be executed at once.
However if the
Is there a more minimal bootstrap based app available?
This one is great but relies on dozens of module functions.
On Friday, August 24, 2012 4:48:03 AM UTC+10, Martin.Mulone wrote:
Twitter Bootstrap scatfolding application *updated.
Now is awesome :-P
* Now based on version 2.1.0 (sync)
Is there an existing app / plugin that supports selecting a file from the
server?
Specifically I want to select a filepath from the /static/ directory and
sub-directories.
Richard
--
Hello,
I made this web2py app for selling digital data via PayPal:
http://sitescraper.net/data
Would appreciate feedback. If you are interested it is hosted on webfaction
with nginx for the static content and uwsgi for web2py.
Blog was generated with jekyll.
If there is enough interest I can
How can I apply auth control to an entire controller rather than decorators
for each function?
http://web2py.com/books/default/chapter/29/9#Authorization
--
I mean is there a better way than something like:
if not auth.has_membership('admin'):
session.flash = 'You are not part of the admin group'
redirect(URL(r=request, c='default', f='index'))
--
yes quite hostile:
the smartest web hackers I know universally regard web2py as a
fundamentally incorrect way to approach web developmentābut usually say so
in far more colorful terms.
web2py appears both bad and unpopular to me
I exported a table from sqlite with:
open(filename, 'w').write(str(db(db.category.id).select()))
Output file looks as expected.
And then I tried importing into postgres with:
db.category.import_from_csv_file(filename)
Each row was inserted but all values are NULL.
Any ideas?
Version 1.99.4
I want to embed web2py forms in a static website (same domain) and keep the
static part as simple as possible.
Currently I have this in the static website:
div id=form/div
script
type=text/javascript$(#form).load(path/to/web2py/app);/script
And this in the web2py app:
def email():
script
someone created a nice script for setting up web2py with nginx and uwsgi on
webfaction:
http://community.webfaction.com/questions/7193/install-web2py-with-nginx-and-uwsgi
Works well. Hopefully gets officially supported by webfaction.
34 matches
Mail list logo