I wrote my own default.py file starting from scratch, but I retained
the user() function:
def user():
return dict(form=auth())
Everything else in the file is new or modified.
The registration, login forms load fine, but I am unable to register a
new user. The page just seemed to reload and
Update: I tried to add a new user using appadmin but it doesn't work
either.
I'm using 1.99.4 stable
On Dec 29, 4:01 pm, lyn2py lyn...@gmail.com wrote:
I wrote my own default.py file starting from scratch, but I retained
the user() function:
def user():
return dict(form=auth())
RESOLVED.
It was a missing = sign in layout.html:
script src={{**=**URL('static','js/application.js')}}/script
Who knew an = could be the cause of it... Fortunately there is
Firebug.
Sorry for the noise.
On Dec 29, 4:08 pm, lyn2py lyn...@gmail.com wrote:
Update: I tried to add a new user
Hi guys, i installed web2py on my shared hosting a/c and configured a
index.py as CGI/FASTCGI gateway and then configured .htaccess to send all
traffice thru this index.py but it seems to be working slower than PHP.
i complied the app and set migrate=False to disable migration and tried
again
When I start web2py I have message:
Internal server error, and link to ticket but I can't open ticket...
And often it is happen that I can't close web2py server just stay on
desktop and I can't close the server window.
after installing and navigating to myapp/plugin_jstree I got this errorinvalid
view (plugin_jstree/index.html)
See Multiple login forms at the end of this
section:
http://web2py.com/books/default/chapter/29/9#Other-login-methods-and-login-forms.
There's also:
http://www.web2pyslices.com/slices/take_slice/124
http://www.web2pyslices.com/slices/take_slice/28
Anthony
On Thursday, December 29, 2011
Thanks Anthony. You should add the lambda hint should be added to your
StackOverflow answer.
Already done.
On Thursday, December 29, 2011 8:14:00 AM UTC-5, Kenny Meyer wrote:
Thanks Anthony. You should add the lambda hint should be added to your
StackOverflow answer.
Looks excellent! I'll have use for these in my next project and I'll
definitely post feedback.
Your plugins are greatly appreciated. I'm currently using solidtable,
paginator, suggest widget and tablecheckbox on a project and these have
simplified my work tremendously. I only had to modify
Hi all,
As much as I'm happy to reach the front page of hacker news with
minnaedu.appspot.com, it threw me out of the free limits of GAE. What
surprised me was that when the number of visitors to the page was just 500
there are just 2 posts (basically this was a blog engine), I already
Yes, indeed it works like a charm... We are switching DIVs into a table
format, but everything else is good... Thank you Paolo!
A.
I guess the error you see is in welcome app (the default one),
you can access ticket from admin app http://localhost:8000/admin
Great, thanks.
I think you need to look into keyed table into the book or legacy database
where it talks id key different from surrogate (artificial key id) that
web2py use internally for relation...
Richard
On Thu, Dec 29, 2011 at 1:55 AM, JF jf_sic...@hotmail.com wrote:
I think this information was
Hi,
Is it possible to allow normal login in addition to login via RPX (janrain
engage)?
If I activate RPX, I cannot register through the normal process.
Is it possible to keep the normal login as well as the RPX one?
Best regards,
Thomas
This run on localhost. www.ereceips-server.com is redirected inside the
Windows hosts files (to localhost).
In 1st case (without transport=) all works.
In 2nd case I just added transport=xmlrpclib.Transport(). But this is just
instance of the basic class Transport(), not my own
Hi all, I and Yusuke Kishita had developed jsTree and MPTT plugins
which manages tree structured data, and now published them on our
web2py plugin site with demos and codes:
[jsTree Plugin]
http://dev.s-cubism.com/plugin_jstree
[MPTT Plugin]
http://dev.s-cubism.com/plugin_mptt
The MPTT
Bruce,
On Dec 26, 5:06 pm, Bruce Wade bruce.w...@gmail.com wrote:
I honestly don't understand what the big deal is. It is a little single
line at the bottom of the page. Packt provides your FULL address on the
bottom of their books, when buying from their site.
Did you read the subject line
The plugin has all needed libraries to work and not requires that you
install others.
I used it in a my app and worked like a charm.
Give it a try.
Hi Massimo,
On Dec 26, 4:29 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
OK. It is now black and smaller.
Great - thank you!
--
PhilK
The question is here:
http://stackoverflow.com/questions/8668379/asynchronous-background-processes-with-web2py
Please, consider answering on StackOverflow so the community can value your
answers.
looks great, thanks
btw the title Web2py Example Appliances is a dead link
On Dec 28, 4:41 pm, Khalil KHAMLICHI khamlichi.kha...@gmail.com
wrote:
Good work.
If I read the state dump correctly, your site is running over CGI, the
slowest possible way to host a Python website. CGI starts a new
process for each request. This is fine for PHP, since the PHP runtime
starts up very quickly. The Python virtual machine, however, starts up
much more slowly.
I
thanks buddy! for the insight. let me see whats available with my host ;)
On Fri, Dec 30, 2011 at 1:32 AM, spiffytech spiffyt...@gmail.com wrote:
If I read the state dump correctly, your site is running over CGI, the
slowest possible way to host a Python website. CGI starts a new
process for
Ping!
computed field not compute on update... What should I check?
Thanks
Richard
On Wed, Dec 28, 2011 at 4:50 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Hello,
I would like to compute a field on update, but I think all the
request.vars needed to my lambda compute function are
Just ran across this today. Is this new, or am I reporting old news?
http://www.youtube.com/playlist?list=PL5E2E223FE3777851
It says that it had been publish the 23 of december... So not to old :)
It seems interresting.
Richard
On Thu, Dec 29, 2011 at 3:54 PM, Jim Steil j...@qlf.com wrote:
Just ran across this today. Is this new, or am I reporting old news?
OK. Thanks for the reply!
I guess I can set readable=True in my controller for the functions I need.
Can you identify the cause of the problem? is it css related?
On Dec 29, 12:47 am, lyn2py lyn...@gmail.com wrote:
Hi Massimo,
1.99.4 stable
The db stats in response.toolbar is one long single line, which is
less readable than 1.99.2 (a lot of scrolling).
Perhaps the readability can be
This is most likely a problem with accessing file system. what os?
On Dec 29, 11:49 am, miroslavgojic miroslavgo...@gmail.com wrote:
When I start web2py I have message:
Internal server error, and link to ticket but I can't open ticket...
And often it is happen that I can't close web2py server
It may css related because I don't have any problem with my own css that
come from older web2py version (one line per db request).
Richard
On Thu, Dec 29, 2011 at 4:41 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Can you identify the cause of the problem? is it css related?
On
Here is a way of editing records with non id fields:
In the view construct a URL with the record's field value:
{{ =A(edit, URL(controller, edit function, table name,
field value)) }}
Then, on the controller, you have to get the record by the field
value:
r = db(db[request.args(0)].field name
after installing and navigating to myapp/plugin_jstree I got this
errorinvalid view (plugin_jstree/index.html)Sorry, I should have noted that
the plugin requires response.generic_patterns = ['*'] (See db.py in
welcome application of the latest version of web2py) to show the demo. (And
after installing and navigating to myapp/plugin_jstree I got this
errorinvalid view (plugin_jstree/index.html)
Sorry, I should have noted that the plugin requires
response.generic_patterns = ['*'] (See db.py in welcome
application of the latest version of web2py) to show the demo. (And
also
I would think that it is related to HTML (div wrappers or table
width), the table column width seems to be infinite in
WelcomeApp(v1.99.4 - which is the new layout):
tdpreSELECT .../pre/tdtd0.43ms/td
The column expands to fit SELECT ... (the actual database code used
to query, in my case, sqlite)
I recently registered updated my custom domain to display in the url
instead of the my google.appspot domain. However the appspot.domain
still shows up on google searches, and i want them to show the custom
url.
it is probably best just to check the site.
if you type the url:
I've set showbuttontext=False but all i get are tiny buttons without any of
the default icons. Did I miss anything during the upgrade?
Thanks for sharing, I'll watch the videos when I get the chance.
On Dec 30, 4:54 am, Jim Steil j...@qlf.com wrote:
Just ran across this today. Is this new, or am I reporting old news?
http://www.youtube.com/playlist?list=PL5E2E223FE3777851
In controllers, it would look like:
@auth.requires_login()
def function():
pass
How do I implement requires_login (and other auth decorators)
correctly in module methods that require access control?
Thanks!
i have a little programming with web2py, with import some library from
python-apt...
i want to show output from some command/function from that library to
the web page..
Output from that script showing on console, not showing on web page,
but only result on return value (True / false) send to web
Access control decorators are designed to work in controller actions only,
because actions define workflow of the application, even if you have code
in modules, the action is what your user will call.
But, you can always use other methods to check permissions etc..
in modulesyou can do [
You can try something like this
Create a module auth.py
begin module auth.py -
def requires_login():
def lazy(f):
def lazylazy(f=f):
from gluon import current, redirect, URL
if not current.session.auth or not
I think it is excellent to use modules, Bruno.
Can you provide some guidance or url where I can learn how to do it in
modules rather than models?
Thank you, I appreciate your suggestions.
On Dec 30, 1:22 pm, Bruno Rocha rochacbr...@gmail.com wrote:
Access control decorators are designed to
Thank you Massimo, my functions/methods takes arguments, so I will try
Bruno's method.
On Dec 30, 1:42 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
You can try something like this
Create a module auth.py
begin module auth.py -
def requires_login():
def
Christian,
Did you manage to write this? I am looking for optimizing the GAE. Would
appreciate your inputs.
Thanks,
Joseph
Does MARKMIN have issues with processing newlines?
Because I can't use formatting here, everything looks like the same
text, but in MARKMIN the formatting is ok, only the newlines is not
ok.
(1) I noticed that newlines don't convert to br in MARKMIN, which is
strange.
Example:
I write this
in
47 matches
Mail list logo