Thanks Massimo, I will try that out
On Jan 20, 8:05 pm, mdipierro wrote:
> Voltron,
>
> if you have more than 100 cuncurrent users you should not use
> wsgiserver. You need to use mod_wsgi. I would not swear on wsgiserver
> on that heavy load.
>
> You also have 100 database connections. Make sur
yes but only so that you can test them and provide feedback. I hope to
finalize the APIs and documentations within the week.
also I would like to change the name of the file from utils.py to
something more catchy. Any suggestion?
Massimo
On Jan 21, 1:33 am, David Marko wrote:
> These things lo
I cannot get my site to work using WSGI, this is the error I see in
the Apache configs:
[Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] mod_wsgi
(pid=31101): Target WSGI script '/projects/test_site/wsgihandler.py'
cannot be loaded as Python module.
[Wed Jan 21 10:57:11 2009] [error] [cl
try edit wsgihandler.py and replace this line
path=os.path.dirname(os.path.abspath(__file__))
with
path='/bla/bla/bla'
where
'/bla/bla/bla' should be the absolute path to your web2py folder '/.../
web2py/'
and make sure you have the folder gluon in there.
Massimo
On Jan 21, 4:09 am, voltro
Hi Massimo!
thanks for your help. Sadly, that did not work either , another idea?
Thanks
On Jan 21, 11:31 am, mdipierro wrote:
> try edit wsgihandler.py and replace this line
>
> path=os.path.dirname(os.path.abspath(__file__))
>
> with
>
> path='/bla/bla/bla'
>
> where
>
> '/bla/bla/bla' shoul
good, let us know.
On Jan 20, 7:47 pm, "Sebastian E. Ovide"
wrote:
> ok... I had assumed that it was setted to work both with sqlite and GAE...
>
> I've replaced
>
> db=SQLDB('sqlite://identity.db')
>
> with
>
> try:
> from gluon.contrib.gql import * # if running on Google App
> Engi
On Jan 21, 12:46 pm, mdipierro wrote:
> also I would like to change the name of the file from utils.py to
> something more catchy. Any suggestion?
high_level_enhancements.py ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
On Wed, Jan 21, 2009 at 12:08 PM, Jonathan Benn wrote:
> On Jan 21, 12:46 pm, mdipierro wrote:
>
>> also I would like to change the name of the file from utils.py to
>> something more catchy. Any suggestion?
>
> high_level_enhancements.py ?
Way to unwieldy, IMO.
The gluon folder already contai
Hi all,
About 2 months ago we were discussing allowing the IS_URL validator to
validate Unicode URLs. I did some research, and learned that Python
3.0 supports the necessary codecs to do this. In Python 3,
implementing Unicode URLs in IS_URL would require only a few extra
lines of code in IS_URL
Hi Massimo,
On Jan 20, 8:36 pm, mdipierro wrote:
> Make sure they apply to the latest trunk since we have a completely re-
> factored template engine, a new SQLFORM that uses widgets, new
> SQLField attributes, and cross-platform cron job functionality.
Are the web2py syntax/library changes d
I might actually start using T2 functionality now. This is good stuff!
mdipierro wrote:
> I have a preliminary version of inclusion if T2 functionality into
> web2py core. I am not yet promising backward compatibility here. The
> module name many change. For now it is in trunk as gluon/utils.py
Hi,
Can you paste in a message the relevant lines from your httpd.conf?
Also, what is the location of your web2py installation?
Finally, what version of Apache?
Cheers
On Jan 21, 10:35 am, voltron wrote:
> Hi Massimo!
>
> thanks for your help. Sadly, that did not work either , another idea?
>
There's no place for a web framework in Python 3 yet because there are
no database drivers (except SQLite) and no win32 support. web2py would
need these. Most other frameworks use external templating and ORM
solutions which will have to be ported over as well for them to work.
I've been foll
I've been away a while so I am trying to catch up with all the new
stuff. I've downloaded the version in trunk and I'm trying to get my
head around it all. My first (admittedly very early) impressions are:
1) The functionality is nice but, personally, I don't see utils.py
stuff as core web2py.
So the big question is...what would a plugin system look like? What
would you want it to control?
Currently the T2 functionality is a set of Python methods that you can
expose and add to your app. I agree that it looks cludgy, but how can
it be made better?
I want to keep things narrow in t
Only in my posts to this group for now. Mind that the old syntax still
works.
On Jan 21, 6:53 am, Jonathan Benn wrote:
> Hi Massimo,
>
> On Jan 20, 8:36 pm, mdipierro wrote:
>
> > Make sure they apply to the latest trunk since we have a completely re-
> > factored template engine, a new SQLFORM
I'm interested in different forms of url's and had a read about
routes.py. But the manual tells me my app shouldn't rely on routes.py
being present. So I thought of the following approach (it's the
result of all of 15 minutes thinking/code/test so don't expect too
much).
* I want to be able to
For now, I don't know if there is a difference between module and
plugin but let's assume there is to keep it discreet.
* a plugin folder
* each plugin is a) a file or b) a folder - latter is more flexible if
more than file required
* an admin UI can display all plugins from the plugin folder
Hi Petros!
the location of my web2py installation: "/project/test_site/"
# config snippet
ServerName test_site.com
### alias the location of applications (for static files)
#Alias / /projects/test_site/applications/
### setup WSGI
WSGIScriptAlias / /projects/test_s
Thanks Timothy for your help. I got it to work somewhat based on your
files and tutorial.
One thing though, I dad to modify the dispatch.fcgi file as in:
#!/usr/bin/env python2.5
import os
import sys
WEB2PY_PATH = os.path.normpath('/path to web2py/')
os.chdir(WEB2PY_PATH)
if not WEB2PY_PATH i
RE plugins, I think the other area that could be addressed is how
web2py allows certain types of plugin to operate.
For example, it would be nice if web2py says "I provide for the
following types of authorisation at point x, y, and z where I will
call a function (either called a, b and c or store
Let's hear some pros/cons from other users.
On Jan 21, 8:36 am, billf wrote:
> I'm interested in different forms of url's and had a read about
> routes.py. But the manual tells me my app shouldn't rely on routes.py
> being present. So I thought of the following approach (it's the
> result of
Hi Bill,
I will try to answer some of the questions you raised in the thread.
We had an IRC meeting last week and we agreed that T2 was becoming
common and people started to rely on it. At the same time maintaining
web2py+T2+T3 as separate entities was becoming a nightmare. We agreed
that it was
Yes, that's correct.
gluon.contrib.gateways.fcgi is an adapter. It looks like fcgi to apache but
wsgi to web2py.
Glad you got it working.
voltron wrote:
> Thanks Timothy for your help. I got it to work somewhat based on your
> files and tutorial.
> One thing though, I dad to modify the dispa
To do 'last_modification_timestamp' add the more general cases:
oncreate= and onupdate= callbacks to db.Field.
A plugin system needs versioning and dependencies, and instead of
creating a one off web2py plugin spec, it is better to reuse the
standard egg spec. Eggs can be installed as directorie
Massimo
I accept that whatever I think, the majority rules and if you don't
contribute to the discussion you can't complain about the decision -
and I'm not - I think it's all v.healthy.
re T2 and plugins:
* I think that the very fact that you can take parts of T2 and
incorporate them in the c
Well, would this be considered breaking backward compatibility? Since
before, if something wasn't there, it would automatically error, but now
it looks somewhere else? If someone had a default function already in
their controller, this could cause undesired effects.
I'm generally in favor of
> * I think that the very fact that you can take parts of T2 and
> incorporate them in the core proves that a plugin is not necessarily
> an app (in the recognised sense of the word). If Auth is replaceable
> by a plugin, it is (or may as well be) a plugin itself. The key
> element is how that pl
On Jan 21, 2:56 pm, voltron wrote:
> the location of my web2py installation: "/project/test_site/"
> # config snippet
> ServerName test_site.com
>
> ### alias the location of applications (for static files)
> #Alias / /projects/test_site/applications/
>
> ### setup WSGI
>
would it be better if plugin can share between application so we can
only need to maintain one copy? also if the admin page can simplify
the plugin installation that would be great.
-vince
On Jan 22, 2:05 am, mdipierro wrote:
> > * I think that the very fact that you can take parts of T2 and
>
actually cherrypy can be faster than apache/mod_wsgi sometimes. but i
often use mod_wsgi do recommend mod_wsgi as it's quite stable and
flexible.
i am just wondering how u crash cherrypy even if it's overloaded.
-vince
On Jan 21, 3:59 pm, voltron wrote:
> Thanks Massimo, I will try that
Yes that is the idea. That is what plugin_t2 and plugin_checkout do
now.
Admin can already handle them since a plugin is also an app. What is
missing is a protocol for describing the functionality of the plugin.
Massimo
Massimo
On Jan 21, 12:46 pm, vince wrote:
> would it be better if plugin c
> What is missing is a protocol for describing the functionality
> of the plugin.
Paste uses an .ini file to explicitly describe what implements what:
[app:myapp]
paste.app_factory = myapp.modulename:app_factory
http://pythonpaste.org/deploy/#config-format
Robin
> On Jan 21, 12:46 pm, v
1) FCGI doesn't use ports. Just use your Apache hostname.
2) (see answer to #1 or use 'localhost' from the server)
3) Apache routes stuff to FCGI via the rewrite command. Read up on how
to use it. The setting that I showed you routes all paths to to
dispatch.fcgi. You'll want to modify that
Hi all! I have a few questins concerning FCGI
1. I used to use mod_proxy, I had 2 web2py instances running on 2
ports, 8000 and 8002, what is the equivalent in FCGI?
2. I used putty to create tunnesl to my server so I can administer the
servers remotely, how can I do this using FCGI
3. Using mp
I suppose you could set a global default constructor and default
function (in db.py?). If not set then the behaviour would be exactly
as before. Other people would probably have a better idea of this
than me.
Bill
On Jan 21, 5:27 pm, Timothy Farrell wrote:
> Well, would this be considered bre
Is there some better way to do the next task with DAL?
db.define_table('nodes',
SQLField('name'),
SQLField('parent_id', 'reference nodes'))
id1 = db.nodes.insert(name='root')
id2 = db.nodes.insert(name='child 1', parent_id=id1)
db.nodes.insert(name='child 2', pare
hmm, on the contrary, I have seen some configurations of FCGI using IP
addresses and ports, but not with Apache, see here:
http://samdanielson.com/2007/1/19/fastcgi-ruby-on-rails-with-lighttpd-on-ubuntu
2. Localhost from the server, I do not understand, that would not be
remote administration us
I see. FastCGI "servers" need a socket or pipe to transfer data to/from
the webserver. In the case of *nix (mostly) they use a pipes or unix
domain sockets (as opposed to TCP sockets). In the case you mentioned,
an fcgiserver was set up on a TCP socket. My bad. But for your
(Apache) purpo
Hi Massimo:
Thank you for all your help!!!
Now, I have other problem!!! When I modify the imported module, the
application use the old module, then I read that I can use:
reload(module)
But I received an error!!!
this is my code:
exec('from applications.blog.modules.modulotest2 import MyMod
request.vars.any will return none if it's not exist.
it is possible to add something like request.args.0 or
request.args.id0 in addition to request.args[0].
-vince
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web
Looking into it deeper I guess that any changes should be made in
main.py - either in wsgibase() or the beginning of serve_controller()
as some defaulting is already carried out in these methods ('init'
application, 'default' controller, 'index' action, default view name).
Are the new defaults fi
I will take a look. Thank you.
On Jan 21, 1:33 pm, Robin B wrote:
> > What is missing is a protocol for describing the functionality
> > of the plugin.
>
> Paste uses an .ini file to explicitly describe what implements what:
>
> [app:myapp]
> paste.app_factory = myapp.modulename:app_factory
>
parent=db.nodes.as('parent')
db((db.nodes.name=='child 2')&(db.nodes.parent_id==parent.id)).select
(parent.name)[0].name
On Jan 21, 2:28 pm, Oleg wrote:
> Is there some better way to do the next task with DAL?
>
> db.define_table('nodes',
> SQLField('name'),
> SQL
Awesome!! :) Thank you, Massimo
On Jan 21, 10:41 pm, mdipierro wrote:
> parent=db.nodes.as('parent')
> db((db.nodes.name=='child 2')&(db.nodes.parent_id==parent.id)).select
> (parent.name)[0].name
>
> On Jan 21, 2:28 pm, Oleg wrote:
>
> > Is there some better way to do the next task with DAL?
>
On Jan 21, 3:14 pm, "b-global.net" wrote:
> Hi Massimo:
>
> Thank you for all your help!!!
>
> Now, I have other problem!!! When I modify the imported module, the
> application use the old module, then I read that I can use:
>
> reload(module)
>
> But I received an error!!!
>
> this is my code
What is a PLUGIN file and do any exist already?
On Jan 21, 6:05 pm, mdipierro wrote:
> > * I think that the very fact that you can take parts of T2 and
> > incorporate them in the core proves that a plugin is not necessarily
> > an app (in the recognised sense of the word). If Auth is replaceabl
yes. I was thinking the same.
On Jan 21, 3:25 pm, vince wrote:
> request.vars.any will return none if it's not exist.
> it is possible to add something like request.args.0 or
> request.args.id0 in addition to request.args[0].
>
> -vince
--~--~-~--~~~---~--~~
You r
no. I can use help in "inventing" them.
Massimo
On Jan 21, 3:45 pm, billf wrote:
> What is a PLUGIN file and do any exist already?
>
> On Jan 21, 6:05 pm, mdipierro wrote:
>
> > > * I think that the very fact that you can take parts of T2 and
> > > incorporate them in the core proves that a pl
Oh dang, virtual hosts. You're screwed!
But seriously, you have few options but they are all ugly:
- get a SSL certificate
- spoof the virtual hostname in your browser (there used to be an Addon
for Firefox that did this) and use SSH
That's all I can think of. Have fun.
voltron wrote:
> 2.
2. Sorry to be so bothersome, one last thing, I am using vhosts, I
have 2 instances of web2py using FCGI, one is a subdomain and both
send on port 60 since Apache ist listening on all IPs
*:80
test.mydomian.com
www.mydomain.com
so how do I differentiate which one I am connecting to via SSH?
3.
Settting up Web2py as WSGI on Webfaction
Make available two subdomain names, one for adminstration, the other
for public display:
'admin.example.com'
'www.example.com'
Create a webfaction application of type "mod_wsgi 2.0/Python 2.5":
'apachewsgi'
Create two webfaction sites that :
It would be really great if you could put in this in the www.web2pywiki.com
dhmorgan wrote:
> Settting up Web2py as WSGI on Webfaction
>
> Make available two subdomain names, one for adminstration, the other
> for public display:
> 'admin.example.com'
> 'www.example.com'
>
> Create a webf
voltron is expecting hunderds of requests/second. I strongly suggest
getting at least two machines for the different virtual hosts.
Massimo
On Jan 21, 3:48 pm, Timothy Farrell wrote:
> Oh dang, virtual hosts. You're screwed!
>
> But seriously, you have few options but they are all ugly:
> - g
I have now put the above content in the wiki under "web2py/Setup/"
https://mdp.cti.depaul.edu/web2py_wiki/default/wiki/webfactionWSGI
It misses some things I'll change soon -- static file handling in
particular; but this is a reasonably good start.
On Jan 21, 4:11 pm, Timothy Farrell wrote:
>
I downloaded web2py trunk yesterday. (Version 1.56rc1 (2009-01-19 21:18:57)
1. with itemize in the search now, you can click on search and see the
results, but if you click on [next page], all yo get is the search
form - you can get the next page if you click on submit.
2. I have created an app
how do I do this with t3:
db(...).delete(delete_uploads=True) and SQLFORM.accepts
(delete_uploads=True) will delete all referenced uploaded files.
that is when a file is deleted in the record it gets deleted on the file system.
thx,
-wj
--~--~-~--~~~---~--~
Okay everyone, I am completely new to web2py and have what I hope is a
simple question. I have been hung up for days trying to build a
custom form that, upon submittal, will reload the page it is on
including the REST value at the end of the URL. I am generating a
custom form in Python and passi
auch! I will try fix this tonight.
On Jan 21, 5:03 pm, Wes James wrote:
> I downloaded web2py trunk yesterday. (Version 1.56rc1 (2009-01-19 21:18:57)
>
> 1. with itemize in the search now, you can click on search and see the
> results, but if you click on [next page], all yo get is the search
>
form = t2.create(db.function_test,next='test_case/%s'%t2.id)
;-)
On Jan 21, 5:38 pm, jlegler wrote:
> Okay everyone, I am completely new to web2py and have what I hope is a
> simple question. I have been hung up for days trying to build a
> custom form that, upon submittal, will reload the
That is default. You cannot choose not to do it in T3.
There is a bug in web2py that cases a problem in T3 which you just
reported
http://groups.google.com/group/web2py/browse_thread/thread/7a03a11780a053e0
It has been in trunk... now.
Massimo
On Jan 21, 5:04 pm, Wes James wrote:
> how do I
Massimo,
thx for the fixes all works good!
-wj
On Wed, Jan 21, 2009 at 7:44 PM, mdipierro wrote:
>
> That is default. You cannot choose not to do it in T3.
>
> There is a bug in web2py that cases a problem in T3 which you just
> reported
>
> http://groups.google.com/group/web2py/browse_thread/
Hi all,
On Jan 21, 4:55 pm, Timothy Farrell wrote:
> There's no place for a web framework in Python 3 yet
Ok, thanks for that information.
I wrote:
> The Java implementation of libidn is 14,467 lines of code (including
> comments and tests), so this is a substantial code base to be adding
>
but how do the check do?
rows=db(db.t2_person.email==form.vars.email)\
(db.t2_person.password==form.vars.password)\
(db.t2_person.registration_key=='').select()
is the code the same as
rows=db(db.t2_person.email==form.vars.email)
(db.t2_person.password==form.vars.password)\
Hi Massimo,
can you detail out how double form submission is prevented using
web2py in details and phases?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this grou
Hi Timothy, I have an SSL cert, how does that help when I try to use
SSH to connect to the right Vhost? I will search for the addon you are
speaking of
@ Massimo
Yes Massimo, it might be a good idea to use to physical machines, but
thats not a solution that I can use to solve my immediate problem
That should have read "prevention" :-))
On Jan 22, 6:39 am, voltron wrote:
> Hi Massimo,
>
> can you detail out how double form submission is prevented using
> web2py in details and phases?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are
On Jan 21, 9:37 pm, voltron wrote:
> 2. Sorry to be so bothersome, one last thing, I am using vhosts, I
> have 2 instances of web2py using FCGI, one is a subdomain and both
> send on port 60 since Apache ist listening on all IPs
> *:80
> test.mydomian.comwww.mydomain.com
> so how do I differentia
if the form is accepted via accepts(request.vars,session) than it uses
session to associate a one-time uuid to the form.
if you submit twice, the second time the form is not accepted because
the uuid was used. You can see this in the form
Massimo
On Jan 21, 11:54 pm, voltron wrote:
> That sho
I followed the above along with http://wiki.dreamhost.com/Web2py.
Finally got everything working; however, cant access the admin pages.
I get this message when I attempt:
"Admin is disabled because unsecure channel".
I tried the workaround mentioned in the wiki, but its a bit outdated
and no long
Hahah, Awesome! I knew it was going to be something really easy.
Thanks so much. I seriously love this framework. Every time I find
something that is challenging I find that it is only challenging
because I haven't thought about it the right way. Thanks so much.
Seriously, this framework is br
http://groups.google.com/group/web2py/browse_thread/thread/93a9e612f8455d78
On Jan 21, 9:22 pm, TakeTheStage wrote:
> I followed the above along withhttp://wiki.dreamhost.com/Web2py.
> Finally got everything working; however, cant access the admin pages.
> I get this message when I attempt:
> "A
I found a bug in 1.55.* which is now fixed in trunk.
in gluon/sqlhtml.py '**' should be ''.
the effect of this bug is that when you update your profile in T2 for
example and you do not type your password, the password is reset to
**. The normal behavior should be that if you do n
73 matches
Mail list logo