if you're talking about P 145 in the 2nd edition, those are views that is
what is translated, and sent down the pipe to the client end (e.g. the
browser); -S gives you access to the application context, server side
(basically as a controller command line, if you want to think of it that
way);
Hi Graham,
I do not think this is necessary. You can just create a routes.py file
in the web2py folder and write in it
routes_in=(('/grahamd/(?Pany.*)','/\gany'),)
routes_out=(('/(?Pany.*)','/grahamd/\gany'),)
we have been using this for pycon registration for example.
On Sep 3, 11:19 pm,
check if this does what you need:
http://www.web2py.com/appliances/default/show/38
Massimo
On Sep 3, 11:34 pm, Adi aditya.sa...@gmail.com wrote:
Hi,
I'm new to web2py. I have this requirement - on loading a page, I want
to trigger a background process automatically. Since the process is
edit
applications/cas/models/email.py
and replace the code with
EMAIL_SERVER=smtp.gmail.com:587
EMAIL_SENDER=y...@google.com
EMAIL_PASSWORD=password ## your assword
def email(sender,to,subject,message):
import smtplib
fromaddr=sender
if type(to)==type([]): toaddrs=to
else:
On Sep 4, 4:11 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Hi Graham,
I do not think this is necessary. You can just create a routes.py file
in the web2py folder and write in it
routes_in=(('/grahamd/(?Pany.*)','/\gany'),)
routes_out=(('/(?Pany.*)','/grahamd/\gany'),)
we have been
I think we can modify your patch so that it does not require r=request
(which would break some apps)
I think request.env..script_name is the same for all applicaitons
within one web2py installation (correct?)
In this case we can store it in settings and retrieve it from inside
URL.
What do you
Hello Joe,
I have copied the full output of the pyjsbuild command into the static
folder of my todo app.
The bootstrap.js file is present there and is loaded, but as it runs,
I tries to serve
some TodoApp.nocache.html file and that file is not found because it
is not requested from the static
meta name=pygwt:module content=TodoApp
Based on this post:
http://groups.google.com/group/pyjamas-dev/browse_thread/thread/cd78e97cbd997e70/2e92997bd980b6ea?lnk=raotpli=1
I think perhaps I should experiment a bit with the value of the
content attribute in the meta tag.
I'll try it out
Hi,
I've been using t2 horizontal menu and would like to use the same
feature 'coz it looks a lot better than the horizontal menu of web2py
ver. 1.66. Can somebody help modify the following t2 style.css:
/* Menu */
#menu {
width: 920px;
height: 50px;
margin: 0 auto;
}
I have developed few apps using django and trying to understand
web2py. Lack of web2py documentation is hindering me from learning
web2py ( and things are diffrent from django)
Any pointers for a newbee to web2py? I want to convert django tutorial
in web2py tutorial as learning process and will
I am working with Sphinx 1.x. The development version.
I have completed the mentioned Sphinx bug yesterday.
I may get feedback on this from the Sphinx devs later.
Generally, the API documentation is very tricky for web2py.
With my own libraries (without classes) I never experienced this
issue.
Hi Manoj,
Apart from the PDF or printed book, there are many videos (on vimeo)
recorded by Massimo. There is also some info on the wiki.
You could just unzip the src zip file and read the example or admin
apps bundled. This is how I started. Make small edits on the example
app to understand how
On Sep 4, 4:26 pm, mdipierro mdipie...@cs.depaul.edu wrote:
I think we can modify your patch so that it does not require r=request
(which would break some apps)
Why would requiting r=request for URL calls break some applications?
The code for URL is:
application = controller = function =
change by
con = kinterbasdb.connect(host='', database=r'k:\web2py
\fbembed.fdb',user='sysdba', password='masterkey')
José,
You rock man! I never tried the little 'r'. So maybe now there is a
way!
I didn't play around with it so much yet, but I suppose the web2py
regex which checks the
Thanks for the response Massimo!
Let's say I have 2 fields (table.user_id and table.postal_code) in a
many to many table. And this would be the controller level logic:
myduplicate = (db.table.user_id!= request.args[0])
(table.postal_code!= request.args[1]).select().[0]
So it's possible to
On 9月1日, 午後3:20, suiato homm...@gmail.com wrote:
...
so far, i've found the web2py editor uses nicEdit, which is written in
JavaScript and uses jQuery. jQuery has anautocompleteplugin (http://
bassistance.de/jquery-plugins/jquery-plugin-autocomplete/).
looking further, i found:
- nicEdit is
The WSGI specification defines an optional extension referred to as
wsgi.file_wrapper.
http://www.python.org/dev/peps/pep-0333/#optional-platform-specific-file-handling
The intent of this is so that WSGI hosting mechanisms can provide a
better performing way for responding with content from
Perhaps I don't understand doctests fully, but isn't all output from
them converted to string anyway? You're essentially checking print
statements from the shell, right?
For example, here is the IS_MATCH validator's doctests:
IS_MATCH('.+')('hello')
('hello', None)
Yes! It works now.
The embarassing thing is that the manual already showed the correct
way to do it
(it had a modified content attribute) and I completely overlooked it.
Best regards,
Stefaan.
To summarize my steps:
* make your pyjamas application, e.g. TodoApp.py
* use pyjsbuild to create
I think so.
On Sep 4, 3:51 am, Timmie timmichel...@gmx-topmail.de wrote:
I am working with Sphinx 1.x. The development version.
I have completed the mentioned Sphinx bug yesterday.
I may get feedback on this from the Sphinx devs later.
Generally, the API documentation is very tricky for
Do you know this is discussed in the book? Chapter 10.
Massimo
On Sep 4, 5:45 am, suiato homm...@gmail.com wrote:
On 9月1日, 午後3:20, suiato homm...@gmail.com wrote:
...
so far, i've found the web2py editor uses nicEdit, which is written in
JavaScript and uses jQuery. jQuery has
You are correct that the solution you proposed would work. My only
concern is that some existing application do URL(app,controller,
function) instead of URL(r=request,function). That is valid. When they
try to deploy behind WSGI in a subfolder they will find the links
break. I agree with you that
How to authenticate against Microsoft Active Directory, and if it
fails, authenticate against Fedora Directory Server.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this
could it be the number of spaces between the , and the None?
On Sep 4, 6:17 am, Matthew matthew.g.nor...@gmail.com wrote:
Perhaps I don't understand doctests fully, but isn't all output from
them converted to string anyway? You're essentially checking print
statements from the shell, right?
On 9月4日, 午後7:45, suiato homm...@gmail.com wrote:
...
- editArea (made by Christophe Dolivet) is used for editing the code.
- its code and usage actually look more straightforward than those of
nicEdit.
- autocomple feature is in its todo list :-)
well, found that autocompletion.js is already
On 9月4日, 午後9:43, mdipierro mdipie...@cs.depaul.edu wrote:
Do you know this is discussed in the book? Chapter 10.
Thanks, Massimo. Sorry. I will read it :-)
Massimo
--
Teru
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Sep 4, 1:49 pm, mdipierro mdipie...@cs.depaul.edu wrote:
You are correct that the solution you proposed would work. My only
concern is that some existing application do URL(app,controller,
function) instead of URL(r=request,function). That is valid. When they
try to deploy behind WSGI in a
On Sep 4, 2:59 pm, opp onel.pine...@etecsa.cu wrote:
How to authenticate against Microsoft Active Directory, and if it
fails, authenticate against Fedora Directory Server.
Look in the Scribus-published book for LDAP:
http://web2py.com/examples/default/docs
F
in the Auto-completion section, Chap.10, it's nice to find out how to
incorporate autocompletion in web2py applications with controllers and
views.
my initial interest was to enable autocompletion in coding the program
online. the editor (EditArea) is a Javascript program located in the
I was wondering if there was a command to list the database when you
are in ipython?
On Sep 4, 12:03 am, Yarko Tymciurak yark...@gmail.com wrote:
if you're talking about P 145 in the 2nd edition, those are views that is
what is translated, and sent down the pipe to the client end (e.g. the
Hi Massimo,
I tried the VideTest app from the link above and I successfully
uploaded a video but I got Please wait while your video is
processed... for a very long time. It seems the video was not
converted or maybe I am doing something wrong. Is there something I
have to do to make the app
Excellent. I'm eager to try out web2pyjamas myself!
On Sep 4, 5:30 am, stefaan stefaan.hi...@gmail.com wrote:
Yes! It works now.
The embarassing thing is that the manual already showed the correct
way to do it
(it had a modified content attribute) and I completely overlooked it.
Best
Hi all,
I deployed my web2py app to GAE, and received the following error:
SyntaxError: invalid select attribute: distinct
If using web2py's default arguments to get distinct values is not
valid on GAE, is there any other way?
Thanks,
Derek
As a recent beginner myself. The best thing I can recommend in order
to learn how to use the framework is just sit down and start coding.
Look through the Documentation page, specifically the interactive
examples page, look at the Cheat Sheet (and have it open as you code),
and look the the
I setup a model using sql light default db. I then built a simple
SQLForm. However, when I change a field in the model to notnull=True,
the SQLForm still processes the form as though it was False. That is
until I delete the files in the database folder in web2py, and close
and re-open web2py.app
On Fri, Sep 4, 2009 at 2:13 PM, waTR r...@devshell.org wrote:
As a recent beginner myself.
.
IMPORTANT: if you can afford the $12, get the official manual, it
makes life MUCH easier! Though you can still get by without it,
depending on your comfort level with using/web
That is true. I am in favor of including Graham's patch for now but I
have a feeling there has to be a better solution.
On Sep 4, 10:12 am, Fran francisb...@googlemail.com wrote:
On Sep 4, 1:49 pm, mdipierro mdipie...@cs.depaul.edu wrote:
You are correct that the solution you proposed would
editarea does not do autocomplete but amy editor does. There is a flag
in admin/models/0.py that ley you use Amy editor. It does not work
with every browser but does autocomplete.
On Sep 4, 9:49 am, suiato homm...@gmail.com wrote:
in the Auto-completion section, Chap.10, it's nice to find out
no that I know.
On Sep 4, 2:05 pm, Derek cunningh...@gmail.com wrote:
Hi all,
I deployed my web2py app to GAE, and received the following error:
SyntaxError: invalid select attribute: distinct
If using web2py's default arguments to get distinct values is not
valid on GAE, is there any
http://giantflyingsaucer.com/blog/?p=811 Also shown on Dzone, I voted
it up.
--~--~-~--~~~---~--~~
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
I think you need some additional libraries for the conversion. It
should be in the documentation.
On Sep 4, 12:17 pm, eddwinston eddwins...@gmail.com wrote:
Hi Massimo,
I tried the VideTest app from the link above and I successfully
uploaded a video but I got Please wait while your video is
Not sure I understand. notnull=True is different from
requires=IS_NOT_EMPTY(). The former is enforced by the database, the
latter bu the SQLFORM. You need both.
Massimo
On Sep 4, 2:21 pm, b00m_chef r...@devshell.org wrote:
I setup a model using sql light default db. I then built a simple
Yes, there is a list of default validators, I think in chapter 6.
Massimo
On Sep 4, 4:25 pm, waTR r...@devshell.org wrote:
ahh ok. Is that mentioned somewhere in the manual?
just wondering.
On Sep 4, 1:17 pm, mdipierro mdipie...@cs.depaul.edu wrote:
turns out string, double, date,
What was throwing me off was that one of the fields (type DOUBLE),
doesn't allow user to leave it blank. So SQLForm prevents continuation
until you enter some value for the DOUBLE field. Even though it has no
validators attached to it nor does it have notnull=True. That really
threw me off... is
turns out string, double, date, datetime and time all have default
validators.
On Sep 4, 3:11 pm, waTR r...@devshell.org wrote:
What was throwing me off was that one of the fields (type DOUBLE),
doesn't allow user to leave it blank. So SQLForm prevents continuation
until you enter some value
ahh ok. Is that mentioned somewhere in the manual?
just wondering.
On Sep 4, 1:17 pm, mdipierro mdipie...@cs.depaul.edu wrote:
turns out string, double, date, datetime and time all have default
validators.
On Sep 4, 3:11 pm, waTR r...@devshell.org wrote:
What was throwing me off was
+1
On Sep 4, 3:34 pm, mikech mp.ch...@gmail.com wrote:
http://giantflyingsaucer.com/blog/?p=811 Also shown on Dzone, I voted
it up.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to
I can't believe it! Someone finally admitted that the documentation
was excellent!
On Sep 4, 3:34 pm, mikech mp.ch...@gmail.com wrote:
http://giantflyingsaucer.com/blog/?p=811 Also shown on Dzone, I voted
it up.
--~--~-~--~~~---~--~~
You received this message
Hello,
I have configured my cherokee server as mentioned here
http://www.web2py.com/AlterEgo/default/show/184
i have defined a virtual host called music and each time, i run this
url
http://music/
it automatically redirects to
http://music/welcome/default/index
and says 404 not found.
the
On Sep 5, 5:55 am, mdipierro mdipie...@cs.depaul.edu wrote:
That is true. I am in favor of including Graham's patch for now but I
have a feeling there has to be a better solution.
Massimo, you have replied to the wrong discussion thread, so part of
what Fran was saying was actually pertinent
yes you have to run it manually. this is how fcgi works. it is the
same for lighttpd and cherokee. I never run the latter myself so I am
sure other users can help you better
On Sep 4, 6:21 pm, Arvind arvind.ran...@gmail.com wrote:
Hello,
I have configured my cherokee server as mentioned
Thanks, Massimo
2009/9/5 mdipierro mdipie...@cs.depaul.edu:
editarea does not do autocomplete but amy editor does. There is a flag
in admin/models/0.py that ley you use Amy editor. It does not work
with every browser but does autocomplete.
oh, interesting. looking at its web
Hello,
I've done this tutorial http://www.web2pyslices.com/main/slices/take_slice/1
(thanks Nathan!) but i can't get it work.
a few questions:
1. in where folder i must to create the symlink wsgihandler.py to
passenger_wsgi.py ??
2. why i've have to set a public folder in Dreamhost Panel if i
1. What is the difference between the lulu and amazon web2py book?
I see $12 vs $50
2. Please start a web2py job board. Everyone is interested in Web2py +
GAE model.
But its tough to find a lot of developers like we do for PHP.
Thanks
--~--~-~--~~~---~--~~
You
Thanks guys. I am in china right now. scribd is block. Once i am in
my home country I will go ahead and buy 2nd edition
As i said I have started documenting web2py in mindmaps. I will post
files here. let me know if you guys like the approach and if its
worthwhile to document web2py this way.
On Sep 4, 2009, at 6:21 PM, Markus wrote:
1. What is the difference between the lulu and amazon web2py book?
I see $12 vs $50
pdf vs hard copy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py-users
How to upload files to this group ?
On Sep 5, 9:22 am, Manoj sonawane.ma...@gmail.com wrote:
Thanks guys. I am in china right now. scribd is block. Once i am in
my home country I will go ahead and buy 2nd edition
As i said I have started documenting web2py in mindmaps. I will post
files
Solved!
I was a stupid.
i don't replace username in :
INTERP = /home/username/local/bin/python2.5
sorry,
and thanks!
Pepe
On Sep 4, 7:50 pm, Pepe pepea...@gmail.com wrote:
Hello,
I've done this tutorialhttp://www.web2pyslices.com/main/slices/take_slice/1
(thanks Nathan!) but i can't
Anyone experience an error when running web2py from the launcher?
I get this:
type 'exceptions.ImportError': No module named _multiprocessing
args = ('No module named _multiprocessing',)
message = 'No module named _multiprocessing'
About the only reason I want to run it from the
Glad you got it working. I still haven't had any problems with
Passenger WSGI and the performance seems good.
On Sep 4, 8:29 pm, Pepe pepea...@gmail.com wrote:
Solved!
I was a stupid.
i don't replace username in :
INTERP = /home/username/local/bin/python2.5
sorry,
and thanks!
Pepe
OK, more googling (I swear I googled before) and found this:
Basically, use Python 2.5 instead of Python 2.6
I'm reinstalling as we speak. :)
On Sep 4, 10:53 pm, Derek cunningh...@gmail.com wrote:
Anyone experience an error when running web2py from the launcher?
I get this:
type
Do not buy the printed book.
The printed book is outdated. The new one will be out at the end of
the month.
The lulu.com book is the most recent one.
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Sorry Graham. You are right I got confused. Had a long day.
I will add you patch to trunk but, as you and Fran, say we should make
this optional.
What do you suggest as a way to make this optional?
Massimo
On Sep 4, 6:49 pm, Graham Dumpleton graham.dumple...@gmail.com
wrote:
On Sep 5, 5:55
web2py understands 90% of Django and SQLAlchemy models.
http://web2py.com/AlterEgo/default/show/189
Massimo
On Sep 4, 8:28 pm, Manoj sonawane.ma...@gmail.com wrote:
How to upload files to this group ?
On Sep 5, 9:22 am, Manoj sonawane.ma...@gmail.com wrote:
Thanks guys. I am in china
Currently the printed version is only the first edition. Do not buy
it.
The second edition should be out soon and should be $35.
On Sep 4, 8:21 pm, Markus prakash...@gmail.com wrote:
1. What is the difference between the lulu and amazon web2py book?
I see $12 vs $50
2. Please start a
On Fri, Sep 4, 2009 at 8:21 PM, mdipierromdipie...@cs.depaul.edu wrote:
Sorry Graham. You are right I got confused. Had a long day.
I will add you patch to trunk but, as you and Fran, say we should make
this optional.
What do you suggest as a way to make this optional?
Massimo
OK, so I re-wrote the queries involving distinct so that I just
iterate over the recordsets and create my own array with distinct
values.
But I'm still getting an error about distinct. I've 'cleaned' the app
in case the old code is causing this.
Here's the error:
ERROR2009-09-05
On Sep 5, 1:19 pm, Wes James compte...@gmail.com wrote:
On Fri, Sep 4, 2009 at 8:21 PM, mdipierromdipie...@cs.depaul.edu wrote:
Sorry Graham. You are right I got confused. Had a long day.
I will add you patch to trunk but, as you and Fran, say we should make
this optional.
What do you
Graham -
On Fri, Sep 4, 2009 at 11:08 PM, Graham Dumpleton
graham.dumple...@gmail.com wrote:
On Sep 5, 1:19 pm, Wes James compte...@gmail.com wrote:
On Fri, Sep 4, 2009 at 8:21 PM, mdipierromdipie...@cs.depaul.edu
wrote:
command-line option
A command line option makes no sense in
quickly reading the manual of Amy Editor, its 'snippets' chapter shows
rich features including what i mentioned in the previous post.
to make full use of its power, it can run on a server, written in PHP.
Timmie in [web2py:29959] showed links to editors:
* http://labs.mozilla.com/bespin/
*
Hi Massimo,
My first web2py app is an order management system for my company, it
worked well in enterprise production for more than 15 months now. By
the way, all my other first work of something ended up as just a
prototype but not this one, thank god and web2py. I am refactoring the
app and
71 matches
Mail list logo