Isn't this typical of debugging? Once you (finally) see the problem, so
often it seems so obvious...
Smile, and know this is just so, the world over! ;-)
On Fri, May 22, 2009 at 12:55 AM, Horst Herb
my.list.subscripti...@gmail.com wrote:
On Fri, May 22, 2009 at 3:32 PM, mdipierro
On May22, 3:55pm, Horst Herb my.list.subscripti...@gmail.com wrote:
On Fri, May 22, 2009 at 3:32 PM, mdipierro mdipie...@cs.depaul.edu wrote:
I need to go sleep now but email your code a better description of the
problem. I still do not understand what the symptoms are. I will look
at it
Thank you. I've noticed a lot of differences from the examples and the
current version of web2py. It is very confusing to someone without any
background on web frameworks.
I know it's said somewhere that w2p is always backward compatible, is
there a page I could look at for changes since
There is in fact a utiltiy named auto.py which will 'assist you' to
convert SQL schemas to web2py schemas.
It assumes you are able to script out your table schemas from your
database engine to a file.
You still need to do some simple editing of the SQL schema to
eliminate lines which auto.py will
Yeah, I want to do something like DenesL proposed:)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this
tools.py
18: import serializers
(added with update 823 on launchpad)
this file is not present, at least not on my system and not in the
repository.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web
I don't think there is an alter ego page for .net, but apart from the
technical stuff, your client should be convinced by the cost.
On May 21, 8:06 pm, weheh richard_gor...@verizon.net wrote:
I'm trying to convince a client to go with web2py vs. with asp/.net.
I'm wondering if anyone could
given a table with a 'date' field
and the crud generated or SQLFORM generated forms,
how can I tell the form to accept *empty* values for a date?
Thanks,
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py
Horst,
In the table definition:
SQLField('fieldname', type='date')
... and a validator on this field which reads like:
db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m-
%d'
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this
I have my authentication, authorization, create and read functions
working, however, I don't get update and delete function to function
without flaws. The problem lies in the fact that the vistor can tamper
with the URL in the browser's address bar.
In a view I have got:
td
On Fri, May 22, 2009 at 7:20 PM, annet.verm...@gmail.com wrote:
db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m-
%d'
Thanks, that was what I was looking for!
Another question: how / where can I (application wide) change the date
format string so that all date entry and
In a view I defined the following link:
td
{{=A(row.adressoort,_href=URL(r=request,f='update_address',args=
[row.id]))}}
/td
I wonder whether it is possible to display the URL without the args
being displayed. I guess _method='post' doesn't work in case of an a
tag.
Kind regards,
Annet
Horst,
Model:
T.force('en-de') ## en-de is a language file you'll create below
In the table definition:
SQLField('fieldname', type='date')
... a validator on this field which reads like:
db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m-
%d'
Languages:
... create a
It's evil and horrific but if you're desperate you could maybe at the
start of the function store the arguments in the session then redirect
to the same function, without the arguments in the URL. At the start
of the function, check for the details in the session, store them in a
local variable
I am an ASP.NET 3.5 developer.
I will try to post some points tonight.
On May 22, 4:36 am, desfrenes desfre...@gmail.com wrote:
I don't think there is an alter ego page for .net, but apart from the
technical stuff, your client should be convinced by the cost.
On May 21, 8:06 pm, weheh
Do you intend to run on .NET (Iron Python?) or completely non .NET?
On May 21, 2:06 pm, weheh richard_gor...@verizon.net wrote:
I'm trying to convince a client to go with web2py vs. with asp/.net.
I'm wondering if anyone could offer some comparisons of the two that
could give me some
Thanks Horst for posting the solution, it is important for all of us
to know that there are no open issues.
Moreover other people may have the same issues in the future.
Massimo
On May 22, 12:55 am, Horst Herb my.list.subscripti...@gmail.com
wrote:
On Fri, May 22, 2009 at 3:32 PM, mdipierro
Everything in the web2py_manual_cut works (typos aside). We just added
a lot of other features.
We try document what we can on the docs web page.
On May 22, 1:14 am, NikG nikolai...@gmail.com wrote:
Thank you. I've noticed a lot of differences from the examples and the
current version of
Can you email the new auto to me?
On May 22, 1:19 am, dlypka dly...@gmail.com wrote:
There is in fact a utiltiy named auto.py which will 'assist you' to
convert SQL schemas to web2py schemas.
It assumes you are able to script out your table schemas from your
database engine to a file.
You
oops will fix it soon
On May 22, 3:30 am, HansD hans.don...@pobox.com wrote:
tools.py
18: import serializers
(added with update 823 on launchpad)
this file is not present, at least not on my system and not in the
repository.
--~--~-~--~~~---~--~~
You
if record:
On May 22, 4:45 am, annet annet.verm...@gmail.com wrote:
I have my authentication, authorization, create and read functions
working, however, I don't get update and delete function to function
without flaws. The problem lies in the fact that the vistor can tamper
with the URL
thank you
Massimo: what about web2py being used for build big-name like apps
(gmail, youtube, rtm, facebook)
Would you recommend it over other languages?
On May 21, 9:39 pm, mdipierro mdipie...@cs.depaul.edu wrote:
look forward to the horst app too!
On May 21, 9:39 pm, mdipierro
I would. As soon as I have some time I will write some new docs about
tricks for scalability.
On May 22, 7:38 am, JorgeR jorgeh...@gmail.com wrote:
thank you
Massimo: what about web2py being used for build big-name like apps
(gmail, youtube, rtm, facebook)
Would you recommend it over other
Hi all.
from the manual
h1Hello {{=session.visitor_name or anonymous}}/h1
current form
{{=H1('Hello ', session.visitor_name or 'anonynous')}}
Is there any (newbie friendly) guide I can read about these kind of
changes?
I like the current cleaner looking structure but it gets confusing
when
you would save a lot of time using web2py as backend... for the frontend you
could do heavy use of some Ajax framework... with web2py it takes only few
lines to write a controller for services that read/write the databases and
reponses in Json or xml (perfect for Ajax)
On Fri, May 22, 2009 at 10:44 PM, NikG nikolai...@gmail.com wrote:
from the manual
h1Hello {{=session.visitor_name or anonymous}}/h1
current form
{{=H1('Hello ', session.visitor_name or 'anonynous')}}
Is there any (newbie friendly) guide I can read about these kind of
changes?
No changes
I believe it will be run completely on .net, not Iron Python.
On May 22, 8:29 am, dlypka dly...@gmail.com wrote:
Do you intend to run on .NET (Iron Python?) or completely non .NET?
On May 21, 2:06 pm, weheh richard_gor...@verizon.net wrote:
I'm trying to convince a client to go with
Hi NikG,
I do not see any current form way from your example.
In the first one you are using the usual h1 tag from html where you
add some python code in braces (just strings in this case but you
could have any python code here).
In the second one you are using the H1 web2py helper to get the
as an aside, has anyone tried web2py on IronPython? (I imagine there must
be some roadblocks; at this point I'm just curious if anyone has tried)
On Fri, May 22, 2009 at 7:29 AM, dlypka dly...@gmail.com wrote:
Do you intend to run on .NET (Iron Python?) or completely non .NET?
On May 21,
Horst,
Congrats. I would be interested in looking at the appointment system
and document storage. Working on a financial services system for a
friend so those two components would have a fit we might be able to
collaborate on.
On May 21, 7:50 pm, Horst Herb my.list.subscripti...@gmail.com
All:
I'm looking for documentation about how to create a web2py application
from the shell. Does anyone have information on this? Also, does
anyone have information about the Web2Py shell and/or DAL.
Thank you,
Christopher
--~--~-~--~~~---~--~~
You received
Yes, somebody has tried and web2py run on ironpython with the
exception of wsgiserver and database drivers.
Anyway. I think the topic of this thread was web2py vs asp.net. I am
not competent on asp.net to comment and Dlypka,s comments on this
topic. I had conversations I had to asp.net
Have you tried?
web2py.py -h
On May 22, 8:47 am, cesmiga cesm...@gmail.com wrote:
All:
I'm looking for documentation about how to create a web2py application
from the shell. Does anyone have information on this? Also, does
anyone have information about the Web2Py shell and/or DAL.
web2py -S welcome, for example, will give you a python interpreter with the
current web2py environment. If you add '-M', then the models for the
application will also be run. If you have ipython installed on your system,
then the ipython interpreter will be run (otherwise just the python
Can we please have someone document this, I would love to have a less,
well, terse example.
Nothing wrong with your explanation, I just like a more tutorial styled
instruction set. :D
Regards,
Jason
On Fri, 2009-05-22 at 05:54 -0700, mdipierro wrote:
- download trunk
- Create a new app
-
On Fri, May 22, 2009 at 11:47 PM, cesmiga cesm...@gmail.com wrote:
I'm looking for documentation about how to create a web2py application
from the shell. Does anyone have information on this? Also, does
anyone have information about the Web2Py shell and/or DAL.
python web2py.py -S appname
It is very simple actually. If you call any action now you add an
extension (for example .xxx).
If there is extension instead of looking for a view ending in .html it
looks for a view with the extension you requested. If it does not find
it it will try a generic view with the extension you
Massimo,
Here is what I see when I try to create a new application with the
latest Web2Py. From the webUI, I have no problem creating a new
application.
Christopher
++
r...@vm-debian-5:/opt/web2py# ./web2py.py -S testApp
WARNING:root:Informix
You found a bug!
Will fix it now.
On May 22, 9:35 am, cesmiga cesm...@gmail.com wrote:
Massimo,
Here is what I see when I try to create a new application with the
latest Web2Py. From the webUI, I have no problem creating a new
application.
Christopher
Massimo,
I'm not sure if this is a related issue, but I see the following when
I run...
r...@vm-debian-5:/opt/web2py# ./web2py.py -S admin -M
WARNING:root:Informix support is experimental
WARNING:root:GUI not available because Tk library is not installed
default applications appear to be
fixed. try trunk again.
On May 22, 9:35 am, cesmiga cesm...@gmail.com wrote:
Massimo,
Here is what I see when I try to create a new application with the
latest Web2Py. From the webUI, I have no problem creating a new
application.
Christopher
Massimo,
My apologies, but I'm having trouble finding the trunk. Would you
point me to the location of that for download.
Thank you,
Christopher
mdipierro wrote:
fixed. try trunk again.
On May 22, 9:35 am, cesmiga cesm...@gmail.com wrote:
Massimo,
Here is what I see when I try to
On Fri, May 22, 2009 at 11:31 AM, dlypka dly...@gmail.com wrote:
Sorry I am not clear regarding your reply.
Let me rephrase the question:
If your company selects web2py as its development tool,
what platform do you expect to run web2py on -
.NET (in which case I believe web2py would be
I'd be interested to see a list of components you chose to build these
with. For instance which UI did you use?
Mike
On May 21, 4:42 pm, JorgeRpo jorgeh...@gmail.com wrote:
Hello
I'd like to know about really complex apps made with web2py so far..
Anyone care to share experiences?
Could
No but your can do
(db.table.fieldvalue1)(db.table.fieldvalue2)
On May 22, 11:11 am, Yarko Tymciurak yark...@gmail.com wrote:
There isn't, but this might be useful... It seems to be SQL standard
(reserved word in SQL-92 and SQL-2003); it seems to be in sqlite;
Not sure how it would play out
if not len(record):
or:
query=db(db.adres.id==record_id)
if query.count() == 0:
and then: row = query.select(field)[0]
On 22 Maj, 11:45, annet annet.verm...@gmail.com wrote:
I have my authentication, authorization, create and read functions
working, however, I don't get update and delete
Very odd. I see this too but I cannot think of any change that may
have affected this.
If you have any clue let me know.
massimo
On May 22, 11:46 am, Wes James compte...@gmail.com wrote:
Massimo,
I updated to latest trunk and now when I do a submit on a form in a jdiv I
get:
400 BAD
I just went and downloaded 1.62.3 from web2py.com and it works again.
I'll poke around and see what i can find.
-wes
On Fri, May 22, 2009 at 11:23 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Very odd. I see this too but I cannot think of any change that may
have affected this.
If you have
I think this off topic.
I would not recommend anybody to run web2py with IronPython and IIS.
I think the original question was to use web2py (standalone, perhaps
with apache and mssql or postgresql) vs APS.NET.
the advantages of web2py is that you are not locked in any proprietary
solution, you
I repeat
if not record:
On May 22, 12:22 pm, Kacper Krupa pageno...@gmail.com wrote:
if not len(record):
or:
query=db(db.adres.id==record_id)
if query.count() == 0:
and then: row = query.select(field)[0]
On 22 Maj, 11:45, annet annet.verm...@gmail.com wrote:
I have my
Yes, sorry - i've checked. I always used len().
On 22 Maj, 19:28, mdipierro mdipie...@cs.depaul.edu wrote:
I repeat
if not record:
On May 22, 12:22 pm, Kacper Krupa pageno...@gmail.com wrote:
if not len(record):
or:
query=db(db.adres.id==record_id)
if query.count() == 0:
and
got it. fixed and reuploading to trunk.
On May 22, 12:25 pm, Wes James compte...@gmail.com wrote:
I just went and downloaded 1.62.3 from web2py.com and it works again.
I'll poke around and see what i can find.
-wes
On Fri, May 22, 2009 at 11:23 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Thanks again.
On May 22, 12:16 pm, mdipierro mdipie...@cs.depaul.edu wrote:
No but your can do
(db.table.fieldvalue1)(db.table.fieldvalue2)
On May 22, 11:11 am, Yarko Tymciurak yark...@gmail.com wrote:
There isn't, but this might be useful... It seems to be SQL standard
(reserved word
that did it! thx!
-wes
On Fri, May 22, 2009 at 11:49 AM, mdipierro mdipie...@cs.depaul.edu wrote:
got it. fixed and reuploading to trunk.
On May 22, 12:25 pm, Wes James compte...@gmail.com wrote:
I just went and downloaded 1.62.3 from web2py.com and it works again.
I'll poke around
Maybe I'm missing the point, but it seems to me that the advantage of
web2py is that you get to use Python.
On May 22, 10:27 am, mdipierro mdipie...@cs.depaul.edu wrote:
I think this off topic.
I would not recommend anybody to run web2py with IronPython and IIS.
I think the original question
had some issues with trying to get an update to that branch (must have
messed up locally), so the branch is now lp:~hans-d/web2py/dev-gae-
auth2
(trying to catchup with the fixes of Massimo, as tools.py is in the
middle of a change festival)
On May 21, 4:23 pm, HansD hans.don...@pobox.com
I'm using the crud.create() function but i can not get the id of the
last create record,
I try to do like this in the controller
### CODE ###
response.flash='last id is %s' % form.vars.id
#
Always return None
--~--~-~--~~~---~--~~
You received this
got to http://groups.google.com/group/web2py
then do a search on id of last record ;)
-wes
On Fri, May 22, 2009 at 1:18 PM, NewBeen rui.t...@gmail.com wrote:
I'm using the crud.create() function but i can not get the id of the
last create record,
I try to do like this in the controller
The problem is that the answer is given just don´t work,
if you look to the code i post is the code in the answer and always
return none ;)
On May 22, 7:21 pm, Wes James compte...@gmail.com wrote:
got tohttp://groups.google.com/group/web2py
then do a search on id of last record ;)
-wes
if you use
form=SQFORM(db.table)
if form.accepts(request.vars,session):
# the id in form.vars.id
redirect()
return dict(form)
if you use
form=crud.create(db.table)
the accept and redirect are done inside crud create therefore there is
no scope where you can access the
can somebody figure out how to serialize in isoformat date and
datetimes in simplejson?
I would include it in the new gluon/serialize.py/json
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web
I also noticed in one of the posts that you can do:
db.executesql('select max(id) from mytable')
with sqlite. sql may be db dependent.
-wes
On Fri, May 22, 2009 at 1:28 PM, NewBeen rui.t...@gmail.com wrote:
The problem is that the answer is given just don´t work,
if you look to the code i
do not do this because if another thread has created a record
meanwhile you get the wrong result.
On May 22, 2:38 pm, Wes James compte...@gmail.com wrote:
I also noticed in one of the posts that you can do:
db.executesql('select max(id) from mytable')
with sqlite. sql may be db dependent.
Wouldn't that always be the case for a multi-user system?
On Fri, May 22, 2009 at 1:55 PM, mdipierro mdipie...@cs.depaul.edu wrote:
do not do this because if another thread has created a record
meanwhile you get the wrong result.
On May 22, 2:38 pm, Wes James compte...@gmail.com wrote:
I
Non .net
On May 22, 12:31 pm, dlypka dly...@gmail.com wrote:
If your company selects web2py as its development tool,
what platform do you expect to run web2py on -
.NET (in which case I believe web2py would be using Iron Python),
or
Non .NET such as the usual web2py distro for
not if you use form.vars.id, i.e. the value returned by db
[table].insert(...)
On May 22, 2:58 pm, Wes James compte...@gmail.com wrote:
Wouldn't that always be the case for a multi-user system?
On Fri, May 22, 2009 at 1:55 PM, mdipierro mdipie...@cs.depaul.edu wrote:
do not do this
Hello Massimo,
I find it odd that after paying $12 for the web2py book, i find out
that it is available as a free download on scribd
http://www.scribd.com/doc/15508739/Web2Py-Manual. Cant something be
done to make scribd take it down or is this one of the ways by which
web2py is being publicized?
Thanks for reporting this. I asked them to take it down it is a
copyright violation.
Massimo
On May 22, 3:29 pm, Pystar aitoehi...@gmail.com wrote:
Hello Massimo,
I find it odd that after paying $12 for the web2py book, i find out
that it is available as a free download on
Massimo,
is it the form submit and submitting data and getting a form back with
validation what you were indicating in the comments on the ajax panel?
Because I can't use a crud form submit and get it to submit data, it just
refreshes the screen it seems.
I can get a form with
For now what you have to do it
form=crud.create(db.table)
form['_class']='ajaxform1'
I am thinking on whether this should be the default behavior and who's
responsibility is to set this behavior (the form? the frame? the app?)
On May 22, 4:21 pm, Wes James compte...@gmail.com wrote:
Massimo,
be aware that the code in jpolite-web2py will change a lot in the near
future. I am not sure if it currently handle file uploads for example.
I remember somebody sending me a patch in that direction some time ago
but I cannot find it anymore.
Massimo
On May 22, 4:41 pm, mdipierro
yes that does submit now. I left a field blank to check validation and get:
Traceback (most recent call last):
File /opt/20090331-w2p/gluon/restricted.py, line 107, in restricted
exec ccode in environment
File /opt/20090331-w2p/applications/tt/controllers/default.py
I am a little confused by the navigation between Alterego and the
Web2py site. When I've landed on AlterEgo after finding a Google
reference to Web2py and Pyjamas, and then I hit home to see what other
interesting articles are on AlterEgo I end up on the Web2py homepage
with no visible path back
Ok, I think I get it now. Alterego is Web2py's alter-ego. So it is a
parallel set of pages to the Web2py site? Still it would be nice if
there were a link on the main site.
On May 22, 3:16 pm, mikech mp.ch...@gmail.com wrote:
I am a little confused by the navigation between Alterego and the
are you using a custom widget? Can you post it?
if not can you post the definition of the form?
On May 22, 5:02 pm, Wes James compte...@gmail.com wrote:
yes that does submit now. I left a field blank to check validation and get:
Traceback (most recent call last):
File
There is a link. It says FAQ.
On May 22, 5:19 pm, mikech mp.ch...@gmail.com wrote:
Ok, I think I get it now. Alterego is Web2py's alter-ego. So it is a
parallel set of pages to the Web2py site? Still it would be nice if
there were a link on the main site.
On May 22, 3:16 pm, mikech
It will post, but then there is the error when validation fails if i leave a
field empty (when it shouldn't be). Here is the code:
def m101():
form=crud.create(db.task)
try:
etime=str(db().select(db.task.etime, orderby=~db.task.id,
limitby=(0,1))[0].etime).split(':')
I did email it last Monday.
I have just resent it.
On May 22, 8:35 am, mdipierro mdipie...@cs.depaul.edu wrote:
Can you email the new auto to me?
On May 22, 1:19 am, dlypka dly...@gmail.com wrote:
-
--~--~-~--~~~---~--~~
You received this message because you
I have been working on this issue together with another web2py
enthusiast for the last few weeks.
He is away till Tues so I believe we can jointly post a response with
some details soon after Tuesday.
I developed the core technique and then he 'ran' with it to apply it
to customize to allow using
Massimo's response was very elegant, accurate and concise - just like
web2py!
Here are just a few additional points:
The .NET world is in extreme turmoil at the moment because
Visual Studio, SQL Server and Entity Framework all have major
upgrades due out next year, so they will be unstable for
so... has anybody tried this? Pros? Cons?
can we release 1.63 next week?
On May 22, 7:54 am, mdipierro mdipie...@cs.depaul.edu wrote:
- download trunk
- Create a new app
- make sure you see the new views/generic.* files in the new app or
something is wrong
- edit default.py and create an
I added a new file in trunk script/cleanhtml.py
It can help you clone an existing web site or turn it into a layout.
It works in this way:
cleanhtml.py somefile.html
and
cleanhtml.py somefile.css
it re-indents html files and css files in such a way that it becomes
easy to remove the
There are two issues here.
One is that the manual needs to be updated. Nobody should be doing
this
def download():
import os
path=os.path.join(request.folder,'uploads',request.args[0])
return response.stream(path)
Instead you should be doing this:
def download(): return
Thank you all for the replies. Like I said, I'm new with web2py (and
web frameworks).
I guess the manual assumes that the reader has some background in
other frameworks? These 'little' things were not explained but thank
you for elaborating. I looked around at the other frameworks, though
all
I have tried this, and it's convenient and intuitive. :p
But I am thinking that can we disable any of them in controller(html,
xml, json, and rss)?
On 5月23日, 上午11時29分, mdipierro mdipie...@cs.depaul.edu wrote:
so... has anybody tried this? Pros? Cons?
can we release 1.63 next week?
On May
Feel free to always ask questions. We are aware that the docs are not
keeping up with the code so no question is inappropriate.
Massimo
On May 22, 11:11 pm, NikG nikolai...@gmail.com wrote:
Thank you all for the replies. Like I said, I'm new with web2py (and
web frameworks).
I guess the
You can remove the generic.xxx file that you do not want or rename it
to match only the actions to which it applies.
Massimo
On May 22, 11:02 pm, posh posheng...@gmail.com wrote:
I have tried this, and it's convenient and intuitive. :p
But I am thinking that can we disable any of them in
forget it. I did it.
Massimo
On May 22, 2:35 pm, mdipierro mdipie...@cs.depaul.edu wrote:
can somebody figure out how to serialize in isoformat date and
datetimes in simplejson?
I would include it in the new gluon/serialize.py/json
Massimo
88 matches
Mail list logo