[web2py] Re: A blog app with no models - to include in /appliances

2012-07-18 Thread rdodev
Excellent example, Bruno. On Monday, July 16, 2012 10:08:19 PM UTC-4, rochacbruno wrote: > > The download is here: > > > https://github.com/downloads/rochacbruno/web2py_model_less_app/web2py.app.modellessapp.w2p > > The screenshots: > > Home (post listing) > > [image: Inline image 1] > > Show pos

[web2py] Re: Alternative to Janrain: in pure Python

2012-07-18 Thread rdodev
OAuth2 authorization for web2py would be huge. +1 On Thursday, July 5, 2012 10:42:20 AM UTC-4, Alec Taylor wrote: > > A rather good 64-line OAuth 2 client implementation for Python has been > open-sourced. > > Source-code > (announcement

[web2py] Re: Web2py on EC2: site does not appear

2012-07-17 Thread rdodev
Was it a 404, timeout error or what? On Tuesday, July 17, 2012 11:49:14 AM UTC-4, lyn2py wrote: > > Another issue O.O > > Now that the whole script has installed, and I followed through with the > rest of the commands > > sudo -u www-data bash > cd /home/www-data/web2py > python -c "from gluon.

[web2py] Re: web2py on EC2

2012-07-17 Thread rdodev
t > http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2 ) > > Although, when I did > ls -al > > both directories looked the same to me (the permissions on setup-web2py- > ubuntu.sh file appear to be the same to me) > > > On Tuesday, July 17, 2012 10:47:49

[web2py] Re: web2py on EC2

2012-07-17 Thread rdodev
012 10:43:32 AM UTC-4, lyn2py wrote: > > rdodev, > > sudo is installed. I know that because > sudo apt-get update > works. > > The instance is, in fact, a micro, 64-bit Ubuntu! > > I ran both > sudo setup-web2py-ubuntu.sh > > and > sudo ./setup-web2py-ubunt

[web2py] Re: web2py on EC2

2012-07-17 Thread rdodev
;> I tried and it said, command not found. I did: >> sudo ./setup-web2py-ubuntu.sh >> >> Or how should the command be? >> >> Thanks for the help! >> >> >> On Tuesday, July 17, 2012 2:11:33 AM UTC+8, rdodev wrote: >>> >>> Run

[web2py] Re: Restful authentication and CORS

2012-07-16 Thread rdodev
erro wrote: > > Please open a ticket. > > On Monday, 16 July 2012 13:09:29 UTC-5, rdodev wrote: >> >> Massimo, >> >> As Alec mentioned above, if not RESTful, OAuth and jsonrpc/jsonp would >> work as well. So if this is the preferred approach to non-browser/mo

[web2py] Re: web2py on EC2

2012-07-16 Thread rdodev
Run with 'sudo' in front. On Monday, July 16, 2012 1:46:28 PM UTC-4, lyn2py wrote: > > Hi, > > I have browsed a few older threads on this but didn't manage to find an > answer. Hope I can get help here. > > I started an instance with Ubuntu image, per the instructions here: > http://www.scribd.co

[web2py] Re: Restful authentication and CORS

2012-07-16 Thread rdodev
an you descrive in some details the API's you would like to have? > If there is agreement it would not much to add them. > > > On Monday, 16 July 2012 10:18:55 UTC-5, rdodev wrote: >> >> I'm developing a web2py app that will be used as the back-end for a >>

[web2py] Restful authentication and CORS

2012-07-16 Thread rdodev
I'm developing a web2py app that will be used as the back-end for a mobile app. The mobile app will be making API calls to the service for anything ranging from login/authentication to CRUD operations. The auth model that comes baked into web2py would suffice, except that it's not RESTful and i

[web2py] Re: Sending emails through Amazon SES

2012-07-16 Thread rdodev
Oh yes, there is: check out boto. They're fairly active and the product is fairly mature. I've helped them with the docs and we use use boto on most of our products. On Monday, July 16, 2012 10:15:19 AM UTC-4, murtaza52 wrote: > > > I can do this by just using the SMTP interface of AWS as no p

[web2py] Uploaded files path discovery

2012-04-18 Thread rdodev
So, as per documentation, the default upload file location is: web2py\applications\application_name\uploads however, I'd like to avoid hard-coding this path since the app might be deployed in different environs and relative paths don't seem to work (i.e. '../uploads/' + file_name') . So from a c

[web2py] Re: new web2py cheatsheet

2012-04-11 Thread rdodev
Excellent! Thx Massimo. On Monday, April 9, 2012 4:44:22 PM UTC-4, Massimo Di Pierro wrote: > > http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf >

[web2py] SQLFORM -> IS_UPLOAD_FILENAME question.

2012-04-10 Thread rdodev
I have a table definition as follows: db.define_table('UPLOAD', Field('custom_name',type='string', required=True, length=40), Field('file_name', type='upload', required=True, requires=IS_UPLOAD_FILENAME(extension='zip|cro')), ) from which I'm generating a SQLFORM from. When I get the PO

[web2py] Re: Uploads saving to DB, but not to file system

2012-04-06 Thread rdodev
name.file,filename=ars.file_name.filename) > > Perhaps this can be automated a little but. Let me give it some thought. > Please open an issue on google code. > > > On Friday, 6 April 2012 09:43:40 UTC-5, rdodev wrote: >> >> I already searched thought this groups for uploads and foun

[web2py] Uploads saving to DB, but not to file system

2012-04-06 Thread rdodev
I already searched thought this groups for uploads and found a bunch similar questions, but not exactly my case -- I apologize if this has been answered before. I have a minimal RESTful web service defined as follows: db.define_table('UPLOAD', Field('custom_name' ,type='string', length=40,

[web2py] Re: Restful/Crud best practices?

2012-04-06 Thread rdodev
M UTC-4, rdodev wrote: > > Hey all, > > I'm building a crud-heavy app using web2py restful api/decorator. In a > non-restful context, it's easy (and cruft free) to create and grab forms > using the built-in crud wrapper. > However, in a restful context with

[web2py] Re: Apache+virtualhosts+wsgi, loading always the same content

2012-04-05 Thread rdodev
Seems to be working as intended from here. Possibly your browser's cache playing yedi mind tricks on you :D On Wednesday, March 28, 2012 9:49:10 AM UTC-4, Sergi Pons Freixes wrote: > > Hi All, > > After checking the apache documentation and looking at older related > discussions in the group, I

[web2py] Restful/Crud best practices?

2012-04-05 Thread rdodev
Hey all, I'm building a crud-heavy app using web2py restful api/decorator. In a non-restful context, it's easy (and cruft free) to create and grab forms using the built-in crud wrapper. However, in a restful context with separate GET/POST/PUT/DELETE methods, what's the least repetitive and mos

[web2py] Deployment sqlite question

2012-04-01 Thread rdodev
Folks, I've a question. I'm using a semi automated approach to deploying my app. I manage my code through a private BitBucket repo. On my server I have a cron job checking for changes a few times per day. When it finds changes in the repo stops apache (mod_wsgi), pulls source, restarts apache.

[web2py] Re: Using routes.py as a dispatcher for URL shortener app

2012-03-29 Thread rdodev
Having recently completed my own personal URL shortener app on web2py, the trick was using pattern based routes at the root level. Actually, even for a fairly complex work-related app we had to use the root-level routes.py as well. Specially with an URL shortener, you want to have the URL as sma

[web2py] wb2py with existing database

2012-03-29 Thread rdodev
All, Is it possible to have the DAL create/discover models from an existing DB (without providing the schema)? If so, how would I go about making sure the models are created? Thanks in advance.

[web2py] Re: routes.py not picking up

2012-03-20 Thread rdodev
7;/(?Pwelcome|admin|app)\b.*', r'\g'), (r'(.*)', r'myapp'), (r'/?(.*)', r'myapp') On Friday, March 16, 2012 4:57:48 PM UTC-4, rdodev wrote: > > Hey all, > > I have renamed (and edited) routes.py for both incoming and

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread rdodev
ok removing those and re-starting web2py worked (well it broke, but that's a good thing). Thx all for your help. If it's not on to-do list: maybe it should be to improve (or to make clearer in the docs) how the routes.py works and that you need to comment our routes_app in order for it to work.

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread rdodev
Let me remove those, and I'll check back. On Friday, March 16, 2012 9:58:12 PM UTC-4, Anthony wrote: > > On Friday, March 16, 2012 9:46:33 PM UTC-4, Jonathan Lundell wrote: >> >> On Mar 16, 2012, at 6:39 PM, Anthony wrote: >> >> I'm not sure, but I think if you have routes_app, it will ignore >>

[web2py] Re: routes.py not picking up

2012-03-16 Thread rdodev
g, and what are you > seeing instead? > > On Friday, March 16, 2012 4:57:48 PM UTC-4, rdodev wrote: >> >> Hey all, >> >> I have renamed (and edited) routes.py for both incoming and outgoing >> urls. I have tried messing up with the url tuples and it looks a

[web2py] routes.py not picking up

2012-03-16 Thread rdodev
Hey all, I have renamed (and edited) routes.py for both incoming and outgoing urls. I have tried messing up with the url tuples and it looks as if web2py is just not picking that up at all. I have restarted web2py server, I have tried changed in the controllers (and does changes are picked up),

[web2py] Re: logical/relationship url mapping

2012-03-14 Thread rdodev
s = db((db.TopThing.id == db.MiddleThing.TopThing_id) & > (db.MiddleThing.id == db.BottomThing.MiddleThing_id) & > (db.TopThing.id == request.args(0)) & > (db.MiddleThing.id = request.args(2))).select() > return dict(rows=row

[web2py] Re: logical/relationship url mapping

2012-03-13 Thread rdodev
quest.args(0)) & > (db.MiddleThing.id = request.args(2))).select() > return dict(rows=rows) > > Anthony > > On Monday, March 12, 2012 10:05:31 AM UTC-4, rdodev wrote: >> >> Hello all, >> >> I'm fairly knew to web2py and tryi

[web2py] Reporting documentation/book typos?

2012-03-13 Thread rdodev
What's the most efficient avenue to report documentation/book typos? Thx.

[web2py] logical/relationship url mapping

2012-03-12 Thread rdodev
Hello all, I'm fairly knew to web2py and trying to find things out by myself as much as I can. However, I have not been able to find how to create logical/relationship URLs. Let's say I have a model named TopThing, which has a 1-to-many relationship with MiddleThing, which also has a one-to-man

Re: [web2py] MongoDB table definitions

2012-03-07 Thread rdodev
time, > 'id': long, > 'reference': long, > 'list:string': list, > 'list:integer': list, > 'list:reference': list, > } > > > > > On

[web2py] Re: mongodb adapter not working

2012-03-07 Thread rdodev
Problem solved. I was using binary distro that doesn't look for installed python modules. Running form source solves the problem. On Wednesday, March 7, 2012 10:25:35 AM UTC-5, rdodev wrote: > > I'm running the nightly build of web2py, python 2.7, have pymongo > installed and

[web2py] MongoDB table definitions

2012-03-07 Thread rdodev
Folks, I'm trying to define a mongo table in db.py that looks something like this: { field1 : "super", field2 : "super", things = { this : "stuff", that = "stuff" }, field3 : "Give me a call" } defining fields1-3 is easy, but what's the syntax to build 'things' which itself is a diction

[web2py] mongodb adapter not working

2012-03-07 Thread rdodev
I'm running the nightly build of web2py, python 2.7, have pymongo installed and mongodb is running. in db,py I tried DAL('mongodb://127.0.0.1:[port number]/[dbname]') and keeps bombing with error: "Uriparser for mongodb is not available" is there another dependency other than pymongo? Please ad

Re: [web2py] Re: Progress update on Mongodb adapter now forked GIT repo

2012-03-06 Thread rdodev
Hey Mark, Do you have any complex object usage examples? Thanks, good work so far with simple stuff. On Saturday, December 10, 2011 7:28:42 PM UTC-5, Mark Breedveld wrote: > > Yeah, there is plenty more to do. > Thanks for your testing. > > I turned it into a runtimeError like the others. > So n