[web2py] Does "return" have to be the last statement in a function?

2011-05-02 Thread pbreit
Nothing further happens after return. You need to trigger a task (probably in some sort of queue) before the return or have your page trigger a task somehow (Ajax).

Re: [web2py] Aw: Re: help testing

2011-05-02 Thread Stifan Kristi
if your functions is use with many controllers that related with database, please put it on the models if your functions is use with many controllers that not related with database function, please put it on the controllers if your functions is use by another application, please put it on the modul

[web2py] Aw: Re: help testing

2011-05-02 Thread ma...@rockiger.com
I have a somewhat general question. Should be funtions to use with your controller somewhere in the controllers folder? Having so much functions in the model seems kind of odd to me or am I wrong? Please enlightenm me. That said, subfolder are a big improvement. Marco

[web2py] Does "return" have to be the last statement in a function?

2011-05-02 Thread Michael McGinnis
While a visitor is reading a page/looking at the view, I'd like to be doing something in the background in preparation for his or her next action, or to finish processing his previous action. Right now all my functions end with "return" statements that display a view. Do they have to end with retur

[web2py] EULA agreement on first login

2011-05-02 Thread Charles Law
I'm trying to add an EULA that users have to agree to on first login. I'm doing this right now by adding a field to the auth.user called the eula_accepted flag. If that flag isn't set, it will load a EULA form, otherwise, it loads the default webpage. When the user accepts the agreement, the form

[web2py] Re: Shibboleth System

2011-05-02 Thread Massimo Di Pierro
This may help: https://github.com/ralphbean/repoze.who.plugins.shibboleth/blob/master/repoze/who/plugins/shibboleth/plugins.py On May 2, 10:24 pm, Massimo Di Pierro wrote: > I think we should integrate with with web2py. > > http://shibboleth.internet2.edu/ > > any volunteer? > > Massimo

[web2py] Re: Customising the menu with specific classes...

2011-05-02 Thread Massimo Di Pierro
In response.menu=[item1,item2,] instead of item1=[label,False,link] use item1=[A(label,_href=link,_class='...',False,None] On May 2, 9:35 pm, Jason Brower wrote: > I really like the MENU() system but I am finding a limit with classes > and id. > I would like to set a class or id to each

Re: [web2py] markitup in web2py...

2011-05-02 Thread Bruno Rocha
You have to use the markitup that is shipped with pkugin_wiki Massimo made some changes including markmin syntax which.is not in the author distribution, yet Em 02/05/2011 22:51, "Jason Brower" escreveu: > I have markitup jquery library working well in web2py except for the > markmin syntax is not

[web2py] Re: markitup in web2py...

2011-05-02 Thread Massimo Di Pierro
You have to use the markitup that comes with plugin_wiki. Just copy it from there. On May 2, 8:51 pm, Jason Brower wrote: > I have markitup jquery library working well in web2py except for the > markmin syntax is not there.  Does someone have the set to make that > happen? It should be submitted

[web2py] Re: compressed field

2011-05-02 Thread Massimo Di Pierro
You can easily make a custom type to do that: import xlib compressed = SQLCustomType( type ='text', native ='text', encoder =(lambda x: zlib.compress(x or '')), decoder = (lambda x: zlib.decompress(x)) ) db.define_table( 'example',

[web2py] Customising the menu with specific classes...

2011-05-02 Thread Jason Brower
I really like the MENU() system but I am finding a limit with classes and id. I would like to set a class or id to each menu item so the theming, javascript, and other items could be applied here. How would I best go around doing this? I suppose I could try to make a patch to MENU to allow this

[web2py] compressed field

2011-05-02 Thread Plumo
I am storing large amounts of XML in my database and it would be useful to have a field type that automatically compresses when saving and decompresses when loading. Does such a field already exist?

[web2py] markitup in web2py...

2011-05-02 Thread Jason Brower
I have markitup jquery library working well in web2py except for the markmin syntax is not there. Does someone have the set to make that happen? It should be submitted to the markitup guys at it would help popularize web2py. (At least it won't hurt it. :D) Best Regards, Jason Brower

[web2py] Mercurial Error

2011-05-02 Thread ehgonzalez
Hello, When I'm trying to use Versioning (mercurial) but I get an a ticket error: Traceback (most recent call last): File "/var/www/web2py/gluon/restricted.py", line 181, in restricted exec ccode in environment File "/var/www/web2py/applications/admin/controllers/mercurial.py", line 75, i

[web2py] Re: Create web2py db.py entries from MySQL .sql structure file

2011-05-02 Thread pbreit
All I can think of is creating the DB and then trying this script: http://code.google.com/p/web2py/source/browse/scripts/extract_mysql_models.py

[web2py] Re: Confusion using experts4solutions

2011-05-02 Thread Jim Karsten
Just to clarify, I posted on the freelance sites not to get coders competing for jobs, but to make use of their tools. I have lots of work and a healthy budget and I'm looking for a web2py professional. The job postings were intended to be just a stepping stone. Jim Karsten

Re: [web2py] Redirect when URL-Rewriting in effect..

2011-05-02 Thread Jonathan Lundell
On May 2, 2011, at 3:22 PM, Shishir Ramam wrote: > I have URLRewriting in effect and within a function, want to redirect on > error. (in this case, I want to wrap around to first page when I reach the > end). > > > something along the lines of - > > start_idx = int(request.args[0]) >

Re: [web2py] Re: How to setup multiple application using multiple domains on webfaction?

2011-05-02 Thread Tito Garrido
Thanks a lot Bruno! On Mon, Mar 14, 2011 at 4:46 AM, annet wrote: > Hi Bruno, > > > in routes.conf you can simply do: > > > > blog.domain.com /blog/default > > domain.com /init/default > > In an application I have a controller which contains a couple of > functions related to a business card lik

[web2py] Redirect when URL-Rewriting in effect..

2011-05-02 Thread Shishir Ramam
Hi, I have URLRewriting in effect and within a function, want to redirect on error. (in this case, I want to wrap around to first page when I reach the end). something along the lines of - start_idx = int(request.args[0]) rows = db.mymodel.select(limitby=(start_idx, start_idx+page_size

[web2py] Create web2py db.py entries from MySQL .sql structure file

2011-05-02 Thread ADE
I have a sql file "localhost.sql" containing the structure of my database written in MySQL I would like to upload this sql file and generate the appropriate code for my models file "db.py" Is there an easy way to do this? Any suggestions *cheers Andrew

[web2py] Mercurial Error

2011-05-02 Thread Eduardo Gonzalez
Hello, When I'm trying to use Versioning (mercurial) but I get an a ticket error: Traceback (most recent call last): File "/var/www/web2py/gluon/restricted.py", line 181, in restricted exec ccode in environment File "/var/www/web2py/applications/admin/controllers/mercurial.py", line 75, i

[web2py] Re: help testing

2011-05-02 Thread Massimo Di Pierro
One issue we need to solve is appadmin. With the experimental stuff in trunk, appadmin would not see lots of models. Now sure how to solve this because I would not know how to determine order of execution. Idea? Massimo On May 2, 6:09 pm, Martín Mulone wrote: > Nice,but anthony is right when th

Re: [web2py] Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Martín Mulone
+1 congrats Alexandre, I was playing a bit today :). This kind of app fit with web2py. 2011/5/2 Stifan Kristi > it's cool, congratulations > -- http://martin.tecnodoc.com.ar

Re: [web2py] Re: help testing

2011-05-02 Thread Martín Mulone
Nice,but anthony is right when the application grow, you have the situation that describe anthony. 2011/5/2 Anthony > On Monday, May 2, 2011 10:33:59 AM UTC-4, pbreit wrote: >> >> Right, but I get no benefit then. > > > If you've got models that are needed by multiple controllers, then there's >

[web2py] Re: Trunk new importer working?

2011-05-02 Thread pierreth
On 2 mai, 17:20, Bruno Rocha wrote: > > On Mon, May 2, 2011 at 5:53 PM, pierreth wrote: > > I don't think this is a nice solution. I would like something more > > > transparent. > > So you dont need to include globals() just pass the vars you want. > > mymodule,myfunction(request, response, sessio

Re: [web2py] Re: help testing

2011-05-02 Thread Bruno Rocha
On Mon, May 2, 2011 at 6:48 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > from web2py import g > > g.request > g.response > g.db > etc. > > without passing globals() > That will be really amazing thing! by now I am developing using the new style model/subfolder definition and for

[web2py] Re: help testing

2011-05-02 Thread Massimo Di Pierro
That will go away. Web2py already has a thread local singleton and it will be used in future version to allow any module to do something like: from web2py import g g.request g.response g.db etc. without passing globals() On May 2, 3:30 pm, Bruno Rocha wrote: > On Mon, May 2, 2011 at 5:22 PM, A

Re: [web2py] Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Stifan Kristi
it's cool, congratulations

[web2py] Re: Backup Database

2011-05-02 Thread howesc
i'm a little old-skool and just use the database's backup mechanisms since they are slightly different from db to db, but in general faster to run than CSV dump and import. cfh

Re: [web2py] Re: Trunk new importer working?

2011-05-02 Thread Bruno Rocha
> > On Mon, May 2, 2011 at 5:53 PM, pierreth wrote: I don't think this is a nice solution. I would like something more > transparent. > So you dont need to include globals() just pass the vars you want. mymodule,myfunction(request, response, session, db, anyotherobject, DEBUG)

Re: [web2py] Re: notnull=true in web2py.com book

2011-05-02 Thread Stifan Kristi
so that's the reason ya, thank you so much for your detail explaination pbreitenbach On Mon, May 2, 2011 at 10:13 PM, pbreit wrote: > It's unnecessary. Optionality is enforced by Web2py so it's not necessary > and less flexible to enforce it at the database level.

[web2py] Re: Trunk new importer working?

2011-05-02 Thread pierreth
On 2 mai, 16:31, Bruno Rocha wrote: > On Mon, May 2, 2011 at 5:20 PM, pierreth wrote: > > How can I read a boolean like DEBUG set in models or controllers from > > a module located in gluon? This is an aspect I don't know how to > > implement. > > you need to pass globals() to the module in the s

Re: [web2py] Re: Trunk new importer working?

2011-05-02 Thread Bruno Rocha
On Mon, May 2, 2011 at 5:20 PM, pierreth wrote: > How can I read a boolean like DEBUG set in models or controllers from > a module located in gluon? This is an aspect I don't know how to > implement. you need to pass globals() to the module in the same way Auth and Crud does. (take care of relo

Re: [web2py] Re: help testing

2011-05-02 Thread Bruno Rocha
On Mon, May 2, 2011 at 5:22 PM, Anthony wrote: > On Monday, May 2, 2011 4:12:25 PM UTC-4, rochacbruno wrote: >> >> >> I am not sure if we can have classes in modules to define tables and them >> pass DAL, response, request etc.. I need to test this approach. >> > > That's how Auth and Crud work,

Re: [web2py] Re: help testing

2011-05-02 Thread Anthony
On Monday, May 2, 2011 4:12:25 PM UTC-4, rochacbruno wrote: > > > I am not sure if we can have classes in modules to define tables and them > pass DAL, response, request etc.. I need to test this approach. > That's how Auth and Crud work, no?

[web2py] Re: Trunk new importer working?

2011-05-02 Thread pierreth
How can I read a boolean like DEBUG set in models or controllers from a module located in gluon? This is an aspect I don't know how to implement.

Re: [web2py] Re: help testing

2011-05-02 Thread Bruno Rocha
On Mon, May 2, 2011 at 4:57 PM, danto wrote: > what would be the difference from using import module? The main difference is that models executed implicit knows web2py environment as session, request, response etc. and that is easiest to define some things in models. modules does not have this

[web2py] What Control Panels work with web2py for Hosting Web2py

2011-05-02 Thread ADE
Hello I am wondering what server control panels can be integrated with web2py to host web2py projects, I have heard of multi user mode and am looking at integrating that. Does anyone have recommendations for control panels that integrate well with web2py on a debian squeeze system and/or if it can

[web2py] Re: deal with CSV

2011-05-02 Thread DenesL
Sorry, I don't understand what you mean by divide search results. As for headers, you could do: ... return 'A1,B1,C1\n' + '\n'.join([','.join(map(str,[r.id, r.num, r.ves, r.dt, r.usr])) for r in rr]) On May 2, 2:42 pm, cyber wrote: > Denes, it works. Thanks! > But how to divide search results

Re: [web2py] Re: help testing

2011-05-02 Thread danto
2011/5/2 Bruno Rocha : > On Mon, May 2, 2011 at 2:14 PM, pbreit wrote: >> >> Is routing the only other solution or would an "import" or import-like >> approach be feasible? > > models needs to be executed not imported, I think would be kind of helper > for doing that, like: > def index(): >     RU

[web2py] Re: How do you manage/version you applications and web2py core?

2011-05-02 Thread luckysmack
Thats a good point. on remote im pulling from the main google code repo anyways. Thanks. On May 2, 8:36 am, mattgorecki wrote: > You're right.  This is how I do it.  I use github extensively for my > apps and as long as the application directory is the root of the git > repository you won't run i

Re: [web2py] Re: can get where is the serialization error on this (rss web2py Iservice)

2011-05-02 Thread danto
2011/5/2 pbreit : > It looks ok at first glance. Can you send it through a validator? It should > tell you exactly where the problem is. > http://www.w3schools.com/XML/xml_validator.asp > http://validator.w3.org/feed/ > well, I can't know really because the render of a dict in a rss view it's diff

[web2py] Re: deal with CSV

2011-05-02 Thread cyber
Denes, it works. Thanks! But how to divide search results? Finaly I want each table field to be into personal column in the row in csv file. For example, r.id should be into A1, r.num should be into B1 etc. Is it possible? * On 2

[web2py] Re: Backup Database

2011-05-02 Thread luifran
Is true, I have a other problem, I have a sqlite file.csv, and I want to import this file to mysql database and appears the following error: Cannot add or update a child row: a foreign key constraint fails (`sinrisk`.`auth_event`, CONSTRAINT `auth_event_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `a

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Anthony
Very nice -- just added it to http://www.web2py.com/poweredby. Anthony On Monday, May 2, 2011 12:13:31 PM UTC-4, Alexandre Strzelewicz wrote: > I have the pleasure to present you Skytoop, > > http://www.skytoop.com/ > > If someone have tips or feedback to give me it coould be nice !

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Massimo Di Pierro
congratulations. looks really nice. On May 2, 11:13 am, Alexandre Strzelewicz wrote: > I have the pleasure to present you Skytoop, > > http://www.skytoop.com/ > > If someone have tips or feedback to give me it coould be nice !

[web2py] webgrid- column width

2011-05-02 Thread scott
Just started with web2py, and got the webgrid module running immediately. very impressive. How can I display the columns widths so they reflect the datatypes (and lengths) in the table. Currently, the default view is only about 3 columns across the screen

Re: [web2py] Re: help testing

2011-05-02 Thread Bruno Rocha
On Mon, May 2, 2011 at 2:14 PM, pbreit wrote: > Is routing the only other solution or would an "import" or import-like > approach be feasible? models needs to be executed not imported, I think would be kind of helper for doing that, like: def index(): RUN_MODEL('test','index')

Re: [web2py] Re: help testing

2011-05-02 Thread pbreit
Is routing the only other solution or would an "import" or import-like approach be feasible?

Re: [web2py] Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Jason Brower
On 05/02/2011 07:13 PM, Alexandre Strzelewicz wrote: I have the pleasure to present you Skytoop, http://www.skytoop.com/ If someone have tips or feedback to give me it coould be nice ! Throw this in and you got your self a desktop! http://www.webupd8.org/2011/03/gtk-32-will-let-you-run-any-app

Re: [web2py] Re: help testing

2011-05-02 Thread Bruno Rocha
routed solution is the next step, depending on the application the better way is using modules instead of models. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] > If you've got models that are needed by multiple controllers, then there's > no benefit to be had -- all your models will ha

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread mart
yeah, nice work. I like the context menus, and the notes is a great idea (although would be good if they could be hidden - but still accessible (something like in Acrobat)). To expand on the notes idea. If notes could be shared, and user comments could also be kept (and the history), notes could b

[web2py] Re: Markmin + Markitup

2011-05-02 Thread villas
This is an excellent feature. Thanks for making it more accessible. I have sent a message to the author advocating your patch. Hopefully anyone else interested might do the same. You will find a contact form on the author's website. See: http://www.jaysalvat.com/ On May 2, 12:18 am, Massimo

[web2py] Re: can get where is the serialization error on this (rss web2py Iservice)

2011-05-02 Thread pbreit
It looks ok at first glance. Can you send it through a validator? It should tell you exactly where the problem is. http://www.w3schools.com/XML/xml_validator.asp http://validator.w3.org/feed/

[web2py] Re: Backup Database

2011-05-02 Thread pbreit
According to the book: "When importing, the new records will be appended to the database if it is not empty. In general the new imported records will not have the same record id as the original (saved) records but web2py will restore references so they are not broken, even if the id values may

[web2py] Re: Backup Database

2011-05-02 Thread luifran
The problem is this, I have for example the following tables and records: db.define_table ('a ', Field ('name', 'string')) db.define_table ('b', Field ('name', 'string '), Field ('a ', db.a)) Table record's a: id-> 1, name-> 'name1' no id-> 2 because such has been removed. id-> 3, name-> 'name3' Ta

[web2py] can get where is the serialization error on this (rss web2py Iservice)

2011-05-02 Thread danto
I'm creating an rss just as says in the book and *works well where is just one item but isn't with more*, so it gives me an error about bad rss serialization when trying to use the rss view, but the xml view shows the following: 2011-05-02 12:59:34.924007 2011-05-02

Re: [web2py] Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread danto
2011/5/2 Alexandre Strzelewicz : > I have the pleasure to present you Skytoop, > > http://www.skytoop.com/ > > If someone have tips or feedback to give me it coould be nice ! omg, it's amazing! some 'about' and 'purposes' info would be very much appreciated :) needs a close button in the "add ap

[web2py] Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Alexandre Strzelewicz
I have the pleasure to present you Skytoop, http://www.skytoop.com/ If someone have tips or feedback to give me it coould be nice !

[web2py] Re: How do you manage/version you applications and web2py core?

2011-05-02 Thread mattgorecki
You're right. This is how I do it. I use github extensively for my apps and as long as the application directory is the root of the git repository you won't run into any conflicts. On May 2, 9:25 am, pbreit wrote: > I'm not even sure you need to .hgignore your app since you will never be > push

[web2py] Re: jquery for triggering change in dropdown list values

2011-05-02 Thread Anthony
On Sunday, May 1, 2011 11:56:55 PM UTC-4, niknok wrote: > > Thanks Anthony. > > I've actually tried that, but it was a tad too slow for me. :( Bummer. If you figure out an alternative, let us know.

[web2py] Re: How do you manage/version you applications and web2py core?

2011-05-02 Thread pbreit
I'm not even sure you need to .hgignore your app since you will never be pushing web2py. I don't.

Re: [web2py] Re: help testing

2011-05-02 Thread Anthony
On Monday, May 2, 2011 10:33:59 AM UTC-4, pbreit wrote: > > Right, but I get no benefit then. If you've got models that are needed by multiple controllers, then there's no benefit to be had -- all your models will have to be run on every request anyway. The benefit comes if you've got some mo

[web2py] Re: Backup Database

2011-05-02 Thread pbreit
db.export and db.import should work fine and preserve any relationships. I'm not sure I understand what problem you are seeing.

[web2py] Re: notnull=true in web2py.com book

2011-05-02 Thread pbreit
It's unnecessary. Optionality is enforced by Web2py so it's not necessary and less flexible to enforce it at the database level.

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread pbreit
Have you tried the settings discussed in router.example.py? They might work OK for you. I have a default_application specified which by itself hides in the URL the app name, "default" controller and "index". And it has support for mapping sub-domains to apps.

[web2py] notnull=true in web2py.com book

2011-05-02 Thread 黄祥
hi, i wondering why notnull=true is not implement on the exampe on the book? is it affect the db performance or web2py is focus on controller validation not in the db validation? please give an advice, pointer or suggestion about this, thank you so much in advance

[web2py] Re: help testing

2011-05-02 Thread pbreit
I just mean that it seems like this is a case where normal Python or Pyton-like "importing" would make the most sense. So instead of coming up with an elaborate scheme of model filenames and directory structures, you could simply specify which models should get loaded by which controllers.

Re: [web2py] Re: help testing

2011-05-02 Thread pbreit
Right, but I get no benefit then.

[web2py] Re: help testing

2011-05-02 Thread Massimo Di Pierro
This was discussed long ago... Here is the problem. Plugins are a packaging mechanism. Now an app has models/views/controllers/etc and a plugin can be "any subset of an app". If you relegate plugins into a subfolder called plugins than they cannot be "any subset of an app". For example they canno

[web2py] Re: help testing

2011-05-02 Thread Ross Peoples
This is pretty awesome and will be very helpful with large, enterprise applications, as well as applications that do many things that are not all related. I wonder if we could take this a bit further though... Plugins, for example, extract themselves to the various locations (models, controller

[web2py] Re: Markmin + Markitup

2011-05-02 Thread Massimo Di Pierro
You do not need plugin_wiki at all. I am just saying you need the static/plugin_wiki/markitup folder that is in plugin-wiki. Put it in static somewhere and add the lines to the view as I suggested. On May 2, 8:32 am, Jason Brower wrote: > Kind of highjacking this.  But is there a way to use this

[web2py] Re: help testing

2011-05-02 Thread Massimo Di Pierro
If you can use import it is a module, not a model. A model in web2py must be executed - by definition. On May 2, 12:43 am, pbreit wrote: > This screams "import" to me. > > === default.py === > from myapp.models import db > > def index() > ...

[web2py] Re: help testing

2011-05-02 Thread Massimo Di Pierro
It is not the new feature that may break something is it the implementation. For example I had to rewrite a lot of code to make sure modules in applications bytecode compiled "before" this new feature still run at all. I have not done extensive tests that this is correct (although I think so). On

[web2py] Re: button action

2011-05-02 Thread Massimo Di Pierro
http://mywiki.wooledge.org/XyProblem what do you want to do exactly? On May 1, 8:04 pm, niknok wrote: > I have this button that redirects to a URL: > > form[0][-1][1].append(INPUT(_type='button',_value=T('Previous') >                             ,_onclick='document.location="%s"' > %URL("quest

[web2py] Re: joins in crud select

2011-05-02 Thread Massimo Di Pierro
No join in crud select (yet) On May 1, 7:18 am, niknok wrote: > Can I do joins in CRUD? > > I'm getting a 404 Not Found error with this: > >         > rows=crud.select(db((db.qa.candidate==user_id)&(db.quiz.id==db.qa.quiz))) > > But the following works alright: > >         rows=db((db.qa.candida

[web2py] Re: expression question

2011-05-02 Thread Massimo Di Pierro
queries have to be of the form field operator value value can (for double, string and integer) be an expression that contains fields like field < otherfield + 5 On May 1, 7:17 am, niknok wrote: > I'm wondering why this doesn't work: > >     delta=datetime.timedelta(seconds=15*60) >     db(requ

Re: [web2py] Re: Markmin + Markitup

2011-05-02 Thread Jason Brower
Kind of highjacking this. But is there a way to use this in my app that uses markmin but I don't have the plugin wiki? BR, Jason Brower On 05/02/2011 02:20 AM, Massimo Di Pierro wrote: p.s. you need the markiup js that comes with plugin_wiki because the official one does not support markmin. O

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
O I found : routes_in = ( (r'.*http://app1.com.* (/login.*)', r'/APPNAME/default/user/ login'), (r'.*http://app1.com.* (/logout.*)', r'/APPNAME/default/user/ logout'), ) On May 2, 2:51 pm, Alexandre Strzelewicz wrote: > O I found : > > routes_in = ( >        (r'.*http://app1

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
O I found : routes_in = ( (r'.*http://app1.com.* (/login.*)', r'/default/user/login'), ) On May 2, 2:19 pm, Alexandre Strzelewicz wrote: > So I tried : > > routes_in = ( >     ('^88\.88\.88\.88:/$','/examples/default/index'), >     ('^http://myapp1\.com:/$','/examples/default/ > index

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
So I tried : routes_in = ( ('^88\.88\.88\.88:/$','/examples/default/index'), ('^http://myapp1\.com:/$','/examples/default/ index') ) routes_out = ( ('/myapp/default/index', '/'), ) But the domain is not redirectect to /examples/default/index when I come from http://myapp1.com I

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
So I cant map /public/index/Demo.Demo to /public/Demo.Demo if I use the parameter based system ? On May 2, 2:48 am, Jonathan Lundell wrote: > On May 1, 2011, at 5:27 PM, Alexandre Strzelewicz wrote: > > > > > > > > > > > > > I tried lot of things and I cant use  Parameter Based System + Pattern

[web2py] Backup Database

2011-05-02 Thread luifran
How I can make backups of my database to restore in the future? I tried it with db.export_to_csv_file and db.import_from_csv_file, but does not work because as you read and introducing bellonging ignores the id fields and enter according to the sequence, then the relationships I have and that are n

[web2py] Re: how to set the value of textarea form field on accept, upload without storing files

2011-05-02 Thread selecta
*bump* On Apr 29, 1:30 pm, selecta wrote: > > Also I wonder if there is a method to upload the file without ever > > storing it? If I remove the uploadfolder argument it does not work. I > > really dont want to store the file at all. > > ok i should have serached a bit more > uploadfield=False >