[web2py] Re: Good jQuery UI Library
Thank everybody for the help. I have been also looking into this http://angularjs.org/ Not a UI library but a JavaScript MVC On Jul 15, 7:57 am, Ross Peoples wrote: > I have evaluated several UI libraries. ExtJS is the nicest, but you can only > use it for open source projects, otherwise you have to buy it. QooXDoo looks > cool, but wouldn't integrate into web2py very well if you wanted to > completely replace jQuery. Then you have YUI (Yahoo User Interface), which > is kind of nice, and probably the easiest library to integrate. > > But I agree with Phyo that jQuery UI is really the best, easiest option. > Plus, some of the jQuery plugins are really nice. Unfortunately, using > jQuery's site to search for plugins is terrible. And plugin quality can > range from horrible to excellent.
[web2py] Good jQuery UI Library
I loved using the following library http://flowplayer.org/tools/index.html because it was light-weight but I think the developer is MIA. What is a good jQuery library that will work with web2py and is light weight. I am not impressed with jquery UI I think its to bloated.
[web2py] Re: Database connection to Google Datastor in appengine
Thanks for the info I will try that. On Jul 14, 8:09 am, Anthony wrote: > On Thursday, July 14, 2011 7:48:40 AM UTC-4, stargate wrote: > > > I am having trouble finding the connection string example to connect > > to a Google Datastor database. > > Seehttp://code.google.com/p/web2py/source/browse/applications/welcome/mo > According to the book, you can just use DAL('gae'). > > > Also what is the best method if you > > are working on your web2py application locally how would you connect > > to a Google Datastor database. > > Maybe use the > SDK:http://code.google.com/appengine/docs/python/gettingstarted/devenviro... > . > > Anthony
[web2py] Database connection to Google Datastor in appengine
I am having trouble finding the connection string example to connect to a Google Datastor database. Also what is the best method if you are working on your web2py application locally how would you connect to a Google Datastor database.
[web2py] Re: web2py hosting
For hosting I would use https://www.dotcloud.com/ But only for big projects. On Jul 1, 1:17 pm, DenesL wrote: > Information collected from actual users of the service. > Comments can belong to several people, > and can be positive (+), negative (-) or other (~). > This post will be updated periodically. > > Hosting company: Webfaction > Type of service: latest > web2py version: > Python version: 2.4/3.2 > OS & version: Linux 2.6.18 > Aprox. cost: 8 dollars/month (depends on plan) > Geo location: USA > > + great control panel, great support, feature rich, > many auxiliary services available. > + I am very happy with them. > - Personally, my experience with webfaction WAS NOT GOOD. > My web2py websites, often were slow or down. > - recently changed my 20 web2py apps from webfaction. > ~ is very nice if you have only one low traffic website. > + I have a webfaction account with around 3-4 apps at the > cheapest plan which is really low and it works very well. > Until now, a great experience with them, almost 2 years. > > Hosting company: vps.net > Type of service: vps > web2py version: they provide ubuntu images, I install web2py myself > Python version: depends on the ubuntu image > OS & version: ubuntu > Aprox. cost: $20/month + $5/month for backups > Geo location: USA + England > > Hosting company: IPage > Type of service: > web2py version: web2py (with CGI) > Python version: > OS & version: > Aprox. cost: > Geo location: > > - very poor technical support, VERY slow, I would not recommend it ! > > Hosting company: linode.com > Type of service: > web2py version: > Python version: > OS & version: > Aprox. cost: $19 512RAM > Geo location: > > + In 10 minutes you have a web2py app running on Linode > with Uwsgi and Nginx, just need to use the script that > comes with web2py as a stack script on Linode. > > Hosting company: alwaysdata.com > Type of service: free > web2py version: > Python version: 2.6 > OS & version: > Aprox. cost: 9 euros/mo alwaysdata.com/plans/shared > Geo location: servers are located in France > > ~ ssh, phpmyadmin > > Other hosting companies from web2py powered sites: > > 123-reg.co.uk > amazonaws.com > dreamhost.com > GAE > gandi.net > godaddy.com > jiffybox.de > prgmr.com > slicehost.net
[web2py] Google App Engine datastor
is Google App Engine datastor supported in web2py?
[web2py] Multiple Languages for application
Does web2py support Multiple Languages. So lets say I create a system that is all in English, How would i translate it into french Italian Spanish.
[web2py] Google Datastore
I was wondering if there is a example on connecting to a google Datastore database on App Engine
[web2py] Re: Cloud Database
Can Google BigTable work with web2py and can it be hosted on http://www.dotcloud.com/ ? On May 6, 2:16 pm, Bruno Rocha wrote: > Google BigTable except for the joins.. > > On Fri, May 6, 2011 at 3:06 PM, stargate wrote: > > If you are starting out a new social site is it better to do it in > > mySQL first then move to a cloud database. Which cloud database is > > better and similar to mySQL slect statements?
[web2py] Cloud Database
If you are starting out a new social site is it better to do it in mySQL first then move to a cloud database. Which cloud database is better and similar to mySQL slect statements?
[web2py] Re: dotcloud admin disabled because unable to access password file
What I am trying to do is when i go to mydomain.dotcloud.com and go to the admin the administration will work without having to go to ssh every time i want to do any administration. One method I do like is placing a parameters_#.py in the web2py directory/ But how do i generate this file? Thanks for all the help On Mar 14, 6:38 pm, pbreit wrote: > Alternatively, you can place a paramters_#.py file in your web2py directory > with a known password. > > You need one file per port > (parameters_8000.py, parameters_80.py, parameters_443.py). The file should > be located in the same directory as web2py.py
[web2py] dotcloud admin disabled because unable to access password file
I just pushed web2py onto dotcloud but i get the following error. admin disabled because unable to access password file Not to sure how to fix this.
[web2py] Re: Dotcloud hosting great tutorial but stuck
The problem is when i am in the web2py directory the file wsgihandler.py doesn't exist so i can't type any of the commands when i type ls -l wsgihandler.py i get command not found same if i type the following command ln -s wsgihandler.py wsgi.py That is why i am stuck On Mar 9, 7:07 pm, Jonathan Lundell wrote: > On Mar 9, 2011, at 3:49 PM, stargate wrote: > > > > > I am following the following tutorial for web2py deployment > > >http://docs.dotcloud.com/static/tutorials/web2py/ > > > the problem i am stuck at is when i try to run the following command > > What exactly do you mean by "stuck"? > > > > > web2py$ ln -s wsgihandler.py wsgi.py > > > I am doing this from macos Terminal > > > Thanks for any help > >
[web2py] Dotcloud hosting great tutorial but stuck
I am following the following tutorial for web2py deployment http://docs.dotcloud.com/static/tutorials/web2py/ the problem i am stuck at is when i try to run the following command web2py$ ln -s wsgihandler.py wsgi.py I am doing this from macos Terminal Thanks for any help
[web2py] Re: Ajax form post
Thanks for the help. No its just I am use to creating The form manually then doing a jquery Ajax post using php. On Mar 2, 8:33 pm, Anthony wrote: > Yes, as pbreit points out, web2py already has functionality to handle this > kind of thing for you. > > First, you generally won't need to create a form in HTML. Instead, read the > book to learn about web2py's multiple options for creating and processing > forms:http://web2py.com/book/default/chapter/07. > > Second, for logins specifically, web2py has an excellent authentication and > authorization system, also discussed in the > book:http://web2py.com/book/default/chapter/08. > > And as noted below, there's also information about Ajax form > submission:http://web2py.com/book/default/chapter/10#Ajax-Form-Submission > > The book is your friend -- read it. :) > > Best, > Anthony > > > > On Wednesday, March 2, 2011 6:51:18 PM UTC-5, pbreit wrote: > > > > I don't want to sound like your mother but, why would you want to do this? > > Web2py already does logins for you in a standardized way that users are > > familiar with. Why not use what Web2py gives you and start working on the > > unique aspects of your application? Or at least use what Web2py gives you > > for now and enhance it later when you've got more Web2py experience under > > your belt. Creating applications is hard enough without re-inventing a worse > > wheel. > > > > > The first thing you need to do is learn how to do Ajax form submissions in > > Web2py:http://web2py.com/book/default/chapter/10#Ajax-Form-Submission > > > Next, you will need to learn how to do custom login form. Something like > > this might work: > > {{=form.custom.begin}} > > username: {{=form.custom.widget.email}} > > password: {{=form.custom.widget.password}} > > {{=form.custom.widget.formkey}} > > {{=form.custom.end}}
[web2py] Ajax form post
Lets say i create a form using html and I am going to use Jquery to do a ajax post to a web2py url In the form there is two fields username and password. The web2py controller will request the username and password and store them in varaibles. How would you do this.
[web2py] Re: from php to web2py
all is what i need to know is what goes in the .py file and what goes in the .html file i am a novice. Thanks for all the help On Mar 2, 9:46 am, Anthony wrote: > Yes, there are lots of examples in the book:http://www.web2py.com/book. > Start with chapter 3. > > Also, more examples here:http://web2py.com/examples/default/examples > > You should also explore the 'welcome' app to see how things are set up, and > you can download and explore plenty of other applications as > well:http://web2py.com/appliances > > Anthony > > On Wednesday, March 2, 2011 9:34:05 AM UTC-5, stargate wrote: > > Is there a example of this showing what code goes in what file. > > > On Mar 2, 8:56 am, Norbert Klamann > > wrote: > > > I am a newbie wrt web2py , but I think it is just the other way round. > > You > > > place the loop.html in the views/default directory and the controll calls > > it > > > automagically. > >
[web2py] Re: from php to web2py
Is there a example of this showing what code goes in what file. On Mar 2, 8:56 am, Norbert Klamann wrote: > I am a newbie wrt web2py , but I think it is just the other way round. You > place the loop.html in the views/default directory and the controll calls it > automagically.
[web2py] from php to web2py
I am looking at the following example here located http://web2py.com/AlterEgo/default/show/106 If you go to the heading PHP files and web2py views Further down there is a web2py example. Now i create a controller called loop and a html page called loop but how do i call the controller in the loop.html page.
[web2py] Re: Broken Link is there a new resource
Thanks for the update On Mar 1, 1:56 pm, Anthony wrote: > Here you go:http://www.web2py.com/AlterEgo/default/show/106 > > web2py used to be hosted athttp://mdp.cti.depaul.edu-- so for some of > those older links, you can just replace that withhttp://www.web2py.com. > > Anthony > > On Tuesday, March 1, 2011 1:43:15 PM UTC-5, stargate wrote: > > I was on the following page > > >http://www.web2py.com/php > > > When i click on > > click here to learn more about web2py (for PHP programmers) > > > The link goes to a broken page. > > > Is there a alternative resource for this > >
[web2py] Broken Link is there a new resource
I was on the following page http://www.web2py.com/php When i click on click here to learn more about web2py (for PHP programmers) The link goes to a broken page. Is there a alternative resource for this
[web2py] Re: extract_mysql_models.py
Where do I find this file? extract_mysql_models.py On Feb 26, 10:12 am, Vasile Ermicioi wrote: > please read the comments from the script > > Under Windows you will probably need to add the mysql executable directory > > > to the PATH variable, > > you will also need to modify mysql to mysql.exe and mysqldump to > > mysqldump.exe below. > > Just guessing here :) > >
[web2py] extract_mysql_models.py
how would I use extract_mysql_models.py to extract a existing mysql database
[web2py] Re: web2py database administration
It worked I commented out the following line and I can insert a user. Thanks everybody for the help db.auth_user.registration_id.requires = IS_NOT_IN_DB(db,db.auth_user.registration_id) and On Feb 25, 2:27 pm, Anthony wrote: > On Friday, February 25, 2011 2:19:17 PM UTC-5, stargate wrote: > > > Thanks for all the help it triggered a idea I will try > > No problem. Let us know what you do and how it works. > > Anthony
[web2py] Re: web2py database administration
Thanks for all the help it triggered a idea I will try On Feb 25, 1:30 pm, Anthony wrote: > On Friday, February 25, 2011 11:50:40 AM UTC-5, stargate wrote: > > But how do you make it so that it will generate a Registration ID > > automatically. When i create a new application with the db wizard and > > connect to the sqllite database I don't have any of these problems. I > > can create a new user with out giving a registration id > > web2py doesn't generate the registration_id -- it is something received from > Janrain when a user logs in via Janrain. If the login isn't happening via > Janrain, then there won't be any registration_id. If you want to avoid that > error, I think you have three options: > > 1. Enter your own unique registration_id for each user in appadmin (I > think any unique string should work, including just repeating the username > or email); > 2. Add new users via the regular application registration form (i.e., > /[your_app]/default/user/register) instead of via appadmin. The standard > registration form doesn't show the registration_id field (because readable > = > writable = False), so I don't think it ends up getting validated, and > therefore there is no validation error; or > 3. Remove the following line: > > db.auth_user.registration_id.requires = IS_NOT_IN_DB(db, > db.auth_user.registration_id) > > As far as I can tell, the registration_id error you're getting in appadmin > should happen any time you use the wizard to create an app with auth, even > using SQLite (I get the same error when I try it). Anyway, it should be easy > enough to avoid via the above options. > > Anthony > > > > > On Feb 25, 10:25 am, Anthony wrote: > > > On Friday, February 25, 2011 10:04:36 AM UTC-5, stargate wrote: > > > > > Thanks for all the help I hope i can solve this problem > > > > What problem do you still need to solve -- is it just the issue with the > > > "Registration Id" error in appadmin? As far as I can tell, the > > > "registration_id" field is used in conjunction with the Janrain login > > > method. If you're not using Janrain, you can probably remove this line: > > > > db.auth_user.registration_id.requires = IS_NOT_IN_DB(db, > > > db.auth_user.registration_id) > > > > That will allow you to leave "Registration Id" blank in appadmin. > > Otherwise, > > > it should work as long as you enter unique registration_id's for each new > > > > record. It appears the registration_id is normally something provided by > > > Janrain -- see /gluon/contrib/login_methods/rpx_account.py. > > > > Anthony > >
[web2py] Re: web2py database administration
But how do you make it so that it will generate a Registration ID automatically. When i create a new application with the db wizard and connect to the sqllite database I don't have any of these problems. I can create a new user with out giving a registration id On Feb 25, 10:25 am, Anthony wrote: > On Friday, February 25, 2011 10:04:36 AM UTC-5, stargate wrote: > > > Thanks for all the help I hope i can solve this problem > > What problem do you still need to solve -- is it just the issue with the > "Registration Id" error in appadmin? As far as I can tell, the > "registration_id" field is used in conjunction with the Janrain login > method. If you're not using Janrain, you can probably remove this line: > > db.auth_user.registration_id.requires = IS_NOT_IN_DB(db, > db.auth_user.registration_id) > > That will allow you to leave "Registration Id" blank in appadmin. Otherwise, > it should work as long as you enter unique registration_id's for each new > record. It appears the registration_id is normally something provided by > Janrain -- see /gluon/contrib/login_methods/rpx_account.py. > > Anthony
[web2py] Re: web2py database administration
Thanks for all the help I hope i can solve this problem On Feb 25, 6:53 am, stargate wrote: > Maybe Massimo might need to jump on this. It could be a bug that we > aren't even aware of. > > On Feb 25, 1:58 am, pbreit wrote: > > > I take that back. Appears to be used for approving > > registrations:http://web2py.com/book/default/chapter/08?search=registration_key > >
[web2py] Re: web2py database administration
Maybe Massimo might need to jump on this. It could be a bug that we aren't even aware of. On Feb 25, 1:58 am, pbreit wrote: > I take that back. Appears to be used for approving > registrations:http://web2py.com/book/default/chapter/08?search=registration_key
[web2py] Re: web2py database administration
I know it's weird I just used the web2py application wizard and during the wizard process it creates a database but I change the connection string to a mysql database then web2py creates the tables with no problems so I am not sure what is going on On Feb 24, 10:44 pm, pbreit wrote: > Hmmm...that's weird. New apps usually do not have a custom auth_user table > as you have. And custom auth_user tables normally should look more like the > one in the web2py doc.
[web2py] Re: web2py database administration
Nothing custom. I just created the site using the wizard then change the database connection string to point to mySQL database that is all On Feb 24, 8:42 pm, pbreit wrote: > Also, here's how to create a custom auth_user table if that's what you > want:http://web2py.com/book/default/chapter/08#Customizing-Auth > > You typically would not include an "id" field in your model since Web2py > takes care of that. > > Are you starting your project from scratch? Where did you get all that code > from? It's hard to figure out what you're doing since you're code doesn't > look like anything I've seen before. Have you had a look at the Web2py > docs?http://web2py.com/book/
[web2py] Re: web2py database administration
Here is a copy of the db.py model http://www.p3x984.com/db/db.txt Not sure if i am missing something On Feb 24, 12:35 pm, stargate wrote: > I will post my model thanks everybody for all the help. > > On Feb 24, 11:27 am, pbreit wrote: > > > We need to see your model so we can see how "Registration ID" is specified. > > It looks like Registration ID may be specified as a unique or non-empty > > field and you are leaving it blank or there is already a record with an > > empty field in the DB. > > > Also note that Web2py automatically creates an "id" field for each table > > which you would normally use as the key. > >
[web2py] Re: web2py database administration
I will post my model thanks everybody for all the help. On Feb 24, 11:27 am, pbreit wrote: > We need to see your model so we can see how "Registration ID" is specified. > It looks like Registration ID may be specified as a unique or non-empty > field and you are leaving it blank or there is already a record with an > empty field in the DB. > > Also note that Web2py automatically creates an "id" field for each table > which you would normally use as the key.
[web2py] Re: web2py database administration
Web2py did create the tables no problem but the problem is in this screen shot here http://www.p3x984.com/images/error/dberror.png On Feb 24, 9:53 am, pbreit wrote: > The one thing you have to do separately is create the database (except for > SQLite). After you create the database and put in your db connection string > (ex: mysql://username:password@localhost/test) Web2py will create all the > tables and fields.
[web2py] Re: web2py database administration
I deleted the mySQL database and still get the following error when adding a new user value already in database or empty in the Registration ID. When I created my mySQL database web2py creates the tables with no problem. Here is a screen shot of the database being created http://www.p3x984.com/images/error/databasecreate.png Thanks for all the help. On Feb 24, 2:03 am, pbreit wrote: > If you're just beginning, I would suggest deleting your database and > starting over fresh.
[web2py] Re: web2py database administration
The tables were created once I connected to the mySQL database so how would I fix this On Feb 23, 7:25 pm, pbreit wrote: > It looks like "Registration ID" is specified as a unique field in the DB and > the DB already contains a record that has Registration ID = '' (ie, empty)
[web2py] Re: web2py database administration
Take a look at the following image when I am creating a user I get the following error refer to the screen shot. This is connecting to a mySQL database http://www.p3x984.com/images/error/dberror.png On Feb 23, 3:53 pm, DenesL wrote: > On Feb 23, 10:49 am, stargate wrote: > > > Is there a tool for web2py that will scan all the > > mysql tables in the database then update the db.py. Or is there a > > database GUI administration tool that I can use to create the tables > > within web2py. > > There is source/scripts/extract_mysql_models.py but it might not do > all that you wish for.
[web2py] Re: web2py database administration
Perfect I will look into this. Does web2py have a database administration tool where you can create tables? On Feb 23, 11:06 am, Anthony wrote: > On Wednesday, February 23, 2011 10:49:52 AM UTC-5, stargate wrote: > > > I think I know what the problem is. I am defining tables in PHP my > > admin for mySQL. Is there a tool for web2py that will scan all the > > mysql tables in the database then update the db.py. Or is there a > > database GUI administration tool that I can use to create the tables > > within web2py. > > Check > outhttp://web2py.com/book/default/chapter/06#Legacy-Databases-and-Keyed-...as > well as the 'extract_mysql_models.py' script in the /web2py/scripts/ folder. > > Anthony
[web2py] Re: How to make a progress bar/meter in web2py?
Why would you use web2py to make a progress bar when you can do it in JQuery. http://docs.jquery.com/UI/Progressbar http://beckelman.net/post/2008/10/04/jQuery-Progress-Indicators.aspx On Feb 23, 8:28 am, Vasile Ermicioi wrote: > here is explained how to do, that is not possible in regular web2py """ > This file is part of the web2py Web Framework > Copyrighted by Massimo Di Pierro > License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) > > Attention: Requires Chrome or Safari. For IE of Firefox you > needhttps://github.com/gimite/web-socket-js > > 1) install tornado > > easy_install tornado > > 2) start this app: > > python gluon/contrib/comet_messaging.py -k mykey -p > > 3) from any web2py app you can post messages with > > from gluon.contrib.comet_messaging import comet_send > comet_send('http://127.0.0.1:','HelloWorld','mykey','mygroup') > > 4) from any template you can receive them with > > > $(document).ready(function(){ > if(!web2py_comet('ws://127.0.0.1:/realtime/mygroup > ',function(e){alert(e.data)})) > alert("html5 websocket not supported by your browser, try Google > Chrome"); > }); > > > When the server posts a message, all clients connected to the page will > popup an alert message > Or if you want to send json messages and store evaluated json in a var > called data: > > > $(document).ready(function(){ > var data; > web2py_comet('ws://127.0.0.1:/realtime/mygroup > ',function(e){data=eval('('+e.data+')')}); > }); > > > - All communications between web2py and comet_messaging will be digitally > signed with hmac. > - All validation is handled on the web2py side and there is no need to > modify comet_messaging.py > - Multiple web2py instances can talk with one or more comet_messaging > servers. > - "ws://127.0.0.1:/realtime/" must be contain the IP of the > comet_messaging server. > - Via group='mygroup' name you can support multiple groups of clients (think > of many chat-rooms) > > Here is a complete sample web2py action: > > def index(): > form=LOAD('default','ajax_form',ajax=True) > script=SCRIPT(''' > jQuery(document).ready(function(){ > var callback=function(e){alert(e.data)}; > if(!web2py_comet('ws://127.0.0.1:/realtime/mygroup > ',callback)) > alert("html5 websocket not supported by your browser, try > Google Chrome"); > }); > ''') > return dict(form=form, script=script) > > def ajax_form(): > form=SQLFORM.factory(Field('message')) > if form.accepts(request,session): > from gluon.contrib.comet_messaging import comet_send > comet_send('http://127.0.0.1: > ',form.vars.message,'mykey','mygroup') > return form > > Acknowledgements: > Tornado code inspired > byhttp://thomas.pelletier.im/2010/08/websocket-tornado-redis/ > > """ > > On Wed, Feb 23, 2011 at 2:53 PM, Anthony wrote: > > On Wednesday, February 23, 2011 5:49:24 AM UTC-5, elffikk wrote: > > >> you need a flash or javascript widget and a "comet" web2py controller that > >> will push data to the browser > >> when a step is done you will send a message to the browser wich will > >> redraw to show the progress > > > Also, it looks like you code is simply using the print statement to report > > progress. Although that will show up in the terminal window (as you have > > observed), that won't send any output to the web page (i.e., it won't affect > > the HTTP response). To send output to a web page, your controller function > > must return a dict to a view or return a string. See > >http://web2py.com/book/default/chapter/03#Say-Hello. > >
[web2py] Re: web2py database administration
I will send a screen shot when i get a chance. Thanks for all the help. On Feb 23, 9:16 am, Anthony wrote: > Can you send a screenshot of the page that is asking you for the user ID? > Also, can you post the code from your model file where auth is defined? More > details will help. > > On Wednesday, February 23, 2011 9:08:32 AM UTC-5, stargate wrote: > > It was asking me for the user generated ID > > > On Feb 23, 8:21 am, Anthony wrote: > > > On Wednesday, February 23, 2011 7:11:08 AM UTC-5, stargate wrote: > > > > > Yes but I click on the database administration within the new > > > > application I have created. The database is connected to a mySQL > > > > server. The issue is when i create a new table in the mySQL server it > > > > doesn't show up under the Available databases and tables. So how do i > > > > correct this. > > > > Are you saying you have added a new table to the database outside of > > web2py? > > > If so, web2py won't know about it unless you create a model (i.e., using > > > db.define_table) in your models file. Instead, you can create the web2py > > > model first, and then web2py will create the table for you. > > > > > Also when I add a new user > > > > > here > > > >http://127.0.0.1:8000/in2cu/appadmin/insert/db/auth_user > > > > > I fill everything out but it asks me for a userID but this should be > > > > generated automatically > > > > Are you saying it's asking you for the auto generated record ID for the > > new > > > user -- that shouldn't be the case? Or is it asking you for a "username"? > > By > > > default, Auth uses the email address as the username for login. However, > > if > > > you use auth.define_tables(username=True), it will add a "username" field > > to > > > the user table -- perhaps that is what you are seeing (if there's an > > actual > > > "userID" field, perhaps that was added as a custom field). > > > > Anthony > >
[web2py] Re: web2py database administration
I think I know what the problem is. I am defining tables in PHP my admin for mySQL. Is there a tool for web2py that will scan all the mysql tables in the database then update the db.py. Or is there a database GUI administration tool that I can use to create the tables within web2py. On Feb 23, 10:18 am, stargate wrote: > I will send a screen shot when i get a chance. > > Thanks for all the help. > > On Feb 23, 9:16 am, Anthony wrote: > > > Can you send a screenshot of the page that is asking you for the user ID? > > Also, can you post the code from your model file where auth is defined? More > > details will help. > > > On Wednesday, February 23, 2011 9:08:32 AM UTC-5, stargate wrote: > > > It was asking me for the user generated ID > > > > On Feb 23, 8:21 am, Anthony wrote: > > > > On Wednesday, February 23, 2011 7:11:08 AM UTC-5, stargate wrote: > > > > > > Yes but I click on the database administration within the new > > > > > application I have created. The database is connected to a mySQL > > > > > server. The issue is when i create a new table in the mySQL server it > > > > > doesn't show up under the Available databases and tables. So how do i > > > > > correct this. > > > > > Are you saying you have added a new table to the database outside of > > > web2py? > > > > If so, web2py won't know about it unless you create a model (i.e., using > > > > db.define_table) in your models file. Instead, you can create the web2py > > > > model first, and then web2py will create the table for you. > > > > > > Also when I add a new user > > > > > > here > > > > >http://127.0.0.1:8000/in2cu/appadmin/insert/db/auth_user > > > > > > I fill everything out but it asks me for a userID but this should be > > > > > generated automatically > > > > > Are you saying it's asking you for the auto generated record ID for the > > > new > > > > user -- that shouldn't be the case? Or is it asking you for a > > > > "username"? > > > By > > > > default, Auth uses the email address as the username for login. However, > > > if > > > > you use auth.define_tables(username=True), it will add a "username" > > > > field > > > to > > > > the user table -- perhaps that is what you are seeing (if there's an > > > actual > > > > "userID" field, perhaps that was added as a custom field). > > > > > Anthony > >
[web2py] Re: web2py database administration
It was asking me for the user generated ID On Feb 23, 8:21 am, Anthony wrote: > On Wednesday, February 23, 2011 7:11:08 AM UTC-5, stargate wrote: > > > Yes but I click on the database administration within the new > > application I have created. The database is connected to a mySQL > > server. The issue is when i create a new table in the mySQL server it > > doesn't show up under the Available databases and tables. So how do i > > correct this. > > Are you saying you have added a new table to the database outside of web2py? > If so, web2py won't know about it unless you create a model (i.e., using > db.define_table) in your models file. Instead, you can create the web2py > model first, and then web2py will create the table for you. > > > > > Also when I add a new user > > > here > >http://127.0.0.1:8000/in2cu/appadmin/insert/db/auth_user > > > I fill everything out but it asks me for a userID but this should be > > generated automatically > > Are you saying it's asking you for the auto generated record ID for the new > user -- that shouldn't be the case? Or is it asking you for a "username"? By > default, Auth uses the email address as the username for login. However, if > you use auth.define_tables(username=True), it will add a "username" field to > the user table -- perhaps that is what you are seeing (if there's an actual > "userID" field, perhaps that was added as a custom field). > > Anthony
[web2py] Re: web2py database administration
Yes but I click on the database administration within the new application I have created. The database is connected to a mySQL server. The issue is when i create a new table in the mySQL server it doesn't show up under the Available databases and tables. So how do i correct this. Also when I add a new user here http://127.0.0.1:8000/in2cu/appadmin/insert/db/auth_user I fill everything out but it asks me for a userID but this should be generated automatically Thanks for all the help On Feb 22, 10:47 pm, pbreit wrote: > Sorry, I might have misread the question when you said you created a table > from admin. I don't think that's possible which is what confused me. > > From where are you administering the database? Do you go > here:http://127.0.0.1:8000/welcome/appadmin?
[web2py] web2py database administration
I just started using mySQL with web2py now my question is when administrating the database from the web interface i added a new table in the mySQL database but when i hit refresh in the browser the table doesn't show up. Also when adding another user I have to specify the userID. How can you change this so in the database you select the maxID and add one to the ID. Also when I delete the default users in the database the default users come back.
[web2py] Re: mysql create table syntax for default tables
Thanks for the information it worked. I am very new to web2py coming from PHP but its great so far. I love it. On Feb 22, 7:07 pm, DenesL wrote: > web2py will create the tables for you > if in models/db.py you set db=DAL('mysql://...') > it will call auth.define_tables() which is defined in gluon/tool.py > > or you can call it from another model. > > Have a look in tools.py to see how the tables are defined. > > On Feb 22, 3:52 pm, stargate wrote: > > > Has anybody done this. Basically I want export the basic table > > structure from sqllite to mySql > > > On Feb 22, 7:44 am, stargate wrote: > > > > I was wondering if anybody has the create table syntax for mySQL for > > > the following tables that come with web2py > > > > db.auth_user > > > db.auth_group > > > db.auth_membership > > > db.auth_permission > > > db.auth_event > >
[web2py] Re: mysql create table syntax for default tables
Has anybody done this. Basically I want export the basic table structure from sqllite to mySql On Feb 22, 7:44 am, stargate wrote: > I was wondering if anybody has the create table syntax for mySQL for > the following tables that come with web2py > > db.auth_user > db.auth_group > db.auth_membership > db.auth_permission > db.auth_event
[web2py] mysql create table syntax for default tables
I was wondering if anybody has the create table syntax for mySQL for the following tables that come with web2py db.auth_user db.auth_group db.auth_membership db.auth_permission db.auth_event
[web2py] Re: Shorter URLs
This is very interesting so do you have separate fies for your pages or just one index file On Feb 20, 11:45 pm, Jonathan Lundell wrote: > On Feb 20, 2011, at 8:39 AM, Ross Peoples wrote: > > > That would be pretty cool! So, assuming this was in the current release > > now, I would set the 'functions' variable inside routes.py or to the > > controller? And then if you visit a function that doesn't exist, it falls > > back to index, with the original URL as the first argument? > > It's now in the trunk; give it a shot.
[web2py] jquery ajax
I was wondering lets say you have a table in the database called users and you perform the sql query select * from users where userid=userid limit 10 Now in jQuery how would you do a ajax call to a web2py page and have jquery process the data onto the client. Does web2py translate a page into JSON?
[web2py] Re: application wizard database
Oh wow that is so easy. I wish there was a web2py user-group in my area so people can meet and learn new things On Feb 18, 9:10 am, Massimo Di Pierro wrote: > If you change the DAL(uri) string, it should connect to MySQL and > create the missing tables. > > On Feb 18, 7:40 am, stargate wrote: > > > Lets say you create a application using the application wizard and > > setup the default user login database. How would you modify the code > > so that it will connect to a mysql database with the same user login > > tables. > >
[web2py] jquery and web2py database simple login
How would i go about creating a simple login form when a user logs in and using jquery it will check a ajax post process. The password will be stored as md5. The database will be mysql
[web2py] application wizard database
Lets say you create a application using the application wizard and setup the default user login database. How would you modify the code so that it will connect to a mysql database with the same user login tables.
[web2py] Re: database access
Is there a example on how to do this. Thanks for all the help On Feb 17, 11:50 am, stargate wrote: > So its better to start with a mySQl database and connect to that > database then using the mysql lite database. What I like is out of > the box web2py has a user login now is it possible to export that > login structure to a mysql database and what file would i have to > change in web2py so it will always connect to that mysql database when > somebody visits my site. > > On Feb 17, 11:26 am, villas wrote: > > > > > Well I try to only use DB admin tools to examine the data and > > occasionally edit it and perhaps create and optimise indexes etc, > > usually once my app is stable. > > > Bear in mind that anything you do in a DB admin tool will make it more > > difficult to migrate your app to another database, so try to > > accomplish everything possible via web2py. > > > The one I use and recommend for Firebird is IbExpert. I have used > > various ones for MySql but do not have a strong recommendation. There > > are lots of tools for Sqlite. Just google for suitable tools for the > > DB of your choice. > > > On Feb 17, 2:56 pm, stargate wrote: > > > > So saying that how do I add a username and password to the database > > > and give the user permissions to insert delete view records. I also > > > what to be able to connect to the database using a db tool to examine > > > and administrate my db. Which one would you recommend. > > > > On Feb 17, 7:15 am, villas wrote: > > > > > You can use ANY suitable tool to examine/administrate your DB > > > > independently of web2py. > > > > > On Feb 17, 4:04 am, stargate wrote: > > > > > > It's just a database admin tool for mysql. I just want to be able to > > > > > access the mysql lite database that comes with web2py using mysqlfront > > > > > > On Feb 16, 10:22 pm, Richard Vézina > > > > > wrote: > > > > > > > I think you should provide information about mysqlfront and how you > > > > > > think it > > > > > > could work with Web2py. > > > > > > > Personnaly I am not aware of anything about mysqlfront... > > > > > > > Richard > > > > > > > On Wed, Feb 16, 2011 at 9:40 PM, stargate > > > > > > wrote: > > > > > > > Is it possible to do this > > > > > > > > On Feb 16, 9:51 am, stargate wrote: > > > > > > > > When running web2py how do i access the mysql database using a > > > > > > > > applicaiton like > > > > > > > > >http://www.mysqlfront.de/wp/download/ > > > > > > > > > Also when creating a new application using the application > > > > > > > > wizard it > > > > > > > > has no indication to specify a user login for the database. > > > > > > > > Where can > > > > > > > > i change this.
[web2py] Re: database access
So its better to start with a mySQl database and connect to that database then using the mysql lite database. What I like is out of the box web2py has a user login now is it possible to export that login structure to a mysql database and what file would i have to change in web2py so it will always connect to that mysql database when somebody visits my site. On Feb 17, 11:26 am, villas wrote: > Well I try to only use DB admin tools to examine the data and > occasionally edit it and perhaps create and optimise indexes etc, > usually once my app is stable. > > Bear in mind that anything you do in a DB admin tool will make it more > difficult to migrate your app to another database, so try to > accomplish everything possible via web2py. > > The one I use and recommend for Firebird is IbExpert. I have used > various ones for MySql but do not have a strong recommendation. There > are lots of tools for Sqlite. Just google for suitable tools for the > DB of your choice. > > On Feb 17, 2:56 pm, stargate wrote: > > > So saying that how do I add a username and password to the database > > and give the user permissions to insert delete view records. I also > > what to be able to connect to the database using a db tool to examine > > and administrate my db. Which one would you recommend. > > > On Feb 17, 7:15 am, villas wrote: > > > > You can use ANY suitable tool to examine/administrate your DB > > > independently of web2py. > > > > On Feb 17, 4:04 am, stargate wrote: > > > > > It's just a database admin tool for mysql. I just want to be able to > > > > access the mysql lite database that comes with web2py using mysqlfront > > > > > On Feb 16, 10:22 pm, Richard Vézina > > > > wrote: > > > > > > I think you should provide information about mysqlfront and how you > > > > > think it > > > > > could work with Web2py. > > > > > > Personnaly I am not aware of anything about mysqlfront... > > > > > > Richard > > > > > > On Wed, Feb 16, 2011 at 9:40 PM, stargate wrote: > > > > > > Is it possible to do this > > > > > > > On Feb 16, 9:51 am, stargate wrote: > > > > > > > When running web2py how do i access the mysql database using a > > > > > > > applicaiton like > > > > > > > >http://www.mysqlfront.de/wp/download/ > > > > > > > > Also when creating a new application using the application wizard > > > > > > > it > > > > > > > has no indication to specify a user login for the database. > > > > > > > Where can > > > > > > > i change this. > >
[web2py] Re: database access
So saying that how do I add a username and password to the database and give the user permissions to insert delete view records. I also what to be able to connect to the database using a db tool to examine and administrate my db. Which one would you recommend. On Feb 17, 7:15 am, villas wrote: > You can use ANY suitable tool to examine/administrate your DB > independently of web2py. > > On Feb 17, 4:04 am, stargate wrote: > > > It's just a database admin tool for mysql. I just want to be able to > > access the mysql lite database that comes with web2py using mysqlfront > > > On Feb 16, 10:22 pm, Richard Vézina > > wrote: > > > > I think you should provide information about mysqlfront and how you think > > > it > > > could work with Web2py. > > > > Personnaly I am not aware of anything about mysqlfront... > > > > Richard > > > > On Wed, Feb 16, 2011 at 9:40 PM, stargate wrote: > > > > Is it possible to do this > > > > > On Feb 16, 9:51 am, stargate wrote: > > > > > When running web2py how do i access the mysql database using a > > > > > applicaiton like > > > > > >http://www.mysqlfront.de/wp/download/ > > > > > > Also when creating a new application using the application wizard it > > > > > has no indication to specify a user login for the database. Where can > > > > > i change this. > >
[web2py] Re: database access
It's just a database admin tool for mysql. I just want to be able to access the mysql lite database that comes with web2py using mysqlfront On Feb 16, 10:22 pm, Richard Vézina wrote: > I think you should provide information about mysqlfront and how you think it > could work with Web2py. > > Personnaly I am not aware of anything about mysqlfront... > > Richard > > > > On Wed, Feb 16, 2011 at 9:40 PM, stargate wrote: > > Is it possible to do this > > > On Feb 16, 9:51 am, stargate wrote: > > > When running web2py how do i access the mysql database using a > > > applicaiton like > > > >http://www.mysqlfront.de/wp/download/ > > > > Also when creating a new application using the application wizard it > > > has no indication to specify a user login for the database. Where can > > > i change this.
[web2py] Re: database access
Is it possible to do this On Feb 16, 9:51 am, stargate wrote: > When running web2py how do i access the mysql database using a > applicaiton like > > http://www.mysqlfront.de/wp/download/ > > Also when creating a new application using the application wizard it > has no indication to specify a user login for the database. Where can > i change this.
[web2py] database access
When running web2py how do i access the mysql database using a applicaiton like http://www.mysqlfront.de/wp/download/ Also when creating a new application using the application wizard it has no indication to specify a user login for the database. Where can i change this.
[web2py] Re: broken images
It worked when i go to the following URL all the images are working now http://localhost:8000/template/static/plugin_layouts/layouts/Pluralism/index.html But that isn't the right way to view the application. So the only work around is to provide full path for the image is this correct. One method that was used was this one Create the string: {{u=URL('static',args=('plugin_layouts','layouts','Optimism'))}} Use it wherever you wish in the view: Would that be the best method. Thanks everybody for all the help On Feb 15, 4:37 pm, villas wrote: > I think I now understand, you want the plugin to work like it does > online. > > After you install a new app e.g. 'alayout' and then the layout plugin > 'Optimism', the layout is copied over the top of views/layout.html. > This is visible from: http://localhost:8000/alayout/ But the images > and urls etc are not adjusted. > > Of course you are just using the html to give you a head start and > will need to rebuild layout.html with your own data etc. > > If you want to the see the page with all the links/images working go > to this > page:http://localhost:8000/alayout/static/plugin_layouts/layouts/Optimism/... > > This is the equivalent of what you are seeing in the preview atwww.web2py.com > Is that what you mean? > -D > > On Feb 15, 8:04 pm, stargate wrote: > > > If you go here > > >http://www.web2py.com/layouts > > > then preview Optimism. How come when you go to view source the image > > path is /images and the image file name. But when you click on view > > image it will show you the exact path of the images. > > > I am just wondering why can't i just do /images/folder/myfile_name > > instead of typing the exact location of the template > > > On Feb 15, 2:56 pm, villas wrote: > > > > The plugin replaces your layout.html > > > > Open up views/layout.html > > > Search for: images/ > > > Replace with: static/plugin_layouts/layouts/Pluralism/images/ > > > > Does that help? > > > > I should mention that the plugin is just to get you a head start. > > > You're going to have to do more work to assimilate it into your site. > > > I am not very familiar with it, but someone may be able to help. > > > > On Feb 15, 4:57 pm, stargate wrote: > > > > > The broken images started when i created a new application and applied > > > > the following layout plugin to it > > > > >http://www.web2py.com/layouts/static/plugin_layouts/layouts/Pluralism... > > > > > The problem is when you see the preview all the images are intact but > > > > when i try to do it all the images are broken not to sure why > > > > > On Feb 15, 11:33 am, stargate wrote: > > > > > > This line generates a error > > > > > > > > > > > > Not sure why > > > > > > On Feb 15, 9:40 am, villas wrote: > > > > > > > 'base' is for when all links on that page are to the same place. > > > > > > You > > > > > > have to decide that. > > > > > > > However, I don't think 'response.files' is right for that. Maybe > > > > > > this > > > > > > would be better... > > > > > > > > > > > > > -D > > > > > > > On Feb 15, 1:28 pm, stargate wrote: > > > > > > > > Wouldn't it also better to use > > > > > > > > > > > > > > href="{{response.files.append(URL(request.application,'static','plugin_layouts/ > > > > > > > layouts/Optimism/'))}} " /> > > > > > > > > This would cut time for inserting the code in every image tag on > > > > > > > the > > > > > > > page. Please correct me if i am wrong. > > > > > > > > On Feb 15, 1:04 am, villas wrote: > > > > > > > > > > Why would you have another folder called layouts. > > > > > > > > > I only copied what was in the other post to demonstrate a > > > > > > > > different > > > > > > > > (more recent) syntax. > > > > > > > > > If you look in the views/layout.html file you will see how the > > > > > > > > other .js files are included, > > > > > > > > e.g. {{response.files.append(URL('static','js/superfish.js'))}} > > &
[web2py] Re: php to web2py
Just was confused when it said it was old blog that is all On Feb 16, 5:25 am, Albert Abril wrote: > Stargate, all the tags in the article are correct. > I guess you confused because it says 'Old web2py blog', but html and web2py > are all correct. > > On Wed, Feb 16, 2011 at 10:51 AM, Vinicius Assef wrote: > > > Which tags? > > > On Wed, Feb 16, 2011 at 2:07 AM, stargate wrote: > > > I came across the following URLS > > > >http://web2py.com/AlterEgo/default/show/106 > > > >http://www.web2py.com/AlterEgo/default/show/167 > > > > Where is the updated content with the new web2py tags > >
[web2py] php to web2py
I came across the following URLS http://web2py.com/AlterEgo/default/show/106 http://www.web2py.com/AlterEgo/default/show/167 Where is the updated content with the new web2py tags
[web2py] Re: broken images
If you go here http://www.web2py.com/layouts then preview Optimism. How come when you go to view source the image path is /images and the image file name. But when you click on view image it will show you the exact path of the images. I am just wondering why can't i just do /images/folder/myfile_name instead of typing the exact location of the template On Feb 15, 2:56 pm, villas wrote: > The plugin replaces your layout.html > > Open up views/layout.html > Search for: images/ > Replace with: static/plugin_layouts/layouts/Pluralism/images/ > > Does that help? > > I should mention that the plugin is just to get you a head start. > You're going to have to do more work to assimilate it into your site. > I am not very familiar with it, but someone may be able to help. > > On Feb 15, 4:57 pm, stargate wrote: > > > The broken images started when i created a new application and applied > > the following layout plugin to it > > >http://www.web2py.com/layouts/static/plugin_layouts/layouts/Pluralism... > > > The problem is when you see the preview all the images are intact but > > when i try to do it all the images are broken not to sure why > > > On Feb 15, 11:33 am, stargate wrote: > > > > This line generates a error > > > > > > > > Not sure why > > > > On Feb 15, 9:40 am, villas wrote: > > > > > 'base' is for when all links on that page are to the same place. You > > > > have to decide that. > > > > > However, I don't think 'response.files' is right for that. Maybe this > > > > would be better... > > > > > > > > > -D > > > > > On Feb 15, 1:28 pm, stargate wrote: > > > > > > Wouldn't it also better to use > > > > > > > > > > href="{{response.files.append(URL(request.application,'static','plugin_layouts/ > > > > > layouts/Optimism/'))}} " /> > > > > > > This would cut time for inserting the code in every image tag on the > > > > > page. Please correct me if i am wrong. > > > > > > On Feb 15, 1:04 am, villas wrote: > > > > > > > > Why would you have another folder called layouts. > > > > > > > I only copied what was in the other post to demonstrate a different > > > > > > (more recent) syntax. > > > > > > > If you look in the views/layout.html file you will see how the > > > > > > other .js files are included, > > > > > > e.g. {{response.files.append(URL('static','js/superfish.js'))}} > > > > > > > It is best if you examine your own paths, then you will see where > > > > > > your files are located and be able to learn to link to them > > > > > > accordingly. Do you have this file? : > > > > > > static/plugin_layout/Optimism/ > > > > > > js/cufon-yui.js > > > > > > If so, then what you have should be OK. > > > > > > > I think this would be more recommended: > > > > > > {{response.files.append(URL('static','plugin_layout/Optimism/js/cufon- > > > > > > yui.js'))}} > > > > > > > If you have Firefox browser, experiment with the Firebug plug-in. > > > > > > You can see exactly what is being found and included in your pages. > > > > > > It > > > > > > is a good, worthwhile tool. > > > > > > > -D > > > > > > > On Feb 15, 3:21 am, stargate wrote: > > > > > > > > I am trying to figure out a proper structure. Right now i have it > > > > > > > like this. > > > > > > > > ..//static/plugin_layouts/Optimism/images/img17.jpg > > > > > > > > Why would you have another folder called layouts. > > > > > > > > Also i am including my scripts like this > > > > > > > > > > > > > > > > Is that correct > > > > > > > > On Feb 14, 8:38 pm, villas wrote: > > > > > > > > > > > > > > > > > > /> > > > > > > > > > You could also try this format (available in more recent > > > > > > > > versions of > > > > > > > > web2py): > > > > > > > > > {{=IMG(_src=URL('static','plugin_layouts',args=('layouts','optimism','images','img17.jpg')),_alt='pic',_width='90',_height='90')}} > >
[web2py] Re: broken images
The broken images started when i created a new application and applied the following layout plugin to it http://www.web2py.com/layouts/static/plugin_layouts/layouts/Pluralism/index.html The problem is when you see the preview all the images are intact but when i try to do it all the images are broken not to sure why On Feb 15, 11:33 am, stargate wrote: > This line generates a error > > > > Not sure why > > On Feb 15, 9:40 am, villas wrote: > > > 'base' is for when all links on that page are to the same place. You > > have to decide that. > > > However, I don't think 'response.files' is right for that. Maybe this > > would be better... > > > > > -D > > > On Feb 15, 1:28 pm, stargate wrote: > > > > Wouldn't it also better to use > > > > > > href="{{response.files.append(URL(request.application,'static','plugin_layouts/ > > > layouts/Optimism/'))}} " /> > > > > This would cut time for inserting the code in every image tag on the > > > page. Please correct me if i am wrong. > > > > On Feb 15, 1:04 am, villas wrote: > > > > > > Why would you have another folder called layouts. > > > > > I only copied what was in the other post to demonstrate a different > > > > (more recent) syntax. > > > > > If you look in the views/layout.html file you will see how the > > > > other .js files are included, > > > > e.g. {{response.files.append(URL('static','js/superfish.js'))}} > > > > > It is best if you examine your own paths, then you will see where > > > > your files are located and be able to learn to link to them > > > > accordingly. Do you have this file? : static/plugin_layout/Optimism/ > > > > js/cufon-yui.js > > > > If so, then what you have should be OK. > > > > > I think this would be more recommended: > > > > {{response.files.append(URL('static','plugin_layout/Optimism/js/cufon- > > > > yui.js'))}} > > > > > If you have Firefox browser, experiment with the Firebug plug-in. > > > > You can see exactly what is being found and included in your pages. It > > > > is a good, worthwhile tool. > > > > > -D > > > > > On Feb 15, 3:21 am, stargate wrote: > > > > > > I am trying to figure out a proper structure. Right now i have it > > > > > like this. > > > > > > ..//static/plugin_layouts/Optimism/images/img17.jpg > > > > > > Why would you have another folder called layouts. > > > > > > Also i am including my scripts like this > > > > > > > > > > > > Is that correct > > > > > > On Feb 14, 8:38 pm, villas wrote: > > > > > > > > > > > > > > > You could also try this format (available in more recent versions of > > > > > > web2py): > > > > > > > {{=IMG(_src=URL('static','plugin_layouts',args=('layouts','optimism','images','img17.jpg')),_alt='pic',_width='90',_height='90')}} > >
[web2py] Re: broken images
This line generates a error Not sure why On Feb 15, 9:40 am, villas wrote: > 'base' is for when all links on that page are to the same place. You > have to decide that. > > However, I don't think 'response.files' is right for that. Maybe this > would be better... > > > -D > > On Feb 15, 1:28 pm, stargate wrote: > > > Wouldn't it also better to use > > > > href="{{response.files.append(URL(request.application,'static','plugin_layouts/ > > layouts/Optimism/'))}} " /> > > > This would cut time for inserting the code in every image tag on the > > page. Please correct me if i am wrong. > > > On Feb 15, 1:04 am, villas wrote: > > > > > Why would you have another folder called layouts. > > > > I only copied what was in the other post to demonstrate a different > > > (more recent) syntax. > > > > If you look in the views/layout.html file you will see how the > > > other .js files are included, > > > e.g. {{response.files.append(URL('static','js/superfish.js'))}} > > > > It is best if you examine your own paths, then you will see where > > > your files are located and be able to learn to link to them > > > accordingly. Do you have this file? : static/plugin_layout/Optimism/ > > > js/cufon-yui.js > > > If so, then what you have should be OK. > > > > I think this would be more recommended: > > > {{response.files.append(URL('static','plugin_layout/Optimism/js/cufon- > > > yui.js'))}} > > > > If you have Firefox browser, experiment with the Firebug plug-in. > > > You can see exactly what is being found and included in your pages. It > > > is a good, worthwhile tool. > > > > -D > > > > On Feb 15, 3:21 am, stargate wrote: > > > > > I am trying to figure out a proper structure. Right now i have it > > > > like this. > > > > > ..//static/plugin_layouts/Optimism/images/img17.jpg > > > > > Why would you have another folder called layouts. > > > > > Also i am including my scripts like this > > > > > > > > > > Is that correct > > > > > On Feb 14, 8:38 pm, villas wrote: > > > > > > > > > > > > > You could also try this format (available in more recent versions of > > > > > web2py): > > > > > > {{=IMG(_src=URL('static','plugin_layouts',args=('layouts','optimism','images','img17.jpg')),_alt='pic',_width='90',_height='90')}} > >
[web2py] Re: broken images
Wouldn't it also better to use This would cut time for inserting the code in every image tag on the page. Please correct me if i am wrong. On Feb 15, 1:04 am, villas wrote: > > Why would you have another folder called layouts. > > I only copied what was in the other post to demonstrate a different > (more recent) syntax. > > If you look in the views/layout.html file you will see how the > other .js files are included, > e.g. {{response.files.append(URL('static','js/superfish.js'))}} > > It is best if you examine your own paths, then you will see where > your files are located and be able to learn to link to them > accordingly. Do you have this file? : static/plugin_layout/Optimism/ > js/cufon-yui.js > If so, then what you have should be OK. > > I think this would be more recommended: > {{response.files.append(URL('static','plugin_layout/Optimism/js/cufon- > yui.js'))}} > > If you have Firefox browser, experiment with the Firebug plug-in. > You can see exactly what is being found and included in your pages. It > is a good, worthwhile tool. > > -D > > On Feb 15, 3:21 am, stargate wrote: > > > I am trying to figure out a proper structure. Right now i have it > > like this. > > > ..//static/plugin_layouts/Optimism/images/img17.jpg > > > Why would you have another folder called layouts. > > > Also i am including my scripts like this > > > > > > Is that correct > > > On Feb 14, 8:38 pm, villas wrote: > > > > > > > > > You could also try this format (available in more recent versions of > > > web2py): > > > > {{=IMG(_src=URL('static','plugin_layouts',args=('layouts','optimism','images','img17.jpg')),_alt='pic',_width='90',_height='90')}} > >
[web2py] Re: broken images
I am trying to figure out a proper structure. Right now i have it like this. ..//static/plugin_layouts/Optimism/images/img17.jpg Why would you have another folder called layouts. Also i am including my scripts like this Is that correct On Feb 14, 8:38 pm, villas wrote: > > > > You could also try this format (available in more recent versions of > web2py): > > {{=IMG(_src=URL('static','plugin_layouts',args=('layouts','optimism','images','img17.jpg')),_alt='pic',_width='90',_height='90')}}
[web2py] Re: broken images
Is there something I am doing wrong? On Feb 13, 9:14 pm, Massimo Di Pierro wrote: > Can you tell the layout name, an example of image url that you get and > what should be? > > On Feb 13, 6:50 pm, stargate wrote: > > > I just created a new site with the wizard and the template Optimism. > > When the wizard is completed and the site generated everything works > > fine but all the images are broken. I tried creating another > > application with the wizard and the same thing all the images are > > broken what would be the cause of this. > >
[web2py] Re: broken images
I even tried creating a new application called template and then i installed the Pluralism layout plugin and applied it to the site but when i view the site all the images are broken. How do I fix this. Thanks for all the help On Feb 13, 9:14 pm, Massimo Di Pierro wrote: > Can you tell the layout name, an example of image url that you get and > what should be? > > On Feb 13, 6:50 pm, stargate wrote: > > > I just created a new site with the wizard and the template Optimism. > > When the wizard is completed and the site generated everything works > > fine but all the images are broken. I tried creating another > > application with the wizard and the same thing all the images are > > broken what would be the cause of this. > >
[web2py] Re: broken images
When i edit layout.html i can see the following line of code {{response.files.append(URL(request.application,'static','plugin_layouts/ layouts/Optimism/style.css'))}} When i search farther down layout.html i can see the following code Now this image tag should display the image because it exists but in the plugin layout the file path is this /applications/template/static/plugin_layouts/layouts/Optimism/images/ img17.jpg Now when creating a new application is it better to have the following static/layout_plugin/ in layout plugin all the static files will go in the layout_plugin directory. Thanks for the help by the way. On Feb 13, 9:14 pm, Massimo Di Pierro wrote: > Can you tell the layout name, an example of image url that you get and > what should be? > > On Feb 13, 6:50 pm, stargate wrote: > > > I just created a new site with the wizard and the template Optimism. > > When the wizard is completed and the site generated everything works > > fine but all the images are broken. I tried creating another > > application with the wizard and the same thing all the images are > > broken what would be the cause of this.
[web2py] broken images
I just created a new site with the wizard and the template Optimism. When the wizard is completed and the site generated everything works fine but all the images are broken. I tried creating another application with the wizard and the same thing all the images are broken what would be the cause of this.
[web2py] Re: include files
That worked On Feb 13, 3:29 pm, Marin Pranjic wrote: > MAYBE this? > {{include 'includes/header.html'}} > > On Sun, Feb 13, 2011 at 9:25 PM, stargate wrote: > > I am trying to include the following file but it gives me a error > > > {{include 'includes/header.html'}} > > > The file and folder exist but it doesn't work what I am doing wrong.
[web2py] include files
I am trying to include the following file but it gives me a error {{include '/includes/header.html'}} The file and folder exist but it doesn't work what I am doing wrong.
[web2py] Re: routes.py
I renamed my app folder to init and it worked. But there has to be another way so that if i create multiple application i can have them point to them so for example in my windows host file I will have the following host file 127.0.0.1 www.domain1.com 127.0.0.1 www.domain2.com 127.0.0.1 www.domain3.com 127.0.0.1 www.domain4.com The in web2py lets say i have the following applications domain1 domain2 domain3 domain4 i need a example on how to use routes.py so that this can work On Feb 13, 2:04 pm, stargate wrote: > I creating a routes.py with the following > > routes_in=( > ('mydomain.com','/mydomain/default/index'), > ) > routes_out=( > ('mydomain.com','/mydomain'), > ) > > so when i type mydomain.com it should point to that directory that has > that application installed > > On Feb 13, 10:44 am, Bruno Rocha wrote: > > > I use autoroutes in routes.py > > > You need routes.confhttp://snipt.net/rochacbruno/routesconf/ > > > In the above file replace with your domain and your app. > > 127.0.01.1 /yourapp/default > > yourdomain.com /yourapp/default > > > <http://snipt.net/rochacbruno/routesconf/>and > > routes.pyhttp://snipt.net/rochacbruno/routespy/ > > > with the example above you get rid of the app name, so > > yourapp.com/indexwill call yourapp,com/default/index > > > if you just need to your app to be the default, you can simply rename the > > app folder to "init" > > <http://snipt.net/rochacbruno/routespy/> > > -- > > Bruno Rochahttp://about.me/rochacbruno/bio > > > 2011/2/13 stargate > > > > I was wondering how do I configure routes.py so that my application > > > myapp works like this > > > > when i typewww.myapp.comitwill go to that web2py application. I > > > know in windows i can edit the host file in windows but I want it to > > > go directly to my application. All of my paths are absolute paths > >
[web2py] Re: routes.py
I creating a routes.py with the following routes_in=( ('mydomain.com','/mydomain/default/index'), ) routes_out=( ('mydomain.com','/mydomain'), ) so when i type mydomain.com it should point to that directory that has that application installed On Feb 13, 10:44 am, Bruno Rocha wrote: > I use autoroutes in routes.py > > You need routes.confhttp://snipt.net/rochacbruno/routesconf/ > > In the above file replace with your domain and your app. > 127.0.01.1 /yourapp/default > yourdomain.com /yourapp/default > > <http://snipt.net/rochacbruno/routesconf/>and > routes.pyhttp://snipt.net/rochacbruno/routespy/ > > with the example above you get rid of the app name, so > yourapp.com/indexwill call yourapp,com/default/index > > if you just need to your app to be the default, you can simply rename the > app folder to "init" > <http://snipt.net/rochacbruno/routespy/> > -- > Bruno Rochahttp://about.me/rochacbruno/bio > > 2011/2/13 stargate > > > I was wondering how do I configure routes.py so that my application > > myapp works like this > > > when i typewww.myapp.comit will go to that web2py application. I > > know in windows i can edit the host file in windows but I want it to > > go directly to my application. All of my paths are absolute paths > >
[web2py] routes.py
I was wondering how do I configure routes.py so that my application myapp works like this when i type www.myapp.com it will go to that web2py application. I know in windows i can edit the host file in windows but I want it to go directly to my application. All of my paths are absolute paths
[web2py] plugin_wiki
I am trying to apply the plugin_wiki to a test application i created in the wizard but when i go to preview the site it doesn't look like the limey green look why is that.
[web2py] Re: web2py layouts
It worked i created then applied the theme as a plugin. In the documentation where is a tutorial in creating your own theme. Thanks for all the help On Feb 10, 6:16 pm, Massimo Di Pierro wrote: > Now I understand. These are plugins, not apps. You need an existing > app and apply them from the design page of the existing app as plugins > (form is at the bottom). > They do not contain any login (models/controllers). > > On Feb 10, 12:56 pm, stargate wrote: > > > Its most of them I have downloaded and tired. If you have step by > > step instructions i could be doing something wrong. Thanks > > > On Feb 10, 12:10 pm, Massimo Di Pierro > > wrote: > > > > Are you usinghttp://web2py.com/layouts?Doyouhave a problem with > > > this one only? > > > > On Feb 10, 9:54 am, stargate wrote: > > > > > I tried installing the Simpletex layout but i try to view it and it > > > > says invalid controller (default/index). So i am not sure what are > > > > the steps to installing these sample layouts. > >
[web2py] Re: web2py layouts
Thanks for the information I will try it out On Feb 10, 6:16 pm, Massimo Di Pierro wrote: > Now I understand. These are plugins, not apps. You need an existing > app and apply them from the design page of the existing app as plugins > (form is at the bottom). > They do not contain any login (models/controllers). > > On Feb 10, 12:56 pm, stargate wrote: > > > Its most of them I have downloaded and tired. If you have step by > > step instructions i could be doing something wrong. Thanks > > > On Feb 10, 12:10 pm, Massimo Di Pierro > > wrote: > > > > Are you usinghttp://web2py.com/layouts?Doyouhave a problem with > > > this one only? > > > > On Feb 10, 9:54 am, stargate wrote: > > > > > I tried installing the Simpletex layout but i try to view it and it > > > > says invalid controller (default/index). So i am not sure what are > > > > the steps to installing these sample layouts. > >
[web2py] Re: web2py layouts
Its most of them I have downloaded and tired. If you have step by step instructions i could be doing something wrong. Thanks On Feb 10, 12:10 pm, Massimo Di Pierro wrote: > Are you usinghttp://web2py.com/layouts?Do you have a problem with > this one only? > > On Feb 10, 9:54 am, stargate wrote: > > > I tried installing the Simpletex layout but i try to view it and it > > says invalid controller (default/index). So i am not sure what are > > the steps to installing these sample layouts. > >
[web2py] web2py layouts
I tried installing the Simpletex layout but i try to view it and it says invalid controller (default/index). So i am not sure what are the steps to installing these sample layouts.
[web2py] Re: Web2py and Sencha (Extjs)
Well Sencha Touch its pretty bloated and can be slow at times for loading on a mobile device. Your best bet is to look at http://www.phonegap.com/ On Feb 9, 8:09 pm, mikech wrote: > Has anyone looked at the recent Extjs developements or Sencha Touch? I'm > nowhere ready to do this, but would it be fairly simple to make use of this > library. It seems to have a very complete set of business type widgets. > Is anyone using it? > > Mike
[web2py] Re: Book needs to be updated
Let me know if I can be of any help On Feb 9, 5:18 pm, cjrh wrote: > On Feb 9, 9:01 pm, Richard Vézina wrote: > > > We can put a frame around the screenshot... But it will make harder to have > > unity between screenshot if it not the same person that make all of them... > > Good idea for frame. Multiple people can make screenshots (e.g. let's > say Massimo assigns a captain to each chapter, and they manage the > work) but I still say that we must make a special theme/layout to be > used for book screenshots, and the layout/theme must be shared with > all the captains, so that the theming of all the screenshots is > correct. > > > Or we can make a script in gimp for cropping. > > Sure, that kind of thing is no problem, I would actually prefer to use > PIL over Gimp.
[web2py] Re: Book needs to be updated
I like the new admin. Even though its my first time using web2py. But its nice time for a change. If there is anything I can do to help that would be fine with me. On Feb 8, 4:00 pm, pbreit wrote: > I kind of liked the old admin better. Are we really set on the new admin?
[web2py] Book needs to be updated
I think the book needs to be updated with new screen shots. What are your thoughts on this.
[web2py] Re: Cloud hosting company
Where is the prices on hosting? On Feb 7, 11:10 am, Bruno Rocha wrote: > I am running in dotcloud (but it is in beta) > > http://www.web2py.dotcloud.com/ > > <http://www.web2py.dotcloud.com/>also Pydra is announcing they will run > web2py very soon. > > For now, I know only Google App Engine and Amazon ECM running well on a > cloud. > > Bruno Rochahttp://about.me/rochacbruno/bio > > 2011/2/7 stargate > > > Does anybody know of a hosting company that will run web2py in a cloud > > hosting environment? > >
[web2py] Cloud hosting company
Does anybody know of a hosting company that will run web2py in a cloud hosting environment?
[web2py] Getting started
i was wondering if there a step by step tutorial that will show me how to build a web2py website. Coming from php I am use to using includes how would I get started.
[web2py] MySQL and web2py
Lets say I am running the web2py Server in windows. And for my mySQL database i am using http://www.uwamp.com/ Can web2py connect to that database using the connection string it has given in the example. What would i have to do to get the database working with web2py.
[web2py] Re: host file
Anybody know how to do this? On Jan 26, 7:22 am, stargate wrote: > Lets say in web2py you create a new application called myapp. What i > want to do is when i type www.myapp.com:8000it will go to that > web2py installation how would you do this. > > I know in windows you need to edit > > C:\WINDOWS\system32\drivers\etc\hosts
[web2py] Re: Python 2.7.1 next steps to install on Centos with Cpanel installed
I wish it did On Jan 24, 11:26 pm, pbreit wrote: > Does your host provide instructions on how to run Python or Django apps?
[web2py] host file
Lets say in web2py you create a new application called myapp. What i want to do is when i type www.myapp.com:8000 it will go to that web2py installation how would you do this. I know in windows you need to edit C:\WINDOWS\system32\drivers\etc\hosts
[web2py] Re: Python 2.7.1 next steps to install on Centos with Cpanel installed
mod_wsgi is not installed. What would be steps to install it on a machine that is running cPanel and WHM with Centos On Jan 24, 4:00 pm, Vasile Ermicioi wrote: > running mod_fcgid > > http://groups.google.com/group/web2py/browse_thread/thread/87cb8b8830... > > more on deploymenthttp://web2py.com/book/default/chapter/11 > > I didn't test theme, but I think best of is to use mod_wsgi or mod_uwsgi > (http://projects.unbit.it/uwsgi/)
[web2py] Python 2.7.1 next steps to install on Centos with Cpanel installed
Lets say i have Python 2.7.1 installed what is the next steps to install web2py on a server running Centos and Cpanel. I do have SSH access. I want web2py to work with the existing mySQL database and Apache 2.x
[web2py] Re: Documentation working installation on Cpanel and WHM running Centos
I emailed my hosting company www.wiredtree.com and they told me that script will not work On Jan 23, 9:14 pm, pbreit wrote: > Perhaps try the Ubunut setup > script:http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ub... > > Either run it or try typing in each command. > > Does you host have instructions for running Python or Django apps?
[web2py] Documentation working installation on Cpanel and WHM running Centos
I have researched and have found no solutions on installing web2py on WHM. I have ssh access to the server. This server is running the latest version of Centos . So I am not sure why there isn't any docs showing users how to install web2py with that configuration. I need help with this because I think web2py is a great framework. Thanks for all the Help
[web2py] Re: step-by step instructions installing web2py on a CentOS server with cPanel installed
I have already python installed on my server and its a dedicated server running cPanel and CentOS. I just need step by step instructions installing web2py on the server On Jan 22, 12:49 am, pbreit wrote: > Do you have ssh access? Perhaps try the Ubuntu setup > script:http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ub... > > Even if you don't use the script, you can look at the individual commands. > > What host are you on? Does it provide any instructions for running Python or > Django?
[web2py] Re: step-by step instructions installing web2py on a CentOS server with cPanel installed
I did a search for installing using cpanel and whm with no success. Most hosting companies use cpanel or plesk. It would be nice if there was step by step instructions on how to install web2py with mysql and cpanel running. On Jan 21, 4:21 pm, Kenneth Lundström wrote: > Search the mailing lists archive withcpanel. There has been some > discussion about deploying web2py withcpanel. But I can t remeber the > outcome of it. > > Kenneth > > > > > I as wondering if there is step-by step instructions installing web2py > > on a CentOS version 4.x server withcPanelinstalled.
[web2py] step-by step instructions installing web2py on a CentOS server with cPanel installed
I as wondering if there is step-by step instructions installing web2py on a CentOS version 4.x server with cPanel installed.
[web2py] Re: Installation on GoDaddy shared server
Thanks for the help... On Jan 21, 2:35 pm, Kenneth Lundström wrote: > Simplest way ishttp://web2py.com/book/default/chapter/03 > > > How do I install web2py on a GoDaddy shared server. > > No idea about GoDaddy but, > > > Also what are the steps to install it on a regular linux server. > > It depends on alot of things, what linux, what is installed on it and so > on.www.web2pyslices.comhas pages for different linux distros, for example: > > http://web2pyslices.com/main/slices/take_slice/110(Web2py + uWSGI + > Cherokee on Ubuntu > 10.04)http://web2pyslices.com/main/slices/take_slice/98(Deploy web2py on > Fedora/CentOS/Red Hat) > > Hopefully this helps, The book athttp://web2py.com/book/is very, very > good. I recommend searching it, the Slices and mailing list archive > (https://groups.google.com/group/web2py) first, if you can t anything > helping forward ask on the list. You ll usually get a very fast reply. > > Kenneth
[web2py] Installation on GoDaddy shared server
How do I install web2py on a GoDaddy shared server. Also what are the steps to install it on a regular linux server.
[web2py] Website
Lets say i have created a static page using XHTML and css. How do I integrate it into web2py. Basically i am toying to learn a new language coming from a PHP background. I can't find a getting started with web2py like integrating a existing design and apply server side web2py database elements to it.