[web2py:10039] Re: web2py book finally online in PDF

2008-10-09 Thread mdipierro
I have emailed the publisher again about this. We agreed on PDF. I was not aware of this system that they are using and I do not like it. People should be able to print it. If he does not fixes it I will just setup my own delivery system. Massimo On Oct 10, 1:50 am, seeker <[EMAIL PROTECTED]> wr

[web2py:10038] Re: web2py book finally online in PDF

2008-10-09 Thread seeker
mmm ... not great. To get the book from Amazon the only shipping option available to me is a very expensive priority courier shipping, so I was hoping that the PDF version would be the answer. I read/use all my electronic documents and books on an e-reader and that requires PDF, HTML, TXT or Mob

[web2py:10037] Re: services

2008-10-09 Thread yarko
RE: another server I think my motivation for this is to separate the processes responding to live user load from the network. If I understand correctly, the web2py instance and server is running as one process; the web2py applications are running as threads. So my first way of thinking is to s

[web2py:10036] Re: Hiding vars from url

2008-10-09 Thread morningovermidnight
Ha! Fixed it! Thanks Steve for the extra push to look at the CAS app again. I had the CAS app open this whole time to use for reference. Naturally once I stepped away for a moment and then came back to it, took another look at the CAS app, then I got it! Thanks! On Oct 9, 11:50 pm, "Steve Shepher

[web2py:10035] Re: Customizing forms

2008-10-09 Thread mdipierro
form is the form, form[0] is the table inside it. form[0][0] is the first row. form[0][-1] is the last row, etc. You can do form[0].append(TR('Label',TAG.button('whatever'),'comment')) You can add more attributes to your TAG.button On Oct 9, 8:39 pm, Jose de Oliveira Filho <[EMAIL PROTECTED

[web2py:10034] Re: questions about sessions, user authentication, etc

2008-10-09 Thread Steve Shepherd
I will have a go at this. 1. The Google account does not reply on GAE. You could be in our out of GAE and still utilise the Python libraries that exist. Your solution of a local user account is also good as you may want to add additional information to your user. 2. The session information is sto

[web2py:10033] Re: Hiding vars from url

2008-10-09 Thread Steve Shepherd
Have you taken a look at the demo apps that use CAS or the T2 user security. They will show you a lot about how to handle security neatly. Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:10032] Hiding vars from url

2008-10-09 Thread morningovermidnight
Is there a way to keep form.vars from displaying in the url? I am making a login form, and the vars showing in the url is not a problem if the user enters the correct username and password because they are not shown in that case. However, if the user enters the wrong password, the form does not su

[web2py:10031] Re: Customizing forms

2008-10-09 Thread Jose de Oliveira Filho
Thanks a bunch, Massimo. I completely overlooked the "hidden" thing in the FORM source, but the first answer is what I was looking for. I need to add an extra button to a SQLFORM, like "Save and Add another". I could put it outside the form but it looks really bad, any recommendations here

[web2py:10030] Re: services

2008-10-09 Thread achipa
I forgot the perhaps most important use-case: use it to check for newer version of your application (or web2py itself in the case of the admin app) in a fashion that avoids hair pulling when cti.depaul.edu is down and we want to do something in the admin :D On Oct 10, 1:34 am, achipa <[EMAIL PRO

[web2py:10029] Re: services

2008-10-09 Thread achipa
Massimo is right, what I'm aiming for is closer to daemons (it's just that windows calls daemons services... damn terminology). I'd like to underline is that this does not replace a system cron or other daemons that do long running or very low level tasks with specific rights. If you need to do so

[web2py:10028] questions about sessions, user authentication, etc

2008-10-09 Thread pedro
Ok, so I decided to start to implement a basic user authentication system to my app. This is the scenario: I want to deploy my app on google appengine at first so I save many user the hassle of a registrations. Once it has a reasonable userbase I want to move it out of google app engine. This mig

[web2py:10027] Re: services

2008-10-09 Thread yarko
...and to Voltron's comment on middleware, I think I agree (middleware being more broadly useful) - but I think these are separate things serving separate kinds of needs On Oct 9, 5:13 pm, yarko <[EMAIL PROTECTED]> wrote: > ...yes (to Massimo's comment), and what I'm thinking is something like >

[web2py:10026] Re: services

2008-10-09 Thread yarko
...yes (to Massimo's comment), and what I'm thinking is something like the background separate server that has no views, but rather accepts remote calls from other web2py apps to process asyncchronously; achipa want to do cleanup; someone else may want to send notification emails from a separate

[web2py:10025] Re: generate menu with category headers

2008-10-09 Thread Snoboardfreak
thanks Massimo and phyo! no idea why but after trying Massimos latest code i get same error ValueError: too many values to unpack this is whats in the ticket if response.menu: response.write('\n \n ',escape=False) for name,active,link in response.menu: response.write('\n ',escape

[web2py:10024] Re: services

2008-10-09 Thread mdipierro
I think we are talking about something else here. "services" in this thread should be read more like "deamons". specifically programs that are triggered by events, run in background and are not connected to normal IO. achipa wants the ability to start threads from within web2py to do database cle

[web2py:10023] Re: services

2008-10-09 Thread voltron
I dunno, why re-invent the wheel with services? XML-RPC, Remoting, Flash remoting works well with with Web2py or am I missing the point here? I think something in the direction of middleware is what we need --~--~-~--~~~---~--~~ You received this message because yo

[web2py:10022] Re: Customizing forms

2008-10-09 Thread mdipierro
Good questions. Answers below. > (in controller:) > def new_project(): >f = FORM(INPUT(_name = "project_title", _type = "text")) >if f.accepts(request.vars, session): > db.project.insert(dict(title = f.vars.title, description = > f.vars.description, user = session.user_id)) >

[web2py:10021] Re: web2py book finally online in PDF

2008-10-09 Thread mdipierro
Correction. Does not appear to be in PDF as expected. It is in a digital format, it is downloadable but there is some king of protection. hmmm. Massimo On Oct 9, 3:44 pm, Massimo Di Pierro <[EMAIL PROTECTED]> wrote: > http://store.vitalsource.com/show/9780470432327 > > It costs a little more tha

[web2py:10020] web2py book finally online in PDF

2008-10-09 Thread Massimo Di Pierro
http://store.vitalsource.com/show/9780470432327 It costs a little more than I expected but again, that is not much under my control. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:10019] Re: Customizing forms

2008-10-09 Thread José Deodoro de Oliveira Filho
On Thu, Oct 9, 2008 at 12:36 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > If I understand your question, your form.load(record) would be > form.vars.update(record) > Hi again, Sorry for the long email, it's kind of a big doubt for me. I'm pretty sure I'm doing it wrong on behalf of inexperience

[web2py:10018] Re: services

2008-10-09 Thread yarko
I have to admit to not having read much about this (I did use webservices on a project once), but just for starters, here: http://diveintopython.org/http_web_services/index.html http://diveintopython.org/soap_web_services/index.html Without suggesting anything too far afield, I would suggest tha

[web2py:10017] Re: services

2008-10-09 Thread yarko
when I said services, I was thinking from web-services model that I'm aware of in dot-NET. So, my mental concept of this is such: a service is something that a web2py app calls like a remote procedure call - it does the same authentication etc. of the caller, but has no user UI interface - it's

[web2py:10016] Re: Sessions value to long

2008-10-09 Thread mdipierro
yes that is a good thing. The bug was introduce in 1.44 released Monday and fixed Wednesday so hopefully every few people were affected. Thanks again for reporting this. Massimo On Oct 9, 11:05 am, morningovermidnight <[EMAIL PROTECTED]> wrote: > Massimo, > > Thanks for explaining session.secure

[web2py:10015] Re: Daemons as Threads

2008-10-09 Thread mdipierro
>several threads per one connection and didn't go too well yep. Not a good idea to mix this with transactions. On Oct 9, 10:39 am, achipa <[EMAIL PROTECTED]> wrote: > If you check back a few months, you'll see that I experimented with > mysql and several threads per one connection and didn't go

[web2py:10014] Re: Sessions value to long

2008-10-09 Thread morningovermidnight
Massimo, Thanks for explaining session.secure(), I understand it now. I appreciate all your quick and helpful replies. About finding a bug, well I guess if in the end it goes toward making web2py even better, then it is a good thing. Viva web2py! :-) On Oct 9, 1:21 am, mdipierro <[EMAIL PROTECTE

[web2py:10013] Re: Customizing forms

2008-10-09 Thread Timothy Farrell
Deo, welcome. It's always good to have new faces and to hear that web2py is spreading. Please see my answers below: deo wrote: > > > I have a question on Tim's solution of creating a form in the view and > replicating it in the action: how would I load values on the forms > fields ? Would I hav

[web2py:10011] Re: Customizing forms

2008-10-09 Thread mdipierro
If I understand your question, your form.load(record) would be form.vars.update(record) On Oct 9, 9:28 am, deo <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm a newbie like billf and I'm trying to do some things, but I don't > see an easy way of doing them, maybe you can help me. > > I have a que

[web2py:10009] Re: Daemons as Threads

2008-10-09 Thread mdipierro
The problem is that SQLite is not a client-server database and only thread can access a SQLite database at one time. If one thread access the db file, the file is locked and nobody else can use it until released. You should be using postgresql or mysql to do what you are doing. Massimo On Oct 9

[web2py:10012] Re: Daemons as Threads

2008-10-09 Thread achipa
If you check back a few months, you'll see that I experimented with mysql and several threads per one connection and didn't go too well.. It's just so much less error prone to have separate connections or a producer/consumer pattern than debug a deadlock, race conditions or phantom 'server gone aw

[web2py:10010] Re: Customizing forms

2008-10-09 Thread deo
Hello all, I'm a newbie like billf and I'm trying to do some things, but I don't see an easy way of doing them, maybe you can help me. I have a question on Tim's solution of creating a form in the view and replicating it in the action: how would I load values on the forms fields ? Would I have t

[web2py:10006] Re: Troubles with lighttpd

2008-10-09 Thread fengfeng
(plugin.c.165) dlopen() failed for: /usr/lib/lighttpd/mod_indexfile, mod_fastcgi.so /usr/lib/lighttpd/mod_indexfile, mod_fastcgi.so: cannot open shared object file: No such file or directory --~--~-~--~~~---~--~~ You received this message because you are subscrib

[web2py:10008] Re: Daemons as Threads

2008-10-09 Thread Scott Hunter
When I tried that, I got the following error when attempting a query: ProgrammingError: SQLite objects created in a thread can only be used in that same thread. But when I try to create an SQLDB object in my thread, I get: OperationalError: unable to open database file Maybe my thread di

[web2py:10007] Re: Troubles with lighttpd

2008-10-09 Thread fengfeng
i always meet 404 - Not Found, my web2py path is /home/web2py/, and i put the fcgihandler.fcgi in the web2py path,is it right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to

[web2py:10005] Re: Remote editing of modules via Admin

2008-10-09 Thread mdipierro
Let's get to work! Massimo On Oct 9, 8:42 am, [EMAIL PROTECTED] wrote: > Is web2py is the first approach to The collaborative development > directly via online interface ? > > What i want to see is , to combine Trac with Web2py Admin . Which we > can have full fledge Online Collab development e

[web2py:10004] Re: services

2008-10-09 Thread mdipierro
Thank you. I will look at it. On Oct 9, 8:22 am, achipa <[EMAIL PROTECTED]> wrote: > I think we might have a bit of a terminology issue here. From the > operating system's standpoint, web2py is a service. I'm not talking > about that. When I say web2py service, I mean things that are strictly > l

[web2py:10003] Re: generate menu with category headers

2008-10-09 Thread phyo . arkarlwin
Sno You can try downloading a HTML/CSS template with good menus -(many there at www.openwebdesign.com) , and make web2py use it. you can learn how to make web2py use it by how layout.html is made. try to adapt the template with web2py's layout.html and you will get custom menus that you like.

[web2py:10002] Re: Eclipse/PyDev/web2py - extra info

2008-10-09 Thread phyo . arkarlwin
It is becase web2py is not executed under its directory. Working directory should be set to web2py directory. On 10/9/08, billf <[EMAIL PROTECTED]> wrote: > > Having read the AlterEgo write-up, I still had problems with the > 'VERSION' file not being found. > > I got around this by Run > Open Ru

[web2py:10001] Re: Remote editing of modules via Admin

2008-10-09 Thread phyo . arkarlwin
Is web2py is the first approach to The collaborative development directly via online interface ? What i want to see is , to combine Trac with Web2py Admin . Which we can have full fledge Online Collab development environment(SVN support , Project management , Collaborative Development, Testing ,

[web2py:10000] Re: services

2008-10-09 Thread achipa
I think we might have a bit of a terminology issue here. From the operating system's standpoint, web2py is a service. I'm not talking about that. When I say web2py service, I mean things that are strictly linked and (I dare say) actually are *meant* to run under web2py, but are not tightly coupled

[web2py:9999] Eclipse/PyDev/web2py - extra info

2008-10-09 Thread billf
Having read the AlterEgo write-up, I still had problems with the 'VERSION' file not being found. I got around this by Run > Open Run Dialog > Arguments; Base Directory = /usr/local/web2py (or your equivalent) I hope this helps someone. Bill --~--~-~--~~~---~--~~