Hi All,
I really don't understand what's going on. I've been developing/
learning in web2py for the past week, and suddenly when I decide to
deploy my code, I'm getting this odd error:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
File "C:/web2py/appl
I use this to dynamically generate a menu from my controllers and
functions during development. Just replace the existing response.menu
assignment in menu.py in your app's 'models' folder:
import os
from gluon.myregex import regex_expose
ctldir = os.path.join(request.folder,"controllers")
ctls=o
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 g
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/
* http:
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 wrote:
> > On Fri, Sep 4, 2009 at 8:21 PM, mdipierro
> wrote:
> >
>
> > command-line option
>
> A command line option makes no sense in the context of either the URL
>
On Sep 5, 1:19 pm, Wes James wrote:
> On Fri, Sep 4, 2009 at 8:21 PM, mdipierro 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 op
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 03:37:26,47
On Fri, Sep 4, 2009 at 8:21 PM, mdipierro 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
>
command-line option
-wes
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 wrote:
> Anyone experience an error when running web2py from the launcher?
>
> I get this:
>
> : No module named _multiproc
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 wrote:
> Solved!
>
> I was a stupid.
>
> i don't replace "username" in :
>
> INTERP = "/home/username/local/bin/python2.5"
>
> sorry,
>
> and thanks!
>
> Pepe
>
Anyone experience an error when running web2py from the launcher?
I get this:
: 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 launcher is to build
the index.y
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
"web2py-us
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
wrote:
> On Sep 5, 5:55 am, mdipierro wrote:
>
> >
web2py understands 90% of Django and SQLAlchemy models.
http://web2py.com/AlterEgo/default/show/189
Massimo
On Sep 4, 8:28 pm, Manoj wrote:
> How to upload files to this group ?
>
> On Sep 5, 9:22 am, Manoj wrote:
>
> > Thanks guys. I am in china right now. scribd is block. Once i am in
> >
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 wrote:
> 1. What is the difference between the lulu and amazon web2py book?
>
> I see $12 vs $50
>
> 2. Please start a web2py job board. Ev
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 wrote:
> Hello,
>
> I've done this tutorialhttp://www.web2pyslices.com/main/slices/take_slice/1
> (thanks Nathan!) but i can't get it work.
How to upload files to this group ?
On Sep 5, 9:22 am, Manoj 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 here. let me know if y
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" g
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.
A
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
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
Thanks, Massimo
2009/9/5 mdipierro :
>
> 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 site(http://www.amyeditor.com/),
it
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 wrote:
> Hello,
>
> I have configured my cherokee server as mentioned
> herehttp://www.web2py.c
On Sep 5, 5:55 am, mdipierro 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 to this discussion th
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 proce
I can't believe it! Someone finally admitted that the documentation
was excellent!
On Sep 4, 3:34 pm, mikech wrote:
> http://giantflyingsaucer.com/blog/?p=811 Also shown on Dzone, I voted
> it up.
--~--~-~--~~~---~--~~
You received this message because you are sub
+1
On Sep 4, 3:34 pm, mikech 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 this group, send
ahh ok. Is that mentioned somewhere in the manual?
just wondering.
On Sep 4, 1:17 pm, mdipierro wrote:
> turns out string, double, date, datetime and time all have default
> validators.
>
> On Sep 4, 3:11 pm, waTR wrote:
>
> > What was throwing me off was that one of the fields (type DOUBLE),
turns out string, double, date, datetime and time all have default
validators.
On Sep 4, 3:11 pm, waTR 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 for the DOUBLE
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 t
Yes, there is a list of default validators, I think in chapter 6.
Massimo
On Sep 4, 4:25 pm, waTR wrote:
> ahh ok. Is that mentioned somewhere in the manual?
>
> just wondering.
>
> On Sep 4, 1:17 pm, mdipierro wrote:
>
> > turns out string, double, date, datetime and time all have default
> >
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 wrote:
> I setup a model using sql light default db. I then built a simple
> SQLForm. However, wh
I think you need some additional libraries for the conversion. It
should be in the documentation.
On Sep 4, 12:17 pm, eddwinston 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
> processed..."
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 unsub
no that I know.
On Sep 4, 2:05 pm, Derek 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 other way?
>
> T
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 wrote:
> in the Auto-completion section, Chap.10, it's nice to find out how to
> incorpora
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 wrote:
> On Sep 4, 1:49 pm, mdipierro wrote:
>
> > You are correct that the solution you proposed would work. My only
> > concern is that some existin
On Fri, Sep 4, 2009 at 2:13 PM, waTR 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 development python.
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
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 presen
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
--~--~-~--~~~---~--~---
Excellent. I'm eager to try out web2pyjamas myself!
On Sep 4, 5:30 am, stefaan 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 regards,
> Stefaan.
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 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
> browser); -S
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 con
On Sep 4, 2:59 pm, opp 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
--~--~-~--~~~---~--~~
Y
On Sep 4, 1:49 pm, mdipierro 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 subfolder they will
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
admin/sta
On 9月4日, 午後9:43, mdipierro 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 Google Groups
"web2py-use
On 9月4日, 午後7:45, suiato 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 included !
nee
could it be the number of spaces between the , and the None?
On Sep 4, 6:17 am, Matthew 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?
>
> For example, here is
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 grou
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
Do you know this is discussed in the book? Chapter 10.
Massimo
On Sep 4, 5:45 am, suiato wrote:
> On 9月1日, 午後3:20, suiato wrote:
> ...
>
>
>
> > so far, i've found the web2py editor uses nicEdit, which is written in
> > JavaScript and uses jQuery. jQuery has anautocompleteplugin (http://
> > b
I think so.
On Sep 4, 3:51 am, Timmie 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 web2py.
> With my own li
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 the
Manoj,
FYI - The entire second edition is available on Scribd in read-only
form if that is any help.
http://www.scribd.com/doc/19211452/Web2py-Manual
-Eric
On Sep 4, 4:08 am, Manoj wrote:
> I have developed few apps using django and trying to understand
> web2py. Lack of web2py documentation i
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)
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 a
On 9月1日, 午後3:20, suiato 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 used for html
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 hav
> 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
On Sep 4, 4:26 pm, mdipierro 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 = None
if r:
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
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.
F
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 p
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;
}
#men
>
Based on this post:
http://groups.google.com/group/pyjamas-dev/browse_thread/thread/cd78e97cbd997e70/2e92997bd980b6ea?lnk=raot&pli=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 tonight.
--~--~-~--~~-
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 fo
68 matches
Mail list logo