see the docstring in gluon.Winservice
it needs the win32 lib, to be installed seperately.
--- Original Message ---
From: mdipierro mdipie...@cs.depaul.edu
To: web2py Web Framework web2py@googlegroups.com
Sent: 03/06/2009, 06:37:07
Subject: [web2py:23165] Re: windows service problem in
Hi ,
I have created a table for user. to update the table i have written
the code
def editprofile():
user = db(db.users.id==session.userid).select()[0]
form = SQLFORM(db.users,user,fields=['firstname','lastname'])
i found id field is showing in the browser though i have selected
Hi.
There's a parameter to SQLFORM, showid which is True by default. Just set it
to False.
Like:
form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid = False)
regards
mmlado
On Wednesday 03 June 2009 08:32:16 durga wrote:
Hi ,
I have created a table for user. to update
thanks mmlado :)
On Wed, Jun 3, 2009 at 12:21 PM, Mladen Milankovic mml...@gmail.com wrote:
Hi.
There's a parameter to SQLFORM, showid which is True by default. Just set
it
to False.
Like:
form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid =
False)
regards
mmlado
On Jun3, 11:51am, mdipierro mdipie...@cs.depaul.edu wrote:
web2py 1.63.3 is out with some bug fixes
The fix to sql.py in revision 985 has a typo. And it is insufficient
anyway because the /path-with-non-ascii/sql.log won't be create
correctly.
After some consideration, I make further
On Page 68 it has 'SQLField is a query'
Also I believe IS_IN_DB is missing from that long list of validators
on page 106
On Jun 2, 11:52 pm, mdipierro mdipie...@cs.depaul.edu wrote:
http://www.web2py.com/examples/static/cookbook2.pdf
--~--~-~--~~~---~--~~
You
Using a View over the join might help. Then both fields would be
available.
On Jun 2, 10:28 am, mdipierro mdipie...@cs.depaul.edu wrote:
This cannot be done with the IS_IN_DB validator. You must create your
own validator.
Massimo
On Jun 1, 3:46 pm, Offray Vladimir Luna Cárdenas
On page 24, why does it include the '.html' ?
In your original cookbook, there is no '.html' here:
A URL like
http://hostname/cookbook/default/index/bla/bla/bla?variable=value
will result in a call to function index() in controller default.py in
applicaiton cookbook.
“bla”, “bla” and “bla” will
Thank you Massimo,
I will do in that way.
Kind Regards
Salva
On 3 jun, 06:28, mdipierro mdipie...@cs.depaul.edu wrote:
This is a problem only if login is the entry point of your app and it
should not be. If you always get to login from a redirection you
should not have this problem.
Unfortunately I have no expirience in screencasting, and my English is
buggy.
Debugging/logging tool is very useful thing for web development. I
really like this one in Symfony framework (it is included to Symfony
and made with JavaScript, screenshot -
Really cool! Congratulations for this work and exaplanation!
2009/6/3 sgtpep danil.m...@gmail.com:
Unfortunately I have no expirience in screencasting, and my English is
buggy.
Debugging/logging tool is very useful thing for web development. I
really like this one in Symfony framework (it
hi,
i would like to insert a values to a table through form where user
can enter fewer fields.
for example i have table 'company' which has fields
userid,compname,designation,location.
form = SQLFORM(db(db.company),fields=
['compname','designation','location'])
userid is stored in session
Hi.
Do something like this:
form = SQLFORM(db(db.company),fields = ['compname','designation','location'])
if form.accepts(request.vars, session):
db(db.company.id == form.vars.id).update(userid = session.userid)
# do something else like redirect if needed
The id of the new record can be
Page 84:
Example:
db(db.product.id10).update(product=db.product.price+20)
Should be ():
db(db.product.id10).update(db.product.price=db.product.price+20)
On Jun 3, 5:52 am, mdipierro mdipie...@cs.depaul.edu wrote:
http://www.web2py.com/examples/static/cookbook2.pdf
no. it is correct as it is.
On Jun 3, 7:41 am, notabene niels...@gmail.com wrote:
Page 84:
Example:
db(db.product.id10).update(product=db.product.price+20)
Should be ():
db(db.product.id10).update(db.product.price=db.product.price+20)
On Jun 3, 5:52 am, mdipierro
On page 54, the line
curl -u username:password http://hostanme.../function
^^
should read
curl -u username:password http://hostname.../function
On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote:
On page 55 the wording is not clear. Or is it just me?
Uploads and authentication
Uploaded files are served by the “download” action. To
required authentication and authorization in order to
download any file:
db.image.file.authorize = lambda record: True
where the lambda is a function hat, give
Ouch! Yes there is a typo, should be
db(db.product.id10).update(price=db.product.price+20)
Massimo
On Jun 3, 7:41 am, notabene niels...@gmail.com wrote:
Page 84:
Example:
db(db.product.id10).update(product=db.product.price+20)
Should be ():
You are now officially our firebug expert!
Massimo
On Jun 3, 5:19 am, sgtpep danil.m...@gmail.com wrote:
Unfortunately I have no expirience in screencasting, and my English is
buggy.
Debugging/logging tool is very useful thing for web development. I
really like this one in Symfony
Other posters caught some of the same items I did, so I won't repeat.
But on slide 61 I think there is an unintended syntactical reference
in the sentence --
First bullet. My comment is based on Web2Py manual. As I recall there
are some helpers not derived from DIV. So unless that has changed
Hi
On 3 Giu, 05:52, mdipierro mdipie...@cs.depaul.edu wrote:
http://www.web2py.com/examples/static/cookbook2.pdf
It's possible to have the document with white background?
It's for printing purpose.
Thanks
--~--~-~--~~~---~--~~
You received this message because
thanks lado its working :)
On Wed, Jun 3, 2009 at 5:38 PM, Mladen Milankovic mml...@gmail.com wrote:
Hi.
Do something like this:
form = SQLFORM(db(db.company),fields =
['compname','designation','location'])
if form.accepts(request.vars, session):
db(db.company.id ==
On page 131, Single Server Tricks
I think there's an error in the first bullet point User mod_wsgi
instead of wsgiserver.
Should it be Use ... ?
And one thing I'm not sure about. Should all the words in the headings
be capitalized?
For example, should Single server tricks be Single Server
yes, it is messy. I wrote it late at night. Fixing it. thanks.
On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com
wrote:
On page 55 the wording is not clear. Or is it just me?
Uploads and authentication
Uploaded files are served by the “download” action. To
required
Hi.
You need to define the type of the field, the IS_DATE is only a
validator that will check the values before insert/update.
Use:
db.define_table('users',
SQLField('dob', 'date',requires=IS_DATE()),
regards
mmlado
On Wed, Jun 3, 2009 at 4:36 PM, durga durgaprasadmoga...@gmail.com wrote:
thanks for your immediate response
On Jun 3, 7:42 pm, Mladen Milankovic mml...@gmail.com wrote:
Hi.
You need to define the type of the field, the IS_DATE is only a
validator that will check the values before insert/update.
Use:
db.define_table('users',
SQLField('dob',
The document appears to be blank except for the first page and the
bullets now.
On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote:
yes, it is messy. I wrote it late at night. Fixing it. thanks.
--~--~-~--~~~---~--~~
You received this message because
Posted a new one with some new pages.
http://www.web2py.com/examples/static/cookbook2.pdf
It would be great if somebody would post a link on reddit, digg, etc.
and if people were to vote it up. I am not going to do it because I am
chickening out.
Massimo
On Jun 3, 9:39 am, mdipierro
Maybe you should expose the filename making as a method:
uuid_key = str(uuid.uuid4()).replace('-', '')[-16:]
encoded_filename = base64.b16encode(filename).lower()
newfilename = '%s.%s.%s.%s' % \
Not Reddit but I posted a piece on a blog --
http://tightwadtechnica.com/?p=3980.
On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote:
Posted a new one with some new pages.
http://www.web2py.com/examples/static/cookbook2.pdf
It would be great if somebody would post a link on
http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to
seems odd that there are down votes on this subject already. Must be some
other framework trolls?!?! Give me a brrrek already...
-wes
On Wed, Jun 3, 2009 at 11:32 AM, mdipierro mdipie...@cs.depaul.edu wrote:
There seem to be some pdf errors in the document. I can open it on
Windows but the document says it has 'invalid object structure' and a
'misaligned object'. On Linux I get a 30 page document with all white
backgrounds, text on the title page and only the bullets show after
that.
On Jun 3,
h
On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote:
There seem to be some pdf errors in the document. I can open it on
Windows but the document says it has 'invalid object structure' and a
'misaligned object'. On Linux I get a 30 page document with all white
backgrounds, text on
I am using Xubuntu with the evince reader and am having no problems.
Which reader are you using?
On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote:
There seem to be some pdf errors in the document. I can open it on
Windows but the document says it has 'invalid object structure' and a
I had them, flushed my cache - and now (in 2 browsers) that link goes into
eternal load - never gets the file...
On Wed, Jun 3, 2009 at 1:48 PM, mdipierro mdipie...@cs.depaul.edu wrote:
h
On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote:
There seem to be some pdf errors in the
...and curl has now spent over a minute w/ 0 speed, 0 downloaded and
trying to get to www.web2py.com at all seems to fail.
Is the server down?
On Wed, Jun 3, 2009 at 2:08 PM, Yarko Tymciurak yark...@gmail.com wrote:
I had them, flushed my cache - and now (in 2 browsers) that link goes
Fired up another VM. Downloading the file as we speak. no problems.
On Jun 3, 7:11 pm, Yarko Tymciurak yark...@gmail.com wrote:
...and curl has now spent over a minute w/ 0 speed, 0 downloaded and
trying to get towww.web2py.comat all seems to fail.
Is the server down?
On Wed, Jun 3,
Arch Linux. Using Okular and Evince:
[bsni...@galileo ~]$ evince --version
GNOME Document Viewer 2.26.2
[bsni...@galileo ~]$ okular --version
Qt: 4.5.1
KDE: 4.2.3 (KDE 4.2.3)
Okular: 0.8.3
The PDF viewer that shows errors on Windows is PDFXChange Viewer. I
use it for the free editing features
Brian,
I just run through evince, Adobe, kpdfviewer on linux. Adobe, Fox
viewer on Windows. I not having any problems.
Maybe the transport and the unreadable pdf are related.
On Jun 3, 2:22 pm, bsnipes snipes.br...@gmail.com wrote:
I won't discount it being my system since I did do an update
No clue. I have Jaunty at home on a desktop and will try it from
there. Thanks for letting me know.
Brian
On Jun 3, 2:29 pm, JohnMc maruadventu...@gmail.com wrote:
Brian,
I just run through evince, Adobe, kpdfviewer on linux. Adobe, Fox
viewer on Windows. I not having any problems.
Try this instead:
http://www.scribd.com/doc/16085263/web2py-slides-version-163
On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote:
Arch Linux. Using Okular and Evince:
[bsni...@galileo ~]$ evince --version
GNOME Document Viewer 2.26.2
[bsni...@galileo ~]$ okular --version
Qt: 4.5.1
M,
This might be related as well.
I just restarted web2py (1.61.1) and I get a 'Checking for
upgrades...'. It persists for about a minute before I can get into the
projects design page.
On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Try this instead:
That works in both evince and in okular for me. Thanks!
On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Try this instead:
http://www.scribd.com/doc/16085263/web2py-slides-version-163
On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote:
Arch Linux. Using Okular and
this is what I reported - www.web2py.com does not (still) appear to be
loading (it responds to pings)
Your checking for upgrades is a symptom of no http response from
web2py.com I think...
it continued for a long time... and seems to just have broken free of
whatever it was in the past
Excellent work :)
Pg 1
This app also replaces the old cookbook so is a full tutorial - not
just an overview of new features...
Pg 5
Bottom text unreadable against background
Pg 13
scaffolding app
^
Pg 15
Views can extend other
^
Pg 16
They contain
^
Pg 17
how to
(over that 10 min. or so period where something wasn't working, you may have
been getting from your browser cache)
On Wed, Jun 3, 2009 at 3:10 PM, bsnipes snipes.br...@gmail.com wrote:
That works in both evince and in okular for me. Thanks!
On Jun 3, 2:45 pm, mdipierro
I noticed this new version immediately mentioned in the admin app upon
creating my first app today (from a download yesterday!).
What I need to know is:
1. what's the upgrade procedure
2. what's changelog.
Generally I really like it when there's a what's new link next to
any new version link.
On Jun 3, 9:17 pm, Fran francisb...@googlemail.com wrote:
More later, perhaps ;)
Pg 76
both file contents and
^
Uploaded files are always streamed
^
Pg 80
.count() - does this not work on GAE still?
Pg 81
row is None if no record with current id
^
I find the white text a bit hard to read against that textured
background on the slides. Please use a background without so much
contrast within its texture. (Or no texture at all, my preference.)
Slide 13: s/you app/your app/
s/scaffoling/scaffolding/
Slide 114: much of the text is in
Hi rhubarb,
new features are listed in the README files.
usually 1.63.xxx versions are bug fixes version. In this case better
docstrings, some undocumented experimental features that you should
not be using and fixed an issue with SQLite on windows in presence of
strange chars in paths.
We do
On Jun 3, 9:24 pm, rhubarb rover.rhub...@gmail.com wrote:
2. what's changelog.
Generally I really like it when there's a what's new link next to
any new version link.
+1 to having the full changelog visible from the webpage rather than
needing to download the .zip then follow the
I've just downloaded the MacOSX v 1.63.3, and its exhibiting this same
problem. I had gotten an earlier copy through launchpad, and the
problem was indeed fixed. Is it possible the pre-compiled version
isn't up to date? I noticed that the web2py executable (in the MacOS
directory) is dated
I don't see the point in paying attention to those comments. All this
reddit/twiter thing is mostly noise (and now even insults !). Why
should you care about whinners ?
On Jun 3, 8:42 pm, Wes James compte...@gmail.com wrote:
seems odd that there are down votes on this subject already. Must be
I am so used to reading latest changes first, that I found reading the
README... a bit annoying.
Quick / dirty fix attached (insert in your web2py dir, and run readme.py to
view the README file)
perhaps you'll appreciate this...
On Wed, Jun 3, 2009 at 4:18 PM, Fran
Hi
I've made a web2py application that uses AJAX long polling for
bringing content to the browser at realtime, but in order to optimize
it I want a request to be locked until some event ocurrs so the AJAX
request function does not need to do periodic polling (reducing cpu
usage and latency). Is
Actually No! the args=[prodj.id] are not passed and Get the following
ticket:
Traceback (most recent call last):
File C:\APPS\web2py\gluon\restricted.py, line 107, in restricted
exec ccode in environment
File C:/APPS/web2py/applications/jpolie/controllers/default.py,
line 90, in module
This may be a newbie question, but will someone tell me what'd be the
proper way of putting T() to the line below?
liUsers can access the store a
href={{=request.application}}here/a/li
It's in manage/setup.html of the eStore appliance.
I've tried like
li{{=T('Users can access the store a
http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/
thanks to those who gave support.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To
because those people are influential people in the Django community,
the same people posting negative comments about web2py everywhere.
Massimo
On Jun 3, 5:16 pm, desfrenes desfre...@gmail.com wrote:
I don't see the point in paying attention to those comments. All this
reddit/twiter thing is
I'm trying to migrate a web2py app to a centos server that comes with Python
2.4.3
So far I hit errors with hashlib and uuid (easily fixed installing
python-hashlib and python-uuid). However now I have a problem with the code:
$ ./web2py.py
Traceback (most recent call last):
File ./web2py.py,
You should not start a thread from a web2py thread (without lots of
caveats).
Massimo
On Jun 3, 4:46 pm, Juan sor...@gmail.com wrote:
Hi
I've made a web2py application that uses AJAX long polling for
bringing content to the browser at realtime, but in order to optimize
it I want a request
li{{=T('Users can access the store')}} a
href={{=request.application}}{{=T('here')}}/a/li
you still need to go to admin and edit the translation in the language
requested by the browser.
Massimo
On Jun 3, 7:14 pm, suiato homm...@gmail.com wrote:
This may be a newbie question, but will someone
On Thu, Jun 4, 2009 at 10:19 AM, mdipierro mdipie...@cs.depaul.edu wrote:
because those people are influential people in the Django community,
the same people posting negative comments about web2py everywhere.
I am not sure whether such comments matter.
People seriously using such development
Mariano,
I got this information from the link below.
web2py Download
http://www.web2py.com/examples/default/download
Current Version 1.63.3 (2009-06-02 22:13:56)
* for Windows
* for Mac
* source code for all platforms (requires Python 2.5, runs on
Windows and most Unix
On Jun 3, 10:18 pm, cesmiga cesm...@gmail.com wrote:
Mariano,
I got this information from the link below.
web2py Download
http://www.web2py.com/examples/default/download
Current Version 1.63.3 (2009-06-02 22:13:56)
* for Windows
* for Mac
* source code for all platforms
Thanks, Massimo
2009/6/4 mdipierro mdipie...@cs.depaul.edu:
li{{=T('Users can access the store')}} a
href={{=request.application}}{{=T('here')}}/a/li
OK. It works :)
I hoped T() could include the whole line because word orders are
different (often reversed) in Japanese.
For example, verb in
Massimo,
Following Horst's observations from a different angle.
1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is
Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal
junk. Go take a look at table 2a -- http://www.census.gov/epcd/www/smallbus.html
. The tally
It can
li{{=XML(str(T('Users can access the store a href=%shere/a',
(request.application)))}}/li
Massimo
On Jun 3, 8:31 pm, suiato homm...@gmail.com wrote:
Thanks, Massimo
2009/6/4 mdipierro mdipie...@cs.depaul.edu:
li{{=T('Users can access the store')}} a
I've tried this with the pyjamas tutorial and it didn't work. I've
enabled user registration and registered a user whose credentials are
used in the URL below. I got a server error when a function requiring
user authentication was called.
I changed the line
JSONProxy.__init__(self,
2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu:
It can
li{{=XML(str(T('Users can access the store a href=%shere/a',
(request.application)))}}/li
Massimo
Wow, great!
It worked after adding a paranthesis ) to close XML. (The correction
was easy to make thanks to the friendly editor in
it may work without the str but I have not tried.
On Jun 3, 10:01 pm, suiato homm...@gmail.com wrote:
2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu:
It can
li{{=XML(str(T('Users can access the store a href=%shere/a',
(request.application)))}}/li
Massimo
Wow, great!
It
When I say enterprise I do not mean large businesses, I rather
mean businesses and non profit organizations that use computers and
follow a more or less professional software development cycles.
I agree with you that small businesses are more profitable and a
better market for web2py than large
actually it should work with 2.4 even if we do not like to advertise
it (because of the backward compatibility issues). 1.63.3 broke this
because of a patch. I am fixing this as we speak. Tomorrow it will
work with 2.4 Sorry.
Massimo
On Jun 3, 8:25 pm, Mariano Mara mariano.m...@gmail.com wrote:
useful thanks.
Massimo
On Jun 3, 6:05 pm, Yarko Tymciurak yark...@gmail.com wrote:
I am so used to reading latest changes first, that I found reading the
README... a bit annoying.
Quick / dirty fix attached (insert in your web2py dir, and run readme.py to
view the README file)
When writing {{=XML(str(T(...)))}}} lines for translation here and
there, I realize it might be better to modify T(), wrapping the
current T() with XML(str()). It will be simpler in expression, and
won't break the compatibility, will it? Otherwise, you might end up
with typing lots of
In model you can just do
Tx=lambda *a: XML(str(T(*a))
and use Tx instead.
On Jun 3, 10:51 pm, suiato homm...@gmail.com wrote:
When writing {{=XML(str(T(...)))}}} lines for translation here and
there, I realize it might be better to modify T(), wrapping the
current T() with XML(str()). It
1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is
Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal
junk. Go take a look at table 2a
--http://www.census.gov/epcd/www/smallbus.html
. The tally of firms 100 employees to those 100 outrank them 10x.
You're
Hello Eric,
We do not have to agree on everything but I do value your opinion so I
am happy to have you here.
Massimo
On Jun 3, 9:33 pm, Eric Florenzano flo...@gmail.com wrote:
1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is
Tech Press/Vendor Spiel to create marketshare
I just posted 1.63.4 because I patch in 1.63.3 had broken Python 2.4
and it was an urgent matter.
I think the problem is now fixed.
Changelog:
- fixed python 2.4
- fixed problem with strange char encoding of absolute paths in sqlite
on windows. Thanks Iceberg.
Massimo
2009/06/04 12:57 mdipierro mdipie...@cs.depaul.edu:
In model you can just do
Tx=lambda *a: XML(str(T(*a))
and use Tx instead.
This is a good learning experience for me. Lots of thanks, Massimo.
By the way, XML(T()) seems to work when I tested with an example.
Cheers,
Teru
Massimo,
We're on the same wavelength.
Though I have to say that to many in the IT trade press, 'Enterprise'
to them is the Fortune 5000. Which the joke is on them. That side of
the business spends a lot of money but the margins are nonexistent. I
spent the last 10 years of a 30year IT career
Strange because i did break out the filename building to a function.
And both the appadmin and the app download works jut fine.
def __db_filename(tablename, fieldname, filename):
import re, uuid, base64
re_extension = re.compile('\.\w{1,5}$')
m = re_extension.search(filename)
e =
83 matches
Mail list logo