[web2py] Administrative interface available on local network

2010-06-10 Thread Giuseppe Luca Scrofani
Im sorry, I can't find how to make the administrative interface available on my local network. I know this is a security risk but in a production environment it can be a necessity... Maybe a command line option? Thanks

[web2py] Re: does anybody know what happened to www.web2pyslices.com?

2010-06-10 Thread Paul Gerrard
Hi, If you want a new ISP - I have four under used servers that I'm happy to offer as a host for the site for free if you want. I currently host around 30 (several are mine, most for friends, all for free) websites with ASP, Perl, PHP, MySQL, Sharepoints, SQL Server and of course my own Web2py dev

Re: [web2py] Nice libraries for UI design inspiration (or web2py integration)

2010-06-10 Thread Nicol van der Merwe
Very cool, but remember that the ButtonMaker won't work for internet explorer as IE doesn't support the 'border-radius' attribute. Not a biggie - just *another* irritation I have with IE :( . Thanks for the links though. On Wed, Jun 9, 2010 at 11:49 PM, GoldenTiger wrote: > I would share some p

[web2py] Re: disable label [closed]

2010-06-10 Thread annet
Setting: label { white-space: nowrap; } solved the problem, thanks for providing me with this solution. Annet.

[web2py] Re: tos download [closed]

2010-06-10 Thread annet
Massimo, At the moment this is the only static file I serve, so web2py does all the work. Annet.

[web2py] Re: upload file -- lot of file in one directory

2010-06-10 Thread weheh
I think I'm dealing with the same situation, however, I'm going about it a little differently. I'm storing files in uploads/users/user_id/filename My user_id is a cypher of characters [A-Z][a-z][0-9] with a length anywhere from 8 to 12 characters or so. The filename is another cypher created auto

[web2py] Re: Administrative interface available on local network

2010-06-10 Thread mdipierro
there is no comment line option becasue we believe this should not be done. Anyway, you can edit applications/admin/models/access.py and implement your own rules. On Jun 10, 2:30 am, Giuseppe Luca Scrofani wrote: > Im sorry, I can't find how to make the administrative interface > available on my

Re: [web2py] Re: get authenticate user id from session

2010-06-10 Thread Jean Guy
Thanks it solved the breaking app problem when not connect also. 2010/6/8 mdipierro > auth.user_id is the user id retrived from the session. > > > > On Jun 8, 1:39 pm, Jean Guy wrote: > > Hello web2py geek, > > > > How can I get the user id from session ? > > > > Thanks. > > > > Jonhy >

Re: [web2py] Re: Administrative interface available on local network

2010-06-10 Thread Giuseppe Luca Scrofani
Thanks Candid and Massimo for answering, I've tried your suggestion, Massimo, and it worked. I've replaced (starting from line 12 in applications/admin/models/access.py) else: hosts = (http_host, socket.gethostname(), socket.gethostbyname(http_host), '::1','127.0.0.1'

[web2py] Re: Key query support in Google App Engine

2010-06-10 Thread Christian Foster Howes
Here is a new version of the patch to address the issues: - no more __key__ in _extra (and in understand why it breaks backward compatibility nowjust needed to think about it) - since it is illegal in web2py to have "_" start a field name, "__key__" can never be a field name and never que

[web2py] Re: Key query support in Google App Engine

2010-06-10 Thread mdipierro
Thanks I will apply this tonight. On Jun 10, 9:29 am, Christian Foster Howes wrote: > Here is a new version of the patch to address the issues: > >   - no more __key__ in _extra (and in understand why it breaks backward > compatibility nowjust needed to think about it) >   - since it is illeg

[web2py] SHORT one amfrpc3 with web2py

2010-06-10 Thread Kuba Kucharski
I get service not found when using this: @service.amfrpc3('testing_domain') def addvalues(a,b): return a+b from client: from pyamf.remoting.client import RemotingService client = RemotingService('http://127.0.0.1:8001/warsawbackpanel/default/call/amfrpc3') service = client.getService('testing

[web2py] compute values when using CRUD

2010-06-10 Thread greenpoise
I see in the book how to compute values from fields within a form. I still dont get how to do this under CRUD. I am able to compute values using the compute function but if I have a value that depends on the sum of other field I get an error. Can someone show me how to do this? Thanks

[web2py] Controller wide auth

2010-06-10 Thread Doug Warren
I've had an issue lately where pretty much every function in a controller needed an auth decorator. Given how many functions were in the controller this turned out to be an error prone forgetful process. So I came up with a simple and probably obvious way to make a controller wide auth check comp

[web2py] Re: compute values when using CRUD

2010-06-10 Thread mdipierro
compute is the way. Show us how you are doing it and the error and we can tell you how to fix it. On Jun 10, 10:03 am, greenpoise wrote: > I see in the book how to compute values from fields within a form. I > still dont get how to do this under CRUD. I am able to compute values > using the compu

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
You are a nice guy! Thank you. Jonhy 2010/6/10 Doug Warren > I've had an issue lately where pretty much every function in a > controller needed an auth decorator. Given how many functions were in > the controller this turned out to be an error prone forgetful process. > So I came up with a

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
The redirect those not work out of the box... Jonhy 2010/6/10 Jean Guy > You are a nice guy! > > > Thank you. > > Jonhy > > 2010/6/10 Doug Warren > > I've had an issue lately where pretty much every function in a >> controller needed an auth decorator. Given how many functions were in >> the

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Thadeus Burgess
I like the idea of an execmodels.py file, it could create a list of model names to execute.. Not yaml or cfg because that means web2py would require yet another library Massimo, tell me where this code *should* go and I will work on it since this is a very important feature to me. Lets draft up a

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
Getting : http://127.0.0.1:8000/dev/default/user/login?_next=/dev/default/user/login%3F_next%3D%252Fdev%252Fdefault%252Fuser%252Flogin%253F_next%253D%25252Fdev%25252Fdefault%25252Fuser%25252Flogin%25253F_next%25253D%2525252Fdev%2525252Fdefault%2525252Fuser%2525252Flogin%2525253F_next%2525253D%2525

[web2py] best list of jquery plugins I found so far

2010-06-10 Thread mdipierro
http://www.jqueryplugins.com/plugins/

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
Try to import in ipython it pass... urllib seems to be part of other package in ubuntu : http://stackoverflow.com/questions/2532321/python-importerror-no-module-named-urllib or python-m2crypto Don't know which one is best... Could it depends of python version? Jonhy 2010/6/10 Jean Guy > Get

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Doug Warren
One thing I thought about was to have the models loading wrap around an exception holder in run_models_in something like delay_process = [] for model in models: ... try: restricted() except RequirementMissing: delay_process.append(model) while 1: new_delay_process

Re: [web2py] Controller wide auth

2010-06-10 Thread Doug Warren
I'm not sure actually the code was mostly cut and pasted directly from tools.py perhaps it needs an import urllib2 as well? The code as written was deployed on my stock 2.6 win32 python and web2py from source (not from exe.) I haven't tried it yet in my production environment. Try it with the dec

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
Here is my proposal: define the following: request.models=( ('*','db.py'), ('*','model1.py'), ('*','model2.py'), ('default','model3.py'), ('default/a,default/b','model4.py'), ) it specifies the order in which models should be executed. For each row, the first item specifies whether the model sho

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
one we agree with the syntax, this is easy. The main issue is making sure it works with bytecode compiled models. On Jun 10, 11:20 am, mdipierro wrote: > Here is my proposal: > > define the following: > > request.models=( > ('*','db.py'), > ('*','model1.py'), > ('*','model2.py'), > ('default','mo

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
With decorator it works. I try with urllib2. Jonhy 2010/6/10 Doug Warren > I'm not sure actually the code was mostly cut and pasted directly from > tools.py perhaps it needs an import urllib2 as well? The code as > written was deployed on my stock 2.6 win32 python and web2py from > source (no

Re: [web2py] Re: web2pyslices update

2010-06-10 Thread Thadeus Burgess
I will have to point out. You can resize slices at anytime you want with no downtime to your server. You can clone any slice as many times as you want to any size of disk you want without taking down the original slice You get automated backups from daily, weekly, to monthly that are exact image

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
Don't work. 2010/6/10 Jean Guy > With decorator it works. > > I try with urllib2. > > > Jonhy > > 2010/6/10 Doug Warren > >> I'm not sure actually the code was mostly cut and pasted directly from >> tools.py perhaps it needs an import urllib2 as well? The code as >> written was deployed on m

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Thadeus Burgess
What if I needed two controllers to share the same model? Would I then place two definitions in request.models? Not 0.py that is not a valid python filename. Python modules/variables cannot start with numbers. how about just a simple "exec.py" that gets loaded before everything? -- Thadeus

[web2py] Re: best list of jquery plugins I found so far

2010-06-10 Thread Yarko Tymciurak
that comes up as a bad link for me... www.jquery.com/plugins redirects to http://plugins.jquery.com -- is this the one you meant? On Jun 10, 11:04 am, mdipierro wrote: > http://www.jqueryplugins.com/plugins/

Re: [web2py] Re: best list of jquery plugins I found so far

2010-06-10 Thread Thadeus Burgess
I think just... http://www.jqueryplugins.com/ -- Thadeus On Thu, Jun 10, 2010 at 12:02 PM, Yarko Tymciurak wrote: > that comes up as a bad link for me... > > www.jquery.com/plugins redirects to http://plugins.jquery.com -- is > this the one you meant? > > On Jun 10, 11:04 am, mdipierro wro

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 11:20 am, mdipierro wrote: > Here is my proposal: > > define the following: > > request.models=( > ('*','db.py'), > ('*','model1.py'), > ('*','model2.py'), > ('default','model3.py'), > ('default/a,default/b','model4.py'), > ) > > it specifies the order in which models should be executed

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Thadeus Burgess
How will the exec_models.py be formatted Could it potentially be executed in an environment given a list, and append or overwrite this list with the model definitions exec_models = [ 'settings.py', 'db.py', 'auth.py', 'tag.py', 'post.py', 'comments.py', 'menu.py', 'other.py', ] Wildc

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
... this all _sounds_ great, but for one thing: It places a dependency (an "import" or setup list) FAR AWAY from where it should be declared!!! This _will_ (sooner or later) become a problem. Why not have something _less global_ (why _one_ config file???), and more component / containment ori

Re: [web2py] Re: best list of jquery plugins I found so far

2010-06-10 Thread Jean Guy
Just remove the /plugins 2010/6/10 Yarko Tymciurak > that comes up as a bad link for me... > > www.jquery.com/plugins redirects to http://plugins.jquery.com -- is > this the one you meant? > > On Jun 10, 11:04 am, mdipierro wrote: > > http://www.jqueryplugins.com/plugins/ >

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Doug Warren
That's kind of what i was getting at with my suggestion listed above in some pseudocode. Let the model try to grab it's required modules if it can't find one it'll just raise an exception and it'll be tried again later. Eventually all dependencies that are solvable will work themselves out... (On

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 12:37 pm, Doug Warren wrote: > That's kind of what i was getting at with my suggestion listed above > in some pseudocode. Right - except for this: [[for those that "read" all-caps as "yelling" (who the heck thought that? CLEARLY not anyone that was alive, or could have worked on a

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
If we are going to work on this we may as well solve a different problem. Executing models take time. If you have 500 tables each defined it its own file, it takes lots of time. Yet not all actions need all tables so we may want to implement a dependency not just among models but among actions and

[web2py] Re: web2pyslices update

2010-06-10 Thread mr.freeze
We're back! Sorry about the extended downtime. I ended up going with FiveBean since their VPS's were more in my price range (promo code UBUNTU gives you 50% off!). http://fivebean.com/account/aff.php?aff=161 Now get to slicin'! On Jun 10, 11:26 am, Thadeus Burgess wrote: > I will have to point ou

[web2py] Hardening web2py on Linux and Windows servers

2010-06-10 Thread Salvor Hardin
We selected web2py over django and pylons to replace RoR. Luckily, that project doesn't require paranoid security (hence our ability to use RoR in the past.) But we're evaluating web2py to replace a Win32 GUI intranet app, and preventing hacks on the server side, is pretty high on the priority fo

[web2py] multiple select jquery plugin

2010-06-10 Thread Jean Guy
I don't remember how I come with this link : http://abeautifulsite.net/2008/04/jquery-multiselect/ But it could serve my needs for sometime... I'm not experienced at all with jquery. I would like to use it with web2py mainly cause it seems to let the possibility to group differents query results

[web2py] Re: multiple select jquery plugin

2010-06-10 Thread mr.freeze
Extract it to your static folder then link to it with URL(r=request,c='static/thefolder',f='multiSelect.js') On Jun 10, 1:57 pm, Jean Guy wrote: > I don't remember how I come with this link > :http://abeautifulsite.net/2008/04/jquery-multiselect/ > > But it could serve my needs for sometime... >

[web2py] Re: compute values when using CRUD

2010-06-10 Thread greenpoise
Ok. I got this working afterall. I am going to leave it open because I still have questions regarding it. Like for example, this is what I did: db.orden.sellercommision.compute=lambda r:round(float(r['coef1'])- float(r['coef1'])*float(r['value2']),2) But what if I needed the db.orden.sellercommi

[web2py] Re: multiple select jquery plugin

2010-06-10 Thread mdipierro
http://web2py.com/plugins/default/multiselect On Jun 10, 1:57 pm, Jean Guy wrote: > I don't remember how I come with this link > :http://abeautifulsite.net/2008/04/jquery-multiselect/ > > But it could serve my needs for sometime... > > I'm not experienced at all with jquery. I would like to us

[web2py] Re: Hardening web2py on Linux and Windows servers

2010-06-10 Thread mdipierro
None of these should be a problem. On Jun 10, 1:45 pm, Salvor Hardin wrote: > We selected web2py over django and pylons to replace RoR.  Luckily, > that project doesn't require paranoid security (hence our ability to > use RoR in the past.) > > But we're evaluating web2py to replace a Win32 GUI i

[web2py] Re: Hardening web2py on Linux and Windows servers

2010-06-10 Thread mdipierro
None of these should be a problem. Mind that you will not be able to edit/install/uninstall apps using the web interface. On Jun 10, 1:45 pm, Salvor Hardin wrote: > We selected web2py over django and pylons to replace RoR.  Luckily, > that project doesn't require paranoid security (hence our abil

[web2py] Re: compute values when using CRUD

2010-06-10 Thread mdipierro
You cannot. Perhaps you should use crud.create(,onvalidator=lambda form:) if you need more complex computations. On Jun 10, 2:02 pm, greenpoise wrote: > Ok. I got this working afterall. I am going to leave it open because I > still have questions regarding it.  Like for example, this is w

[web2py] Re: multiple select jquery plugin

2010-06-10 Thread mr.freeze
Another option: http://www.web2pyslices.com/main/slices/take_slice/70 On Jun 10, 2:02 pm, mdipierro wrote: > http://web2py.com/plugins/default/multiselect > > On Jun 10, 1:57 pm, Jean Guy wrote: > > > I don't remember how I come with this link > > :http://abeautifulsite.net/2008/04/jquery-multi

[web2py] Re: electronic signature

2010-06-10 Thread Christopher Steel
!!! WoW On Jun 10, 1:09 am, mdipierro wrote: > errata. > > form=crud.update(db.table,onaccept=crud.archive) > > info is here: > > http://web2py.com/examples/static/epydoc/web2py.gluon.tools.Crud-clas... > > On Jun 9, 11:58 pm, mdipierro wrote: > > > Mind that you can also do > > > form=crud.upd

Re: [web2py] Re: multiple select jquery plugin

2010-06-10 Thread Jean Guy
If I understand correctly... Both suggestions are using the same jquery plugin in background, then it just a matter of how it is implemented in web2py?? Jonhy Sorry I didn't say hello or sign my last email. 2010/6/10 mr.freeze > Another option: http://www.web2pyslices.com/main/slices/take_slic

Re: [web2py] Re: Hardening web2py on Linux and Windows servers

2010-06-10 Thread Thadeus Burgess
www-data needs write access to databases/cache/sessions etc. IF a hacker were able to gain access *somehow* and alter the databases files, they can kill your entire system by forcing fake migrations or other issues. Just make sure you have migrate=False and fake_migrate=False and everything *should

Re: [web2py] Re: electronic signature

2010-06-10 Thread Jean Guy
Thank you for those suggestions I miss them out when they been posted... [?] Jonhy 2010/6/10 mdipierro > errata. > > form=crud.update(db.table,onaccept=crud.archive) > > info is here: > > > http://web2py.com/examples/static/epydoc/web2py.gluon.tools.Crud-class.html#archive > > On Jun 9, 11:5

[web2py] Re: Separating models into their own files

2010-06-10 Thread Christopher Steel
You need to pay attention to order, but you can always use variables... For more examples see Massimo's auditing slice at web2py slices and make sure to check out the comments... you can var out fields, table headers and probably more stuff as well like auditing fields... Here is a working example

[web2py] Re: compute values when using CRUD

2010-06-10 Thread greenpoise
will dig into that. THanks dan On Jun 10, 3:04 pm, mdipierro wrote: > You cannot. Perhaps you should use crud.create(,onvalidator=lambda > form:) if you need more complex computations. > > On Jun 10, 2:02 pm, greenpoise wrote: > > > Ok. I got this working afterall. I am going to leave

[web2py] Re: Y'a-t-il des Québécois sur cette list e?

2010-06-10 Thread ionel
Ou peut-etre quatre? :) On Jun 10, 5:33 pm, Magnitus wrote: > Oui. > > Il y en a au moins 3 on dirait. > > On Jun 10, 3:47 pm, Jean Guy wrote: > > > [?] > > > Je demandais s'il y avait des québécois qui développe avec Web2py et qui son > > inscrit sur cette liste? > > > Jean Guy > > >  330.gif

[web2py] Re: multiple select jquery plugin

2010-06-10 Thread mdipierro
yes. I think they work more or less the same. On Jun 10, 2:38 pm, Jean Guy wrote: > If I understand correctly... Both suggestions are using the same jquery > plugin in background, then it just a matter of how it is implemented in > web2py?? > > Jonhy > > Sorry I didn't say hello or sign my last e

[web2py] Re: Hardening web2py on Linux and Windows servers

2010-06-10 Thread mdipierro
perhaps we should a web2py/scripts/lock-web2py.sh On Jun 10, 3:49 pm, Thadeus Burgess wrote: > www-data needs write access to databases/cache/sessions etc. IF a > hacker were able to gain access *somehow* and alter the databases > files, they can kill your entire system by forcing fake migrations

[web2py] Re: Y'a-t-il des Québécois sur cette list e?

2010-06-10 Thread Christopher Steel
bien sur! Bienvenu! Chris On Jun 10, 3:47 pm, Jean Guy wrote: > [?] > > Je demandais s'il y avait des québécois qui développe avec Web2py et qui son > inscrit sur cette liste? > > Jean Guy > >  330.gif > < 1KViewDownload

[web2py] Y'a-t-il des Québécois sur cette liste?

2010-06-10 Thread Jean Guy
[?] Je demandais s'il y avait des québécois qui développe avec Web2py et qui son inscrit sur cette liste? Jean Guy <<330.gif>>

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 3:44 pm, Doug Warren wrote: > On Thu, Jun 10, 2010 at 10:53 AM, Yarko Tymciurak > > wrote: > > > More discussion, thoughts? > > > (maybe this should move to the web2py developer's thread?) > > As my request is still 'pending' I'd ask to keep the discussion here > so I can contribute.

[web2py] Re: compute values when using CRUD

2010-06-10 Thread greenpoise
Why cant my values coef1 and value2 fields be readable=False writable=False? I want them to be hidden in the form. On Jun 10, 3:04 pm, mdipierro wrote: > You cannot. Perhaps you should use crud.create(,onvalidator=lambda > form:) if you need more complex computations. > > On Jun 10, 2:

[web2py] Support for conversation?

2010-06-10 Thread pierreth
I would like to know if the idea of conversation would be great thing for Web2py. It is an idea coming from Java JBoss Seam http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/seam/Seam_Reference_Guide/Conversations_and_workspace_management-Seams_conversation_model.html. The idea is suppor

[web2py] Videoconferencing inspiration

2010-06-10 Thread GoldenTiger
I read this message on web2py twitter http://twitter.com/web2py/status/14770795373 "would be nice to have a #screensharing and #videoconferncing app for @web2py that you could a: add to your app or b: host as facebook app" "@rockdapus It would be nice indeed :-) If you have any idea on how to d

[web2py] Re: Y'a-t-il des Québécois sur cette list e?

2010-06-10 Thread Magnitus
Oui. Il y en a au moins 3 on dirait. On Jun 10, 3:47 pm, Jean Guy wrote: > [?] > > Je demandais s'il y avait des québécois qui développe avec Web2py et qui son > inscrit sur cette liste? > > Jean Guy > >  330.gif > < 1KViewDownload

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 3:44 pm, Thadeus Burgess wrote: > This is what I desire from this > > Web2py applications to be importable python modules > Along with [A] your models immediately become python modules that you > can import. This solves my need to share models between web2py apps.' > > Web2py has a Top

[web2py] Re: Administrative interface available on local network

2010-06-10 Thread GoldenTiger
No need of changing web2py, running a proxy on server spoofs your IP (for example Achilles proxy for Windows) On 10 jun, 15:59, Giuseppe Luca Scrofani wrote: > Thanks Candid and Massimo for answering, I've tried your suggestion, > Massimo, and it worked. > I've replaced (starting from line 12 i

[web2py] Re: Y'a-t-il des Québécois sur cette list e?

2010-06-10 Thread pierreth
Encore un! Ça n'arrête plus! Une vraie peste! ;-) We suppose to speak in English... On 10 juin, 15:47, Jean Guy wrote: > [?] > > Je demandais s'il y avait des québécois qui développe avec Web2py et qui son > inscrit sur cette liste? > > Jean Guy > >  330.gif > < 1 000AfficherTélécharger

[web2py] Re: Separating models into their own files

2010-06-10 Thread Yarko Tymciurak
On Jun 10, 1:17 pm, mdipierro wrote: > If we are going to work on this we may as well solve a different > problem. > > Executing models take time. If you have 500 tables each defined it its > own file, it takes lots of time. Yet not all actions need all tables > so we may want to implement a depen

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Doug Warren
On Thu, Jun 10, 2010 at 10:53 AM, Yarko Tymciurak wrote: > > More discussion, thoughts? > > (maybe this should move to the web2py developer's thread?) As my request is still 'pending' I'd ask to keep the discussion here so I can contribute.

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
The conclusion is right but it is more complicated than that. This is not a syntactical issue. Let' say in a model we have: db.define_table('a',Field('b',default=request.client)) This code MUST be executed. There is no way to import it because request.client only exist when the request arri

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Thadeus Burgess
This is what I desire from this Web2py applications to be importable python modules Along with [A] your models immediately become python modules that you can import. This solves my need to share models between web2py apps.' Web2py has a Top down approach, where other frameworks use a down-up appr

Re: [web2py] Script to generate schema (models) from mysql

2010-06-10 Thread Jean Guy
I'm sorry I didn't have time to look at the script... I try to look at it in the near future. Jonhy 2010/5/22 Alexandre Andrade > I can adapt it on demand to any database for just $100. > Obviously it will be returned to community too. > > I usualy use only mysql, postresql, sqlite and now mo

Re: [web2py] Re: Advice, convert from string storing numbers to autoincrement integer

2010-06-10 Thread Thadeus Burgess
Idea: Theoretically speaking of course if I were to create a virtual machine loaded with an apache instance and web2py on mod_wsgi. Using the various methods of *faking* an autonumber field on different virtual machines, for the sake of scientific research. Using the apache AB testing upon a

Re: [web2py] Re: Separating models into their own files

2010-06-10 Thread Thadeus Burgess
> > This code MUST be executed. There is no way to import it because > request.client only exist when the request arrives and we do not want > to re import modules on every request. Flask accomplishes this perfectly by placing the request in a context thread local. It only exists the the thread lo

[web2py] Re: [off-topic] UI frameworks like: ExtJs, Pivot

2010-06-10 Thread Richard
another possibility is jpolite: http://www.trilancer.com/jpolite2/index1.html On May 23, 6:16 am, Pepe wrote: > Hi everybody! > > i'm searching ui frameworks for work with web2py. > > Here a list that I like to share and please, if you have worked with > some, post your evaluation or, if you kno

[web2py] mod_python error, contains no 'handler'

2010-06-10 Thread Cory Coager
Any idea why I'm getting this error? [Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89] AttributeError: module '/path/to/modpythonhandler.py' contains no 'handler' [Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89] Filename: '/ path/to/500.shtml' [Thu Jun 10 17:59:15 2010] [error] [cl

[web2py] Got widgets?

2010-06-10 Thread mr.freeze
Here's a collection of widgets I put together in a sample application: http://web2pyslices.com/main/slices/take_slice/86

[web2py] Re: Advice, convert from string storing numbers to autoincrement integer

2010-06-10 Thread mdipierro
If you have the setup, give it a try. On Jun 10, 6:59 pm, Thadeus Burgess wrote: > Idea: > > Theoretically speaking of course if I were to create a virtual > machine loaded with an apache instance and web2py on mod_wsgi. Using > the various methods of *faking* an autonumber field on different

[web2py] Re: mod_python error, contains no 'handler'

2010-06-10 Thread mdipierro
The location of modpythonhandler is not in sys.path On Jun 10, 8:05 pm, Cory Coager wrote: > Any idea why I'm getting this error? > > [Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89] > AttributeError: module '/path/to/modpythonhandler.py' contains no > 'handler' > [Thu Jun 10 17:59:15 201

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
Flask has a clever mechanism that web2py also uses internally in DAL. It partially addresses the problem: Consider this example: http://github.com/mitsuhiko/flask/blob/master/examples/flaskr/flaskr.py Consider the action "login". request is a global object that acts as a proxy. Any attribute of

Re: [web2py] Re: web2pyslices update

2010-06-10 Thread Thadeus Burgess
Is it running slow for you or is it just me? -- Thadeus On Thu, Jun 10, 2010 at 1:34 PM, mr.freeze wrote: > We're back! Sorry about the extended downtime. I ended up going with > FiveBean since their VPS's were more in my price range (promo code > UBUNTU gives you 50% off!). > http://fivebea

[web2py] Re: web2pyslices update

2010-06-10 Thread mr.freeze
It's fast for me. The server is in Dallas. On Jun 10, 9:06 pm, Thadeus Burgess wrote: > Is it running slow for you or is it just me? > > -- > Thadeus > > On Thu, Jun 10, 2010 at 1:34 PM, mr.freeze wrote: > > We're back! Sorry about the extended downtime. I ended up going with > > FiveBean since

[web2py] Re: web2pyslices update

2010-06-10 Thread mr.freeze
http://www.websitegoodies.com/tools/speed-test.php URL:http://www.web2pyslices.com/main/default/index Load Time: 0.4189 seconds Page Size: 47.16 kb On Jun 10, 9:08 pm, "mr.freeze" wrote: > It's fast for me. The server is in Dallas. > > On Jun 10, 9:06 pm, Thadeus Burgess wrote: >

[web2py] Re: web2pyslices update

2010-06-10 Thread mdipierro
URL:http://web2py.com Load Time: 0.1642 seconds Page Size: 14.78 kb On Jun 10, 9:13 pm, "mr.freeze" wrote: > http://www.websitegoodies.com/tools/speed-test.php > > URL:    http://www.web2pyslices.com/main/default/index > Load Time:      0.4189 seconds > Page Size:      47.16 kb > >

[web2py] Re: web2pyslices update

2010-06-10 Thread mr.freeze
Is web2pyslices fast for you Massimo? On Jun 10, 9:16 pm, mdipierro wrote: > URL:    http://web2py.com > Load Time:      0.1642 seconds > Page Size:      14.78 kb > > On Jun 10, 9:13 pm, "mr.freeze" wrote: > > >http://www.websitegoodies.com/tools/speed-test.php > > > URL:    http://www.web2pysli

[web2py] Re: stumped on a regex

2010-06-10 Thread mr.freeze
Massimo's worked on the first try so I went with it! On Jun 5, 2:05 pm, "mr.freeze" wrote: > Thanks Thadeus/Massimo. I'll give each a try and let you know what I > find. > > On Jun 5, 12:57 pm, mdipierro wrote: > > > Try this... > > > import uuid, re > > subs={} > > while True: > >      match =

[web2py] Re: upload file -- lot of file in one directory

2010-06-10 Thread mdipierro
The problem with this is that the, I assume, tha database links the uploaded filename to the user_id and therefore you need to access the database to locate the file. That is ok until the database changes and somebody edits the user_id. Than you can no longer locate the file. On Jun 10, 7:36 am, w

[web2py] Re: Separating models into their own files

2010-06-10 Thread Anthony
>From the Flask documentation: "For example Flask uses thread local objects internally so that you don’t have to pass objects around from function to function within a request in order to stay threadsafe. While this is a really easy approach and saves you a lot of time, it also does not scale well

Re: [web2py] Re: stumped on a regex

2010-06-10 Thread Jonathan Lundell
On Jun 10, 2010, at 10:00 PM, mr.freeze wrote: > Massimo's worked on the first try so I went with it! It may have a problem when there are two blocks. > > On Jun 5, 2:05 pm, "mr.freeze" wrote: >> Thanks Thadeus/Massimo. I'll give each a try and let you know what I >> find. >> >> On Jun 5, 12

[web2py] Re: stumped on a regex

2010-06-10 Thread mdipierro
True. match = re.compile('<(pre|PRE)(.*)/(pre| pre)>',re.DOTALL).search(text) should be match = re.compile('<(pre|PRE)>(.*?)',re.DOTALL).search(text) On Jun 10, 11:14 pm, Jonathan Lundell wrote: > On Jun 10, 2010, at 10:00 PM, mr.freeze wrote: > > > Massimo's worked on the first try so I went

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
This is a false problem. Flask and web2py are not asynchronous like Tornado. This is not a problem nor a limitation but a difference in design that determine the way one program web applications. Scalability and speed have to do with database bottleneck more than everything else. About the commen

[web2py] Re: Separating models into their own files

2010-06-10 Thread mdipierro
from the Tornado page "Tornado comes with limited support for WSGI. However, since WSGI does not support non-blocking requests, you cannot use any of the asynchronous/non-blocking features of Tornado in your application if you choose to use WSGI instead of Tornado's HTTP server." On Jun 10, 11:33

[web2py] Re: upload file -- lot of file in one directory

2010-06-10 Thread mdipierro
In trunk. Give it a try. On Jun 10, 12:54 am, szimszon wrote: > Patch sent with >   /./ in use where > self.uploadseparate == 2 :) > > On jún. 9, 22:11, mdipierro wrote: > > > I suggest a subfolder for every table.field and one for every > > combinations of the first 2 chars? > > The simpler the

[web2py] Re: Separating models into their own files

2010-06-10 Thread Anthony
Thanks for the (quick) clarification. On Jun 11, 12:33 am, mdipierro wrote: > This is a false problem. > > Flask and web2py are not asynchronous like Tornado. This is not a > problem nor a limitation but a difference in design that determine the > way one program web applications. Scalability and

[web2py] Re: Support for conversation?

2010-06-10 Thread pierreth
On 10 juin, 19:14, mdipierro wrote: > Interesting. How do you think this can be implemented? Well, before thinking about the implementation, we must understand the concepts involved. So let's start with the idea of scope. The scope defines the time a peace of information is kept. Information in

[web2py] Re: Support for conversation?

2010-06-10 Thread mdipierro
The only issue is that if you have two browser windows open I do not know of a mechanism to identify from which of the two windows a request arrives since the cookies are the same. On Jun 10, 11:39 pm, pierreth wrote: > On 10 juin, 19:14, mdipierro wrote: > > > Interesting. How do you think this

Re: [web2py] Re: Support for conversation?

2010-06-10 Thread Thadeus Burgess
That is where the hidden input field with a custom hash comes into play I think? -- Thadeus On Fri, Jun 11, 2010 at 12:00 AM, mdipierro wrote: > The only issue is that if you have two browser windows open I do not > know of a mechanism to identify from which of the two windows a > reques

[web2py] Re: Support for conversation?

2010-06-10 Thread mdipierro
yes but people don't just navigate by submitting forms. they also navigate by clicking links. The only way to keep a conversation would be to store a token in request.args(0) and keep it there in all links. Still the conversation is fragile and ends if the user types in a url without the token. On

[web2py] simplejson -- wasn't this resolved?

2010-06-10 Thread Thadeus Burgess
Traceback (most recent call last): File "/home/thadeusb/sites/thadeusb.com/subdomains/odyssey/wsgihandler.py", line 27, in import gluon.main File "gluon/main.py", line 34, in from globals import Request, Response, Session File "gluon/globals.py", line 18, in from compileapp imp

Re: [web2py] Re: Support for conversation?

2010-06-10 Thread Thadeus Burgess
javascript? -- Thadeus On Fri, Jun 11, 2010 at 12:14 AM, mdipierro wrote: > yes but people don't just navigate by submitting forms. they also > navigate by clicking links. The only way to keep a conversation would > be to store a token in request.args(0) and keep it there in all links. > Sti

  1   2   >