Re: [web2py] Code insert-er for Pydev Eclipse users

2011-04-27 Thread Anthony
On Thursday, April 28, 2011 2:36:12 AM UTC-4, w2padawan wrote: > > 2011/4/28 Anthony >> >> On Wednesday, April 27, 2011 2:04:29 PM UTC-4, w2padawan wrote: >>> >>> I still don't know what issues are all talking about regarding pydev and >>> web2py. I'm using it on archlinux and imports, autoc

[web2py] password encrypt during insert

2011-04-27 Thread 黄祥
hi, is there a way to input encrypted user password for the first time execution? i mean like e.g. db.auth_user.bulk_insert([{'first name' : 'a', 'last name' : 'a', 'email' : 'a.a.com', 'password' : 'a'}, {'first name' : 'b', 'last name' : 'b', 'email' : 'b.b.com', 'password' : 'b'}]) i can using

Re: [web2py] Code insert-er for Pydev Eclipse users

2011-04-27 Thread danto
2011/4/28 Anthony > On Wednesday, April 27, 2011 2:04:29 PM UTC-4, w2padawan wrote: >> >> I still don't know what issues are all talking about regarding pydev and >> web2py. I'm using it on archlinux and imports, autocomplete and functions >> are all working pretty well. >> >> just go to: >> >> w

[web2py] load and include

2011-04-27 Thread 黄祥
hi, is there anybody knows about detail comparation between load and include in the views, please? i have already read the book and test to implent it, i think it have the same function on views. thank you so much in advance

[web2py] Re: the '|' charachter i text fields

2011-04-27 Thread mart
ok, that's makes sense... i'll just make sure to do a 'if isinstance(obj,list)' when getting stuff. thanks for the info and clearing things up ! Mart :) On Apr 27, 11:44 pm, Massimo Di Pierro wrote: > The dal is dumb. It is sees a list, it converts it as if it where a > list:string because it

Re: [web2py] Code insert-er for Pydev Eclipse users

2011-04-27 Thread Anthony
On Wednesday, April 27, 2011 2:04:29 PM UTC-4, w2padawan wrote: > > I still don't know what issues are all talking about regarding pydev and > web2py. I'm using it on archlinux and imports, autocomplete and functions > are all working pretty well. > > just go to: > > window > preferences > pydev

[web2py] Re: FORM Generation Code.

2011-04-27 Thread Ab...
Thanks! but it still does not help with Change Password form fields (old password, new password) - you can change them like auth.messages.old_password = 'Old Password Some Text' auth.messages.new_password = 'New Password Some Symbol' But the colon still gets appended. IMHO, appending a colon shoul

Re: [web2py] SQLFORM question

2011-04-27 Thread Bruno Rocha
Try this in controller: for field in db.t_bills.fields: db.tbills[field].writable = False db.tbills.f_name.writable = True form = SQLFORM(db.t_bills, bill['id']) ... ... (I did not test it yet, I guess it works) -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] 2011/4/27 Kenneth Lundstr

Re: [web2py] Re: please help: owned by "windows way of doing things"

2011-04-27 Thread danto
for the record, I solved this using PySerial

Re: [web2py] Re: Code insert-er for Pydev Eclipse users

2011-04-27 Thread danto
2011/4/27 pierreth > OK I see, > > This way, Pydev automatically had the missing imports when we are > coding. Personally, I added the library project by project so the > feature is working for me too. > > It's no need of adding the library project by project but just one time to the system libs

[web2py] Re: Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread Massimo Di Pierro
Can you help me debug this? Do you get the error when you check the "delete" box or when you do not? In line 1093 of gluon/sqlhtml.py can you change if requested_delete and self.custom.deletable into if requested_delete and self.custom.deletable!='' do you still get the error below?

[web2py] Re: the '|' charachter i text fields

2011-04-27 Thread Massimo Di Pierro
The dal is dumb. It is sees a list, it converts it as if it where a list:string because it has no other option. The type does affect how the data looks like when you you retrieve it. For a list:string you get back the list, else you get the a string. On Apr 27, 10:01 pm, mart wrote: > hum, i thin

[web2py] Re: the '|' charachter i text fields

2011-04-27 Thread mart
hum, i think you're right... here is how I update: result=compExec.procCmd(cmdline,logfile=None,updateString=None) self.db(self.db.scriptCompiler.id==self.id).update(log=result) so, with subprocess, proc.communicate() returns a list ['','']. index 0 is stdout and index 1 is stderr. So i guess

[web2py] Re: crud challenge

2011-04-27 Thread mart
Oh, I figured it out alright! just happened to be wrong, didn't really work, oh and forgot to use CRUD! ;) LOL (then of course, my "free" time had expired)... so, no, I didn't figure it out either :) but, if i can, i'd like to make a suggestion... These are really great exercises, and as Villas

Re: [web2py] Re: SQLFORM question

2011-04-27 Thread Kenneth Lundström
I tried that soluttion but I think it didn´t work as expected, it still uppdated all records. I´m using the newest version web2py on linux. Kenneth There are several options but the simplest solution is: form = SQLFORM(db.t_bills, bill['id'], fields=['f_name']) this way you only affect th

[web2py] Re: Code insert-er for Pydev Eclipse users

2011-04-27 Thread mart
yes, ditto for pydev on mac, although... I don't always want to do that because, some scripts that use some web2py libraries don't get rolled out with Aptana or eclipse. So, your tool would be handy to have during development as well... Anyways, I'd like to try it. Thanks, Mart :) On Apr 27, 7:5

[web2py] Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread toan75
My controller: def crud1(): form = crud.update(db.container,request.args(0),deletable=True) if form.accepts(request.vars, session): pass return dict(form=form) I have web2py 1.95.1, Python 2.7 & OS Win7 Home

[web2py] Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread toan75
I have this error when set deletable=True: File "E:\web2py\gluon\globals.py", line 133, in self._caller = lambda f: f() File "E:\web2py\gluon\tools.py", line 2335, in f return action(*a, **b) File "E:/web2py/applications/init/controllers/plugin_admin.py"

[web2py] Re: Documentation web2py

2011-04-27 Thread villas
Massimo, Clearly you don't share any concern about the docs, but I still think it would be nice to know when you thought a feature was stable and ready to be documented. If nothing else, it might encourage us to join in the documentation effort at that point. I can reduce my arguments to this:

[web2py] Re: Janrain Alternative: SimpleAuth (And its totally free)

2011-04-27 Thread villas
> Thanks for clearing that up. My n00bieness to web stuff obviously shines > through :) Hi Stefaan, No problem, the web brings many security concerns and you are right to ask questions. D

[web2py] Re: SQLFORM question

2011-04-27 Thread DenesL
There are several options but the simplest solution is: form = SQLFORM(db.t_bills, bill['id'], fields=['f_name']) this way you only affect the listed fields. On Apr 27, 7:01 pm, Kenneth Lundström wrote: > I have a table that I d like to update. Let s say the table has eight > different colum

[web2py] Re: Code insert-er for Pydev Eclipse users

2011-04-27 Thread drayco
Thank's a lot. On 27 abr, 16:21, pierreth wrote: > OK I see, > > This way, Pydev automatically had the missing imports when we are > coding. Personally, I added the library project by project so the > feature is working for me too. > > But this does not solve the problem of the missing imports fo

[web2py] Re: Best practice to start background process

2011-04-27 Thread Russell
I think that a simple system cron is the most reliable (per minute, per hour, per day). Then use some type of locking mechanism in your web2py script (either database or file). For example: locked = db((db.report_queue.status=='SystemLock')).select().first() if not locked: locked = db.report

[web2py] Re: using janrain

2011-04-27 Thread Allan Daemon
I'm getting this error too. I have no idea whats going on.

[web2py] SQLFORM question

2011-04-27 Thread Kenneth Lundström
I have a table that I´d like to update. Let´s say the table has eight different columns but at the time I´d like to only update one of them via a form. in controller: form = SQLFORM(db.t_bills, bill['id']) if form.accepts(request.vars, session, keepvalues=True): redirect() return dict

[web2py] Fake Tables

2011-04-27 Thread Ross Peoples
I was wondering if anyone has ever tried anything like this before: I have an application that will be running mostly from data via Python API calls. This means that I won't really need to use the database at all. The problem with this approach, is that some important web2py features are only avail

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 2:40 PM, pbreit wrote: > But I think he wants his app to be the default and still have it show in the > URL? With the parametric (new) router, you can do that by specifying: applications=None in the base router.

[web2py] Re: Best practice to start background process

2011-04-27 Thread pbreit
I tried the cron@reboot approach but couldn't figure out if my processes were running or failing so I switched to per minute cron tasks. At some point it would be nice to have something like Dealyed Jobs (https://github.com/tobi/delayed_job) or Celery suport (http://celeryproject.org).

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread pbreit
But I think he wants his app to be the default and still have it show in the URL?

[web2py] Re: Programmatically uploading images

2011-04-27 Thread pbreit
I don't think you can suppress the formkey check so all I can think of is skipping the "if form.accepts" and processing everything yourself. You also might want to have a look at XMLRPC which is sort of designed for this kind of thing: http://web2py.com/book/default/chapter/09#XMLRPC The new RE

[web2py] Re: Code insert-er for Pydev Eclipse users

2011-04-27 Thread pierreth
OK I see, This way, Pydev automatically had the missing imports when we are coding. Personally, I added the library project by project so the feature is working for me too. But this does not solve the problem of the missing imports for existing code if code analysis is activated (Window > Pydev >

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread Oscar
Ok, Thank you for your help. On 27 abr, 17:13, Jonathan Lundell wrote: > On Apr 27, 2011, at 2:07 PM, Oscar wrote: > > > > > will be supressed myapp from the url? > > Yes. That's really all that being the default application means. If you don't > want it suppressed, then don't set it as the def

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 2:07 PM, Oscar wrote: > > will be supressed myapp from the url? Yes. That's really all that being the default application means. If you don't want it suppressed, then don't set it as the default. > > > On 27 abr, 16:24, Jonathan Lundell wrote: >> On Apr 27, 2011, at 1:17

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread Oscar
will be supressed myapp from the url? On 27 abr, 16:24, Jonathan Lundell wrote: > On Apr 27, 2011, at 1:17 PM, Oscar wrote: > > > > > I just want to configure myapp as default without rename it to init. > > That's all. > > Just set default_application in routes.py. > > > > > > > > > > > On 27 ab

[web2py] Programmatically uploading images

2011-04-27 Thread dhmorgan
My goal is to create an Android app that will take a photo and upload it to Web2Py photolog apps running on GAE and my local server. I am scripting Android with Python and had expected to use something like urllib2 to post the image and data to an upload_photo crud.create form. When trying to po

[web2py] Re: Best practice to start background process

2011-04-27 Thread Ross Peoples
This is a copy & paste of something I wrote a month ago or so: I was able to get background processes to work pretty well. I have an import script that takes a minute or two to run and is started by an ajax call from a button in one of my views, and the progress is reported back to the page as

Re: [web2py] How to run a daemon/service??

2011-04-27 Thread Ismael Alejandro
[SOLVED] The solution was easy... instead of using pymysql I used db.executesql() On Wed, Apr 27, 2011 at 11:58 AM, Ialejandro wrote: > Hi! Developing my school project app, I have this: > > I have a dir called _configdir with some .ini files, these files have > this structure: > > [ROOMNAME]

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 1:17 PM, Oscar wrote: > > I just want to configure myapp as default without rename it to init. > That's all. Just set default_application in routes.py. > > > > On 27 abr, 14:28, Jonathan Lundell wrote: >> On Apr 27, 2011, at 10:34 AM, Oscar wrote: >> >> >> >>> Nope, >>

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread Oscar
I just want to configure myapp as default without rename it to init. That's all. On 27 abr, 14:28, Jonathan Lundell wrote: > On Apr 27, 2011, at 10:34 AM, Oscar wrote: > > > > > Nope, > > > I didn't use URL tag, but i was suspecting it. > > > There is a Way to invoke the default application wit

[web2py] Re: GAE deployment routing to welcome app, not my own app.

2011-04-27 Thread Johan
Thanks! Used router and changed default app to kiekjs. On Apr 27, 9:33 pm, Jonathan Lundell wrote: > On Apr 27, 2011, at 12:27 PM, Johan wrote: > > > > > > > > > > > > > Hi, > > > I'm trying to deploy my app on GAE, but I don't know how to configure > > the app.yaml so that the request is route

Re: [web2py] GAE deployment routing to welcome app, not my own app.

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 12:27 PM, Johan wrote: > > Hi, > > I'm trying to deploy my app on GAE, but I don't know how to configure > the app.yaml so that the request is routed to my app and not the > welcome app. > > Current behaviour: > > http://localhost:8081 results in: > > http://localhost:8081/

[web2py] GAE deployment routing to welcome app, not my own app.

2011-04-27 Thread Johan
Hi, I'm trying to deploy my app on GAE, but I don't know how to configure the app.yaml so that the request is routed to my app and not the welcome app. Current behaviour: http://localhost:8081 results in: http://localhost:8081/welcome/default/index but I expected http://localhost:8081/kiekjs/

[web2py] Re: Documentation web2py

2011-04-27 Thread Massimo Di Pierro
No objection of course. On Apr 27, 1:58 pm, Martín Mulone wrote: > Also we can setup a powerpack app to make hierachy documentation, the > content index can be render like the menu, but to a page. If the current > documentation is in markmin I think is no problem. > > 2011/4/27 Massimo Di Pierro

[web2py] help.with using auth_user in db

2011-04-27 Thread Resa
I user janrain for login... in globals i see persons information all i want to do is to grab that information that i am seeing in the globals and put in a variable and use it eg i was trying to grab the data and put it in a database: def insert_into_db(): #session.correct=request.vars(

Re: [web2py] Re: Documentation web2py

2011-04-27 Thread Martín Mulone
Also we can setup a powerpack app to make hierachy documentation, the content index can be render like the menu, but to a page. If the current documentation is in markmin I think is no problem. 2011/4/27 Massimo Di Pierro > > > On Apr 27, 9:52 am, villas wrote: > > I certainly wouldn't wish to

[web2py] Re: Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Nite
Ok, last post on this subject. After reviewing the source for PyRSS2Gen I'm going to conclude (unless someone who actually knows can clue me in) that PyRSS2Gen is not setup to handle custom namespaces (itunes:blah). I've tried with both the xml and the rss views and end up with the same issues. By

[web2py] Re: Janrain Alternative: SimpleAuth (And its totally free)

2011-04-27 Thread Stefaan Himpe
villas wrote: Your password should only be entered into the authentication site, e.g. if you log in via Google you should only enter your password into a browser window which shows a Google url. Thanks for clearing that up. My n00bieness to web stuff obviously shines through :)

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 10:34 AM, Oscar wrote: > > Nope, > > I didn't use URL tag, but i was suspecting it. > > There is a Way to invoke the default application without hide the > entire URL? Sure, just don't specify the defaults. Or don't use routing at all, if you don't want to hide anything. Y

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 10:33 AM, Oscar wrote: > > default_application = 'myapp'# ordinarily set in base routes.py > default_controller = 'w' # ordinarily set in app-specific routes.py > default_function = 'index' # ordinarily set in app-specific > routes.py > > There is not static URL at a

[web2py] Confusion using experts4solutions

2011-04-27 Thread Jim Karsten
We are working on a new web2py project. We are making progress and web2py has certainly improved our production but we could use some help. The experts4solutions site looks very promising but currently it doesn't provide details for handling various issues. We posted a couple of small jobs on

[web2py] web2py development jobs

2011-04-27 Thread Gilson Filho
We are looking for one or more web2py developers to help with a web2py project. We posted two small jobs related to the project on the sites elance, oDesk and vWorker. The jobs give us an opportunity to work together with low risk and short-term commitment. If you're interested here are the jobs:

[web2py] Re: Menus in the model don't update at the right time...

2011-04-27 Thread Anthony
On Wednesday, April 27, 2011 12:39:41 PM UTC-4, encompass wrote: > > It's a bummer, but I currently have to refresh the page after adding an > item to the menus with a database insert. > Is there any way I can have the menu's refresh manually before any page > rendered? Maybe put a menu updat

Re: [web2py] Code insert-er for Pydev Eclipse users

2011-04-27 Thread danto
I still don't know what issues are all talking about regarding pydev and web2py. I'm using it on archlinux and imports, autocomplete and functions are all working pretty well. just go to: window > preferences > pydev > interpreter-python > libraries and add a [new folder] in "system pythonpath"

[web2py] Is there a way to set jqui dialog options using clienttools?

2011-04-27 Thread james c.
Is there a way to set Jqueryui Dialog options using web2py clienttools? thanks in advance, James C.

[web2py] typo

2011-04-27 Thread selecta
File "/home/select/Dev/web2py/gluon/sqlhtml.py", line 944, in createform raise RuntimeError, 'formsyle not supported' RuntimeError: formsyle not supported

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread Oscar
Nope, I didn't use URL tag, but i was suspecting it. There is a Way to invoke the default application without hide the entire URL? On 27 abr, 12:41, pbreit wrote: > If you set "default_application" in routes.py, it's going to hide "/app" > (and /default) which is usually what you want. But eve

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread Oscar
Thanks for the tip. On 27 abr, 13:19, Jonathan Lundell wrote: > On Apr 27, 2011, at 9:41 AM, pbreit wrote: > > > If you set "default_application" in routes.py, it's going to hide "/app" > > (and /default) which is usually what you want. But everything should still > > work. Do you generate all

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread Oscar
default_application = 'myapp'# ordinarily set in base routes.py default_controller = 'w' # ordinarily set in app-specific routes.py default_function = 'index' # ordinarily set in app-specific routes.py There is not static URL at all, just the call to some controllers. On 27 abr, 12:40,

[web2py] Re: Best practice to start background process

2011-04-27 Thread Stodge
I don't know about web2py specific processes, but I believe py2exe can install your python application as a Windows service. On Apr 27, 1:04 pm, teemu wrote: > Hi, > > I would like to know what would be the best way to start background > process in production environment. I have implemented backg

Re: [web2py] Re: CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 9:41 AM, pbreit wrote: > If you set "default_application" in routes.py, it's going to hide "/app" (and > /default) which is usually what you want. But everything should still work. > Do you generate all of your URLs with the URL() tag? (you should) And when using URL() to cre

Re: [web2py] Code insert-er for Pydev Eclipse users

2011-04-27 Thread José Luis Redrejo Rodríguez
2011/4/27 pierreth : > Hello, > > I made a tool to automatically insert the code necessary to avoid the > errors and warnings reported by Eclipse Pydev cause by the automatic > imports of web2py. > > http://code.google.com/p/neo-insert-imports/ > > Tell me if you like. I do like it a lot :) It wor

[web2py] Best practice to start background process

2011-04-27 Thread teemu
Hi, I would like to know what would be the best way to start background process in production environment. I have implemented background process by using the web2py book chapter as a template ("http:// www.web2py.com/book/default/chapter/04#Background-Processes-and-Task-Queues"). I start backgroun

[web2py] Re: Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Nite
Ok, found the syntax issue with the curly brace conversion... def feed(): a = dict() a = { "title":"my feed", "link":"http://feed.example.com";, "description":"my first feed", "entries":[{'title':"my feed", "link":"http://fe

[web2py] How to run a daemon/service??

2011-04-27 Thread Ialejandro
Hi! Developing my school project app, I have this: I have a dir called _configdir with some .ini files, these files have this structure: [ROOMNAME] owner=somename data1=somedata data2=somedata data3=sometada Those inis are sent to my sever from many other pcs trough ftp. I made this script for p

[web2py] Question about custom registration form

2011-04-27 Thread salbefe
Hello, In the application were are developing a user with the admin role has to register the 'other users' that will have access to it. We would like to make a view that must have a form for registering users and a list of the users that are currently registered (all in the same view) For testin

[web2py] Re: CNAME and routes.py file

2011-04-27 Thread pbreit
If you set "default_application" in routes.py, it's going to hide "/app" (and /default) which is usually what you want. But everything should still work. Do you generate all of your URLs with the URL() tag? (you should)

[web2py] Re: Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Nite
Upgraded to 1.95.1 which is current. Still no joy. It doesn't appear that curly brace notation will work for generating RSS feeds or I am doing something wrong. >From the book here is the example: def feed(): return dict(title="my feed", link="http://feed.example.com";,

[web2py] Re: Menus in the model don't update at the right time...

2011-04-27 Thread ron_m
The web2py request work flow runs the model files first, then the controller, then renders the view. I had a similar problem, the only way I could figure out how to change the menu after the model files have run was to add a menu update function to the model and call it from the controller when

[web2py] CNAME and routes.py file

2011-04-27 Thread Oscar
Hi, I'm using dotcloud service for host my web2py application, I configured a routes.py file to change the default application, function and controller for my app. I configured a CNAME record with my domain pointing to dotcloud service so my real URL access is: www.myapp.dotcloud.com it change to

Re: [web2py] CNAME and routes.py file

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 9:26 AM, Oscar wrote: > > I'm using dotcloud service for host my web2py application, I > configured a routes.py file to change the default application, > function and controller for my app. I configured a CNAME record with > my domain pointing to dotcloud service so my real URL

[web2py] Menus in the model don't update at the right time...

2011-04-27 Thread Jason Brower
It's a bummer, but I currently have to refresh the page after adding an item to the menus with a database insert. Is there any way I can have the menu's refresh manually before any page rendered? I have many controllers, and it would be weird to put the command into each one. That and I always

[web2py] Re: Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Anthony
On Wednesday, April 27, 2011 12:01:29 PM UTC-4, Nite wrote: > > entries = [ > { 'itunes:name': foo, > ... > } > ] > > Results in the following: > >'itunes:owner' = [ > SyntaxError: keyword can't be an expression I'm not sure this is the problem, but is foo a variable? If not, you

[web2py] Re: Login problems with _formkey changing

2011-04-27 Thread pbreit
Is this the standard login code or has it been customized in any way?

[web2py] Re: Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Nite
entries = [ { 'itunes:name': foo, ... } ] Results in the following: 'itunes:owner' = [ SyntaxError: keyword can't be an expression Curly Brace dictionary notation seemed to work for the html view: Feed {'description': 'My Description', 'language': 'en', 'title': 'My Titl

Re: [web2py] Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Jonathan Lundell
On Apr 27, 2011, at 8:30 AM, Nite wrote: > > def feed(): >return dict(title="my feed", >link="http://feed.example.com";, >description="my first feed", >entries=[ > dict(title="my feed", > link="http://feed.exampl

[web2py] Re: Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Anthony
Instead of using dict(), can you use {} notation to create the dictionary? For example: {'itunes:name':'foo'} Anthony On Wednesday, April 27, 2011 11:30:05 AM UTC-4, Nite wrote: > I am attempting to create an itunes compatible podcast using the RSS > capabilities of Web2py. > > Per the Boo

[web2py] Re: Janrain Alternative: SimpleAuth (And its totally free)

2011-04-27 Thread Nite
The Quickstart guide is accessible without logging in. https://www.simpleauth.com/docs/quickstart I would give it a shot, but this is beyond me... On Apr 27, 10:52 am, Tom Atkins wrote: > Their documentation is available after signing up (very easy as you can use > your Google (etc) account).  

[web2py] Creating an iTunes Compatible Podcast with Web2py

2011-04-27 Thread Nite
I am attempting to create an itunes compatible podcast using the RSS capabilities of Web2py. Per the Book (http://web2py.com/book/default/chapter/09#RSS) the format is as follows: def feed(): return dict(title="my feed", link="http://feed.example.com";, descrip

[web2py] Login problems with _formkey changing

2011-04-27 Thread Ed Greenberg
I have a user of my app that is unable to log in with his (Ubuntu) Firefox browser. He can log in with Chrome, and others can log in with various flavors of Firefox. He's cleared his caches, cleared his cookies, and done all sorts of similar browser cleansing things. I found that his session._for

[web2py] Re: Documentation web2py

2011-04-27 Thread Massimo Di Pierro
On Apr 27, 9:52 am, villas wrote: > I certainly wouldn't wish to discourage anyone from editing etc by > introducing unnecessary procedures. However,  I think we need a little > more clarity. > > Problem 1. If Massimo is only going to make a final decision about > backwards-compatibility on an a

[web2py] Re: Tr.lời: Re: Tr.lời: Re: Site wide "single sign on"?

2011-04-27 Thread villas
The design is of course your decision, but for example, you could have one DB just for auth across all your apps. Then you might have separate DBs for each app's data. I have never shared login sessions between apps. However, maybe Massimo's suggestion above is helpful. If you need such flexib

[web2py] Re: Documentation web2py

2011-04-27 Thread Ross Peoples
Just tossing my two cents in here, but documentation (especially that of experimental features) is really important and can make a huge difference. Django actually had http://www.djangobook.com/en/2.0/ which was pretty cool, but they haven't maintained it. It gives you two versions, a stable boo

Re: [web2py] Re: Documentation web2py

2011-04-27 Thread Gilson Filho
That makes sense. _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/4/27 villas > I certainly wouldn't wish to discourage anyone from editing etc by > introducing unnecessary procedures. However, I think we need a little > more clarity. > >

Re: [web2py] Re: Janrain Alternative: SimpleAuth (And its totally free)

2011-04-27 Thread Tom Atkins
Their documentation is available after signing up (very easy as you can use your Google (etc) account). There's a very clear step by step PHP example inside. Sorry I don't have time to look into this for web2py just now. On 27 April 2011 15:47, Massimo Di Pierro wrote: > If they have php example

[web2py] Re: Documentation web2py

2011-04-27 Thread villas
I certainly wouldn't wish to discourage anyone from editing etc by introducing unnecessary procedures. However, I think we need a little more clarity. Problem 1. If Massimo is only going to make a final decision about backwards-compatibility on an annual basis, this is a very long time. Could we

[web2py] Re: Janrain Alternative: SimpleAuth (And its totally free)

2011-04-27 Thread Massimo Di Pierro
If they have php examples, chances are it works like janrain. It should be possible to modify gluon/contrib/login_methods/rpx_account.py and just change the URLs and variable names in there. If you could start working on this it would be great. If you want me to take a look, it would save me t

[web2py] Code insert-er for Pydev Eclipse users

2011-04-27 Thread pierreth
Hello, I made a tool to automatically insert the code necessary to avoid the errors and warnings reported by Eclipse Pydev cause by the automatic imports of web2py. http://code.google.com/p/neo-insert-imports/ Tell me if you like.

Re: [web2py] Re: Janrain Alternative: SimpleAuth (And its totally free)

2011-04-27 Thread Tom Atkins
I just emailed SImpleAuth support and got this reply back from Mike (which he agreed I could post here): - "We completely understand the concerns. The founders (I'm one of them) are all developers and we built SimpleAuth because it's just what we needed as well. Every developer ne

[web2py] Re: Filtering by date range (SQL date tye)

2011-04-27 Thread DenesL
Nice tip!, thanks. On Apr 26, 10:09 pm, Brian M wrote: > Also try the dateutil module fromhttp://niemeyer.net/python-dateutil > > examples: > > >>> NOW = datetime.now() > >>> NOW+relativedelta(months=+1, weeks=+1) > > datetime.datetime(2003, 10, 24, 20, 54, 47, 282310) > > >>> relativedelta(dat

[web2py] Re: crud challenge

2011-04-27 Thread DenesL
It takes some time to figure out and understand everything that goes on, that is why I thought of sharing it via an exercise first, maybe somebody else could come up with a different solution. Anyway, it is good to hear that there were people trying and that the info might be useful. Thanks for t

[web2py] Tr.lời: Re: Tr.lời: Re: Site wide "single sign on"?

2011-04-27 Thread toan75
Thank for reply. - I need create only one DB for all app or one Auth db + others app db? - Please explain to me how to automatically login when switching to another application? Many thanks.

[web2py] Re: Documentation web2py

2011-04-27 Thread Massimo Di Pierro
I need you help. Mostly in editing the online book. Anybody can do that, users just need to ask me to become editors. Do not worry about creating new sections. Just add the text where it seems more appropriate. When I review it (probably in August) I may move the content. New features, even if ex

Re: [web2py] Re: Documentation web2py

2011-04-27 Thread Gilson Filho
But needing some help, we're here =) _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/4/27 Massimo Di Pierro > I do not have definitive answers. > > I will try review the book annually, usually in August. When I do this > is the process: >

[web2py] Re: Strange behavior in layout files

2011-04-27 Thread Anthony
On Tuesday, April 26, 2011 11:34:48 PM UTC-4, pbreit wrote: > > Is there any advantage to the "append" approach? (besides being able to > trigger a load from somewhere else) If you look at web2py_ajax.html, you can see it inserts jquery.js, calendar.css, and calendar.js as the first three lin

[web2py] Re: Documentation web2py

2011-04-27 Thread Massimo Di Pierro
I do not have definitive answers. I will try review the book annually, usually in August. When I do this is the process: - I diff the online book with the printed book - I go over the logs to see which features are undocumented and need documenting - If I add documentation then it becomes a stable

[web2py] Re: Documentation web2py

2011-04-27 Thread villas
It is tricky for book editors to write new sections for the book for various reasons: e.g. - Editors do not usually know the full background and intent of new features. - As new features are always introduced as unstable, it is too early to document them. Typically there are relevant group posti

[web2py] Re: crud challenge

2011-04-27 Thread villas
Thanks Denes, this was an interesting exercise and it is good that you are giving us the benefit of this knowledge. I suppose like many, I thought about the challenge, but couldn't figure it out. On Apr 26, 7:49 pm, DenesL wrote: > Since I have not received any answers here is how to do it. >

[web2py] Re: the '|' charachter i text fields

2011-04-27 Thread Massimo Di Pierro
My guess is that you are passing a list instead of a string of text. In order to put a list into a text field, web2py joins the elements using a '|'. In your code I do not see where you do insert. On Apr 27, 12:36 am, mart wrote: > woops! almost forgot, in the sqlite db, the log field will have

[web2py] Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread Massimo Di Pierro
I do not think so. It was not touched. Can you provide an example of the problem? On Apr 27, 7:17 am, toan75 wrote: > Hi, > In new version: crud.update work only with deletable=False?

[web2py] Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread toan75
Hi, In new version: crud.update work only with deletable=False?

  1   2   >