[web2py] Re: command line question
when I do the untar myself, and bring up the application, it doesn't work because the file ownerships are all wrong. This happens in the linux server. I was just wondering if there was a way to install it using web2py to install the application through command line. On Thursday, February 21, 2013 11:28:45 AM UTC-6, Niphlod wrote: > just unpack it under applications/ > cd applications/whatever > tar xzvf thetarfile.tar > > or see into gluon.fileutils using w2p_unpack() or directly untar(). By if > you have a cmdline tar available, just use that one. > > On Thursday, February 21, 2013 5:52:33 PM UTC+1, Hector Magnanao wrote: >> >> Is there a command line option in web2py to install an application ? I'm >> trying to install a tar file through command line. Maybe there is a python >> command that I need to run. Any suggestions would be welcomed. >> > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] command line question
Is there a command line option in web2py to install an application ? I'm trying to install a tar file through command line. Maybe there is a python command that I need to run. Any suggestions would be welcomed. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: browser question
Yes, that's what i want On Wednesday, February 20, 2013 10:01:44 AM UTC-6, Luca Zacchetti wrote: > Do you mean to start it in a browser different from the default-system one? > > Il giorno mercoledì 20 febbraio 2013 16:52:49 UTC+1, Hector Magnanao ha > scritto: >> >> Is there a way to specify a different browser when I launch web2py ? > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] browser question
Is there a way to specify a different browser when I launch web2py ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Need older versions of web2py
Where can I download previous versions of web2py ? I don't see them on the website. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Database connection error
Will these options also work for database that is on a linux server ? On Friday, February 15, 2013 10:44:05 AM UTC-6, Hector Magnanao wrote: > > Awesome !!! Option 2 worked. Thanks. > > On Friday, February 15, 2013 10:00:54 AM UTC-6, Niphlod wrote: > >> yep, but you have either to: >> 1. copy over the databases/ folder (the .table files holds the state of >> the tables on the db as far as web2py knows, so the 2nd one if doesn't find >> the table files thinks it has to create them) >> 2. set migrate=False for the tables on the 2nd app (so web2py will trust >> your models and never try to create any table). Usually on the 2nd app you >> want to do >> db = DAL('same uri as the one for the 1st app', migrate_enabled=False) >> ##optionally auth.define_table(migrate=False) >> >> 3. fake migrate all the tables on the 2nd app (so web2py will trust that >> the current model is in sync with the db and recreate the .table files) >> db = DAL('same uri as the one for the 1st app', fake_migrate_all=True) >> then hit the appadmin (one time only is enough to create the files), >> then continue with >> db = DAL('same uri as the one for the 1st app') >> >> I vote for 2. >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Database connection error
Awesome !!! Option 2 worked. Thanks. On Friday, February 15, 2013 10:00:54 AM UTC-6, Niphlod wrote: > yep, but you have either to: > 1. copy over the databases/ folder (the .table files holds the state of > the tables on the db as far as web2py knows, so the 2nd one if doesn't find > the table files thinks it has to create them) > 2. set migrate=False for the tables on the 2nd app (so web2py will trust > your models and never try to create any table). Usually on the 2nd app you > want to do > db = DAL('same uri as the one for the 1st app', migrate_enabled=False) > ##optionally auth.define_table(migrate=False) > > 3. fake migrate all the tables on the 2nd app (so web2py will trust that > the current model is in sync with the db and recreate the .table files) > db = DAL('same uri as the one for the 1st app', fake_migrate_all=True) > then hit the appadmin (one time only is enough to create the files), > then continue with > db = DAL('same uri as the one for the 1st app') > > I vote for 2. > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Database connection error
Can someone help me out with an annoying database connection problem ? I have a local database in my PC using MySQL. I created the tables and loaded the data. But whenever I try to start my application, it keeps saying that some table already exist " 127.0.0.1.2013-02-15.09-51-45.a00216cb-bedd-484c-b1be-e79b3fd7d3e7 (1050, u"Table 'location_tracking' already exists") I have another application that uses this database already. All I want to do is create another application using tthe same database schema. Is this possible ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] How do I deploy an application to a linux server ?
We have web server and I would like to deploy my app to that server. what are the steps ? and can it be scripted ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: pack all functionality
Thank you !!! this will help me alot. On Tuesday, January 29, 2013 11:37:55 PM UTC-6, Anthony wrote: > Keep in mind, admin is just a web2py app, so follow the app code. Start > here<http://code.google.com/p/web2py/source/browse/applications/admin/controllers/default.py#326>. > > Then > here<http://code.google.com/p/web2py/source/browse/gluon/admin.py#46>(most of > the admin functions are in /gluon/admin.py, so you can use the > functions outside of the admin app by importing that module). > > Anthony > > On Tuesday, January 29, 2013 11:50:02 PM UTC-5, Hector Magnanao wrote: >> >> Can someone point me to where the source code is for the pack all button ? >> > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] pack all functionality
Can someone point me to where the source code is for the pack all button ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: writing build scripts for web2py
Is there a way to tar it as an .w2p file just like the what pack all does ? or does it matter ? On Saturday, January 26, 2013 6:15:34 PM UTC-6, rochacbruno wrote: > > Go to admin interface and click in "Pack All: it generates a .w2p package. > > Or just go to your shell and $tar -cvf myapp.tar.gz /path/to/my/app > > If you want some more specific package system maybe it is better to put > your app in github and use Fabric, Puppet, Cheff, BUildout or other tools > like this to create a installation recipe. > > --
[web2py] Re: writing build scripts for web2py
i want to know how to package my application through a script. Can you point me to a solution somewhere ? On Thursday, January 10, 2013 2:19:12 PM UTC-6, Niphlod wrote: > > what do you want to do with a "build script" ? > > On Thursday, January 10, 2013 7:28:45 PM UTC+1, Hector Magnanao wrote: >> >> How do I write a build script for web2py ? > > --
[web2py] writing build scripts for web2py
How do I write a build script for web2py ? --
[web2py] how do I change the appearance of a form from the basic look ?
how do i change the background color, fonts, etc. ? --
[web2py] changing the look of a form
how do you change the look of a form (i.e. background color, fonts, etc...) ? --
[web2py] counting lines of code and number of files
1) How do you count the number of files that make up a web2py application ? 2) How do you count the lines of code for each file in question 1 ? I hope to write a perl script that can do this. --
[web2py] checking for an empty list
Hi, How do you check if a list is empty in web2py ? Basically I need to check this logic: result = tm.get_stops(lat, lon); I want to see if result is empty or not. Thanks, --