I want to make an added username field of a custom auth_user table
writeable with registration.
This is how the custom non writeable field is defined:
db.Field('username', length=32, label="User Name",
writable=False,),
The require attribute is added externally:
table.username.requires =
Hi,
in hand-writing links (not using A, for example), what is the correct
way to map urls? Like, I'm on the the page
http://localhost:8000/myapp/user/login
I wanto to simply link http://localhost:8000/myapp/posts/show/, but:
1. linking "/posts/show/" will go to http://localhost:8000/posts/show/
i did that with the URL tag. :-)
On 16 Set, 10:57, pistacchio wrote:
> Hi,
> in hand-writing links (not using A, for example), what is the correct
> way to map urls? Like, I'm on the the
> pagehttp://localhost:8000/myapp/user/login
>
> I wanto to simply linkhttp://localhost:8000/myapp/posts/sho
Hi all,
There is a problem with "onvalidation" - it works only after redirect
unless the form object is explicitly given:
onvalidation = assign_some_value_to_a_var(form)
Is this a bug or the new behavior of "onvalidation"?
--~--~-~--~~~---~--~~
You received this
Thank you, Massimo.
I forgot to mention the "uploads" directory, GAE does not use the
filesystem, which makes it useless.
On Sep 12, 5:20 pm, mdipierro wrote:
> true. uploading to trunk
>
> On Sep 12, 4:22 am, Vidul Petrov wrote:
>
>
>
> > Hi,
>
> > I noticed thatapp.yamlcould be improved to
Thanks :)
Maybe today, I'll also publish the code on github :P
On Sep 16, 4:00 am, Alex Fanjul wrote:
> Nice Service Jon!!!
> I'll give it a try with my blog...
> Alex F
>
> El 24/08/2009 17:53, Jon Romero escribió:
>
> > Hello, I've built OpenShare (http://openshare.emotionull.com) using
> > we
Can you show an example of what you mean? I do not think what you say
is the case.
On Sep 16, 5:22 am, Vidul Petrov wrote:
> Hi all,
>
> There is a problem with "onvalidation" - it works only after redirect
> unless the form object is explicitly given:
>
> onvalidation = assign_some_value_to_a_v
Hi to all.
Sorry but I'm in need of an Italian developer so I write in italian.
^___^
Sono alla ricerca di uno sviluppatore (possibilmente libero
professionista) un poco scafato in grado di fare un (relativamente)
grosso lavoro per una ditta che si occupa di insonorizzazioni.
La ditta è nella z
Hi Anthon (& list members)
I am updating this wiki page :
https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-9cbd55701ae6
(Errata for web2py 2nd Edition Book)
Please accumulate all feedback/errors/corrections in one place to
simplify editing the next rev of the book by Massimo
Hi ionel,
the reason is formating of my email sent to list i apologize for that
(google bold chars...)
that "*" should not be entered, anyway here is correct config file
(designer/js/config.js)
---
For example, in model I do this:
db.define_table('unidades',
SQLField('sigla','string', length=3, default=''),
SQLField('descricao','string', length=150, default=''),
migrate=False)
db.unidades.sigla.requires=IS_NOT_EMPTY()
db.unidades.descricao.requires=IS_NOT_EMPTY()
unidades_labels
Hi Achipa or Kacper,
I noticed that in gluon/contrib/cron.py rev1189, a pair of lines in
previous rev as:
if task['min'] > -1 or ctype == 'ext':
go = False
are changed into:
if ctype == 'ext':
go = False
Though I don't fully understand the purpose of the former, but at
least the l
the proper way to set labels in forms is
db.table.field.label=T("")
On Sep 16, 9:20 am, Leandro - ProfessionalIT
wrote:
> For example, in model I do this:
>
> db.define_table('unidades',
> SQLField('sigla','string', length=3, default=''),
> SQLField('descricao','string', length=150,
I am running WSGI on a subdirectory of my home, however you have to run it
as the root of the domain (unless you want to try and get fancy with apache
conf.)
Basically what I did, was map a subdomain to a directory that stores my
website instance.
so i have
thadeusb.com = /home/thadeusb.com
for
It sounds like if I'm doing production work, I should stick to web2py core.
On Tue, Sep 15, 2009 at 11:45 PM, mdipierro wrote:
>
> t2 was a proof of concept. Almost everything that was in t2 is not in
> web2py core (from gluon.tools import *). The syntax is a little
> different by much more powe
yes
On Sep 16, 10:26 am, david bain wrote:
> It sounds like if I'm doing production work, I should stick to web2py core.
>
>
>
> On Tue, Sep 15, 2009 at 11:45 PM, mdipierro wrote:
>
> > t2 was a proof of concept. Almost everything that was in t2 is not in
> > web2py core (from gluon.tools impor
hello,
I have a sample function.. what will response.flash do ? I do not
see any output from either the if or the else statement.
def newform():
form = FORM("your name:",
INPUT(_name="yourname",requires=IS_NOT_EMPTY()),
INPUT(_type="submit"))
if for
can you please check in trunk if this is fixed?
On Sep 10, 4:34 pm, Chris S wrote:
> I've been paying with some of the example apps and run across an
> oddity in the 'Views'.
>
> When I create a view, for example: default/index.html
> It shows up in the list as: default\index.html
>
> When I try
Are you using the default layout.html? If not, is there anything like
{{=response.falsh or 'no flash'}} in the layout?
On Sep 16, 11:23 am, Arvind wrote:
> hello,
>
> I have a sample function.. what will response.flash do ? I do not
> see any output from either the if or the else statement.
Will this always be the case?
Will there be a stable "t-something" in the future? Or are the t
projects proving grounds for technologies that eventually get into
core?
On Wed, Sep 16, 2009 at 11:06 AM, mdipierro wrote:
>
> yes
>
> On Sep 16, 10:26 am, david bain wrote:
>> It sounds like if I'm
There are some things people have asked from web2py:
1) ability to save file in database and not filesystem
2) a better wiki
3) a cms that runs on GAE
T3 tried to address 1 and 2. We soon realized a lot of its functions
did not belong in T3 but to core. With T4 I am starting again,
possibly addre
Why I love Web2Py ? because this ! simple and elegant !
Perfect Massimo !.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsu
Massimo,
Thanks for the update, this helps to give some perspective.
On Wed, Sep 16, 2009 at 11:55 AM, mdipierro wrote:
>
> There are some things people have asked from web2py:
> 1) ability to save file in database and not filesystem
> 2) a better wiki
> 3) a cms that runs on GAE
>
> T3 tried to
Thank you for the information on setting up web2py using WSGI.
I have thing somewhat working on using FastCGI within subdirectories
by using .htaccess and dispatch.cgi.
The only problem I think I'm having with getting web2py working in a
subdirectory with FastCGI is that the URL is missing the su
1: how do i file a bug?? put a link to file a bug prominently on the
web2py site please... OK so here i guess is a bug report id be glad to
add to whatever issue tracking system you have... i started web2py
from eclipse with -a '', on the site i signed up as a new
user, after that all the admin op
This is an excellent to report a bug. It is now fixed in trunk.
Thank you.
Massimo
On Sep 16, 12:23 pm, AndrewLoot wrote:
> 1: how do i file a bug?? put a link to file a bug prominently on the
> web2py site please... OK so here i guess is a bug report id be glad to
> add to whatever issue track
For example:
# this works:
def create_image():
...
if form.accepts(request.vars, session,
onvalidation = assign_estate_id(form)):
# this does not work until the "delete_image" method redirects to the
"create_image" method:
if form.accepts(request.vars, session,
I've read through the manual about GAE deployment. I'm under the
impression I can take my currently running development copy (using
MySQL), switch the DAL to GAE and then do an explort/import of my
databases via appadmin. However, I'm having a problem getting to the
Appadmin (or admin in read on
I need to see the assign_estate_id source and the full body of
controller actions.
I do not think this is a bug, I think this a workflow issue.
Or are you saying it behaves differently on GAE and non-GAE?
Massimo
On Sep 16, 1:32 pm, Vidul Petrov wrote:
> For example:
>
> # this works:
> def c
Try remove
if remote_addr not in hosts:
raise HTTP(400)
in youapp/controllers/appadmin
Massimo
On Sep 16, 1:51 pm, Chris S wrote:
> I've read through the manual about GAE deployment. I'm under the
> impression I can take my currently running development copy (using
> MySQL), switch the D
That gives the following error: for /welcome/appadmin/index
In FILE: /base/data/home/apps/aionprofessions/1.336383874445587234/
applications/welcome/controllers/appadmin.py
Traceback (most recent call last):
File "/base/data/home/apps/aionprofessions/1.336383874445587234/
gluon/restricted.py",
It's not a GAE issue.
The controller's code:
# coding: utf8
#
## This is a samples controller
## - index is the default action of any application
## - user is required for authentication and authorization
## - download is fo
Ok I can get to /welcome/appadmin by commenting out:
#if not gluon.fileutils.check_credentials(request):
#redirect('/admin')
in welcome/controllers/appadmin.py
That 'works' however now I guess I'm back to questioning how I can
control access of this directory to only me?
I still can't get t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I returned to examine the problem more deeply, but now it behaves
differently and I do not know why, I do not remember any change, which
could cause the change.
Now the error_handler entry in routes.py seems to be completely ignored.
I tried
Sorry if you're in the midst of changing something. I just updated
and got this while creating an app with a fresh checkout of web2py
from svn.
Error traceback
Traceback (most recent call last): File "C:\web2py-read-only\gluon
\restricted.py", line 178, in restrictedexec ccode in environmen
Has anyone successfully been able to store and retrieve uploaded files
in a place other than applications/myapp/uploads? A subdirectory under
uploads is OK. I want to store user files in applications/myapp/
uploads/userid/file.jpg or some variant of that, and then enable users
to also download the
Oh, I am using Windows and Python 2.5
On Sep 16, 3:48 pm, "mr.freeze" wrote:
> Sorry if you're in the midst of changing something. I just updated
> and got this while creating an app with a fresh checkout of web2py
> from svn.
>
> Error traceback
> Traceback (most recent call last): File "C:\w
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Here:
http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html
they say: "To find out the symbol value when you want to drop a foreign
key, use the SHOW CREATE TABLE statement."
David
mdipierro napsal(a):
> One more reason to hav
Hello
Say i have a HTML form that takes in values and stores in JS
variables.
Is it possible to convert the JS variables to an XML file.
Example:
Input:
Name
Salary
Tax on Salary
Generate XML (button)
Output hello.xml
Ben
1>
500
etc.,
--~--~-~--~~~---~
You will see that even with those lines commented, if you logout from
google or if you login with a different google account you will not
have access to appadmin.
On Sep 16, 2:17 pm, Chris S wrote:
> Ok I can get to /welcome/appadmin by commenting out:
>
> #if not gluon.fileutils.check_credentia
Currently the only way to achieve this is:
1) move the file after has been uploaded
2) write your own download controller so that file can be retrieved.
On Sep 16, 3:52 pm, weheh wrote:
> Has anyone successfully been able to store and retrieve uploaded files
> in a place other than applications/
Sorry. Please download and try again
On Sep 16, 4:00 pm, "mr.freeze" wrote:
> Oh, I am using Windows and Python 2.5
>
> On Sep 16, 3:48 pm, "mr.freeze" wrote:
>
> > Sorry if you're in the midst of changing something. I just updated
> > and got this while creating an app with a fresh checkout o
Take a look at the routes.py, I don't know much about it, but there is
documentation on it in the book.
-Thadeus
On Wed, Sep 16, 2009 at 12:20 PM, rppowell wrote:
> e verified that going to
> http://www.rppowell.com/web2py/welcome/default/index
> works; it returns valid HTML,
>
--~--~--
Thank you and keep up the good work.
ionel
On Sep 16, 10:02 am, Boris Manojlovic
wrote:
> Hi ionel,
>
> the reason is formating of my email sent to list i apologize for that
> (google bold chars...)
> that "*" should not be entered, anyway here is correct config file
> (designer/js/config.js)
#In routes.py
routes_in=(('/web2py/(?P.*)','/\g'),)
routes_out=(('/(?P.*)','/web2py/\g'),)
On Sep 16, 5:11 pm, Thadeus Burgess wrote:
> Take a look at the routes.py, I don't know much about it, but there is
> documentation on it in the book.
>
> -Thadeus
>
> On Wed, Sep 16, 2009 at 12:20 PM, rp
Oh that's great, I didn't think about the fact that I was already
logged in.
I've also found that removing from applications/admin/controlers/
access.py
the line with: check_credentials(request)
Allows me to access the admin screen now. However, what I really
wanted was the shell (I couldn't im
On Sep 16, 2009, at 1:18 PM, David Zejda wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello,
>
> I returned to examine the problem more deeply, but now it behaves
> differently and I do not know why, I do not remember any change, which
> could cause the change.
>
> Now the error
On Wed, Sep 16, 2009 at 3:24 PM, Markus wrote:
>
> Hello
>
> Say i have a HTML form that takes in values and stores in JS
> variables.
>
> Is it possible to convert the JS variables to an XML file.
>
> Example:
>
I don't understand why you want to save the JS variables.
In web2py in your contro
I have fixed my own problem. I had a spelling mistake; 'writable' does
not have an extra e in it!
Upon fixing the problem I needed to make a slight adjustment to the
code to make it work properly. If there are no arguments to the user
function then a redirection to user/login (even if logged in a
It does. I also noticed that if I rearrange the order and put Suggest
on top, it works, but Autocomplete does not.
On Sep 15, 9:28 pm, "mr.freeze" wrote:
> Yes, I believe it is a conflict between the plugins. Does this work?:
>
>
> $(function() {
> alert('one');
>
Hi there,
Has anyone developed a form builder as an appliance? Something that will
allow administrators to create forms and then build reports from the
inputted data?
Thanks for your time.
Tim McNamara
http://www.timmcnamara.co.nz
http://twitter.com/timClicks
--~--~-~--~~--
currently I save uploaded files to an external hard drive, and to
avoid additional I/O operations I use uploadfield=False. Then I save
the file with:
Field('model', type='upload', uploadfield=False, requires=IS_NOT_EMPTY
())
...
gluon.fileutils.copystream(request.vars.model.file, open
(model_file
You can file bug reports at the Google Code page:
http://code.google.com/p/web2py/issues/entry
Maybe a link could be added there from the support page:
http://web2py.com/examples/default/support
Richard
On Sep 17, 3:23 am, AndrewLoot wrote:
> 1: how do i file a bug?? put a link to file a bug
yeah URL() is the best way.
Your previous problem was because "posts/show/" is a relative link
from the current page, while "/posts/show/" is an absolute link to the
root of the server.
Richard
On Sep 16, 7:47 pm, pistacchio wrote:
> i did that with the URL tag. :-)
>
> On 16 Set, 10:57, pista
https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-...
ack that's an ugly URL. Has whoever is maintaining the wiki considered
using the title of the page like Mediawiki?
Richard
On Sep 16, 11:10 pm, Anand Vaidya wrote:
> Hi Anthon (& list members)
>
> I am updating this wiki
The current shell does not work on GAE for one reason. Shell requires
to maintain its state between requests and its state is not
serializable therefore it cannot be maintained on GAE. I will look
more into this.
On Sep 16, 5:40 pm, Chris S wrote:
> Oh that's great, I didn't think about the fact
Or more precisely, there are some lines like these in the default
layout.html:
{{if response.flash:}}
{{=response.flash}}
{{pass}}
By the way, I think this kind of problem should be double confirmed
via the out-of-box "welcome" app, before being raised up. If the
problem
My bad.
the error_handler is only used when you search for an app that does
not exist.
To redirect from an error in an existing application (any app */ any
error *) use the following routes.py
routes_onerror = [('*/*', '/error/default/index')]
On Sep 16, 3:18 pm, David Zejda wrote:
> -BEGI
I believe the error is in the test not the routing code.
On Sep 16, 5:46 pm, Jonathan Lundell wrote:
> On Sep 16, 2009, at 1:18 PM, David Zejda wrote:
>
>
>
>
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
>
> > Hello,
>
> > I returned to examine the problem more deeply, but now it beha
import gluon.contrib.simplejson as json
from gluon.serializers import xml
js_string="{'test':2}" # or other JS string
xml_string=xml(json.loads(js_string))
On Sep 16, 8:57 pm, Markus wrote:
> I dont want to use Web2Py.
>
> I want to compute in JS, based on a HTML form input and generate an
>
no, but there is a retrieve_username.
Mind that web2py knows how to handle a field called username. Have you
tried just the following?
...
Field('username', length=32, label="User Name")
...
db.auth_user.username.requires = [IS_LENGTH(minsize=3,
error_message="Three or more characters req
I dont want to use Web2Py.
I want to compute in JS, based on a HTML form input and generate an
XML document.
Is it possible to convert JS to XML?
On Sep 16, 6:49 pm, Wes James wrote:
> On Wed, Sep 16, 2009 at 3:24 PM, Markus wrote:
>
> > Hello
>
> > Say i have a HTML form that takes in values
Cool thanks. Is there a workaround you would suggest for now for
people like me that are testing/learning with these database calls?
It's very handy to be able to test and see what type of object(s) a
call returns. Though I guess for now I can output my results on a
HTML page and see what's in i
No but it would be really nice. If done right the same code would be
use to build tables (models) and forms.
Massimo
On Sep 16, 7:24 pm, Tim McNamara wrote:
> Hi there,
> Has anyone developed a form builder as an appliance? Something that will
> allow administrators to create forms and then bu
Do you mean something like this?
http://web2py.appspot.com/survey/survey/index
On Sep17, 8:24am, Tim McNamara wrote:
> Hi there,
> Has anyone developed a form builder as an appliance? Something that will
> allow administrators to create forms and then build reports from the
> inputted data?
>
>
On Sep 17, 2:13 pm, Iceberg wrote:
> Do you mean something like this?
Probably. Email notifications weren't working when I tried 2m ago.
> On Sep17, 8:24am, Tim McNamara wrote:
> > Hi there,
> > Has anyone developed a form builder as an appliance? Something that will
> > allow administrators t
Ok. try this:
db.table.field.uploadfolder=od.path.join(request.folder,"uploads/
somewhere")
reuires trunk. folder somewhere must exist.
On Sep 16, 7:24 pm, Richard wrote:
> currently I save uploaded files to an external hard drive, and to
> avoid additional I/O operations I use uploadfield=Fal
I think we can do better than that. Like this for example:
http://www.phpform.org/
On Sep 16, 9:13 pm, Iceberg wrote:
> Do you mean something like this?
>
> http://web2py.appspot.com/survey/survey/index
>
> On Sep17, 8:24am, Tim McNamara wrote:
>
> > Hi there,
> > Has anyone developed a form b
please check trunk. now appadmin should work on GAE out of the box. It
was a bug that it did not.
On Sep 16, 9:08 pm, Chris S wrote:
> Cool thanks. Is there a workaround you would suggest for now for
> people like me that are testing/learning with these database calls?
> It's very handy to be a
i would love to help on this project i have been planning on a similar
system that includes validation rules and provides web services and an
api automatically. This could be a really powerful and simple way to
develop apps that others can use and mash up.
On Wed, Sep 16, 2009 at 9:39 PM, mdipier
Very cool, Massimo. Thank you for your quick response! But ...
- Shouldn't that be os.path.join?
- Should I interpret your message as meaning that this will also work
with the standard download function -- the one that does a "return
response.download(request,db)"?
- Can the db.table.field.upload
On Sep 17, 8:33 am, Richard wrote:
> https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-...
>
> ack that's an ugly URL. Has whoever is maintaining the wiki considered
> using the title of the page like Mediawiki?
The URL is not user friendly. The wiki currently does not supp
lats' say we have a metaform=SQLFORM.factory(...)) that contains
variables to describe a field in another form.
We need a web2py app that build a list of metaforms and allows the
user to append items to the list, rearrange them, fill the forms in
the list.
We could use list of metaforms to build
On Sep 16, 10:26 pm, weheh wrote:
> Very cool, Massimo. Thank you for your quick response! But ...
>
> - Shouldn't that be os.path.join?
yes, sorry for the typo
> - Should I interpret your message as meaning that this will also work
> with the standard download function -- the one that does a
We could fix this soon by porting this wiki on t4 when done.
On Sep 16, 10:40 pm, Anand Vaidya wrote:
> On Sep 17, 8:33 am, Richard wrote:
>
> >https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-...
>
> > ack that's an ugly URL. Has whoever is maintaining the wiki considered
>
Works now.
On Sep 16, 4:37 pm, mdipierro wrote:
> Sorry. Please download and try again
>
> On Sep 16, 4:00 pm, "mr.freeze" wrote:
>
>
>
> > Oh, I am using Windows and Python 2.5
>
> > On Sep 16, 3:48 pm, "mr.freeze" wrote:
>
> > > Sorry if you're in the midst of changing something. I just upd
Thanks again for doing this. I'll have to grab the latest trunk and
check it out. Will let you know.
One other thing, please. I emailed you an example where the input is a
field of type text. Once uploaded, the form.vars.text_in field is
written to a file in the "somewhere" folder. The filename o
What I'm trying to do is preset the value of a non writable field in a
form, such as a time field. Something to the effect of:
form = SQLFORM(db.table)
form.vars.time = getCurrentTime() #this field is set to writable false
if form.accepts(...):
...
The desired rendering would be that the fie
I'm a web2py rookie. I copied the class MultiPart_Mail to my app's
modules directory. I couldn't call it from my controller until I
added:
from gluon.storage import Settings
to the top of the class. If I'm correct, this should be added to the
wiki. Better still, add this class to gluon.tools & pro
It really looks cool. If the generated form code can have client-side
validation, then it will be perfect.
On Sep17, 10:39am, mdipierro wrote:
> I think we can do better than that. Like this for
> example:http://www.phpform.org/
>
> On Sep 16, 9:13 pm, Iceberg wrote:
>
>
>
> > Do you mean some
Try:
db.table.time.default=getCurrentTime()
db.table.time.writable=False
form = SQLFORM(db.table)
if form.accepts(...)
On Sep17, 12:33pm, Alastair Medford wrote:
> What I'm trying to do is preset the value of a non writable field in a
> form, such as a time field. Something to the effect of:
>
On Sep 1, 10:36 pm, mdipierro wrote:
> We currently provide out of the box authentication using google(when
> running on GAE), gmail, twitter, ldap, basic auth.
I'm curious about how to implement authentication using Google, and
specifically Google Apps for Domains. When I deploy web2py to appsp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thanks, this way it works :)
D.
mdipierro napsal(a):
> My bad.
>
> the error_handler is only used when you search for an app that does
> not exist.
> To redirect from an error in an existing application (any app */ any
> error *) use the following
thanks for exposing that - now I can simplify some existing code.
On Sep 17, 12:29 pm, mdipierro wrote:
> Ok. try this:
>
> db.table.field.uploadfolder=od.path.join(request.folder,"uploads/
> somewhere")
>
> reuires trunk. folder somewhere must exist.
>
> On Sep 16, 7:24 pm, Richard wrote:
>
>
No dice. Neither of the two lines had any effect (this is with them in
the controller). The field was blank and was still writable. Also, if
this approach worked, or if I changed the default value in the model,
wouldn't this be redefining the table definition every time the form
is brought up? If
Hello,
My apologies... :-) This worked like a charm.
Just that, after searching for over 2 hrs , you tend to get brain
dead. and thats when i turn to the mailing lists's help.
Please thanks so much for being patient with me. So many times, i have
nearly given up on web2py, only to have had such
86 matches
Mail list logo