[web2py:29480] Re: import SQL Schemma Database into model.py

2009-08-26 Thread JorgeR
Any news about this? I am about to start a very complex application and have already the DB designed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@

[web2py:29479] Modifying form auth.register() to display Password2 label

2009-08-26 Thread ed
Hi, It tried modifying the default.py auth.register() form with the following code: def user(): if request.args(0)=='register': response.flash=T('Register') form = SQLFORM(db.auth_user, fields='first_name', 'last_name','password','email', 'birthdate'])

[web2py:29478] Re: web2py book, 2nd Ed

2009-08-26 Thread JorgeR
there are some typos, and errata. for instance in page 28, it says: >>> for i in xrange(0, 4): print i 0 1 2 4 <--- (it should be '3' instead) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" gr

[web2py:29477] Re: Rename application

2009-08-26 Thread Yarko Tymciurak
rename [your_web2py_install]/applications/old_appname [your_web2py_install]/applications/new_appname On Thu, Aug 27, 2009 at 12:14 AM, rondevu wrote: > > Is it possible to rename an application. It does not seem obvious to > me. Maybe its simple ...? > > > --~--~-~--~~~--

[web2py:29476] Rename application

2009-08-26 Thread rondevu
Is it possible to rename an application. It does not seem obvious to me. Maybe its simple ...? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegr

[web2py:29475] Re: Form and Jquery

2009-08-26 Thread mr.freeze
Here's a better link for server side data: http://datatables.net/examples/data_sources/server_side.html On Aug 26, 11:12 pm, Iceberg wrote: > Sorry for chime in. > > DataTable looks definitely cool, but I havn't tried it yet. I still > wonder what is the best practice if the table content is to

[web2py:29474] Digg it

2009-08-26 Thread mr.freeze
http://digg.com/programming/web2py_manual_2nd_Ed_Book --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group

[web2py:29473] Re: Form and Jquery

2009-08-26 Thread mr.freeze
DataTables has an API that allows retrieving data from almost any data source (DOM, Javascript array, Ajax file and server-side processing (web2py, PHP, C#, Perl, Ruby, AIR, Gears etc) so you don't have to push all of your data to the client at once (you are right, this would not be wise for large

[web2py:29472] Re: Form and Jquery

2009-08-26 Thread Iceberg
Sorry for chime in. DataTable looks definitely cool, but I havn't tried it yet. I still wonder what is the best practice if the table content is too large (say, hundreds even thousands of records) to be transmitted on client side. Do we need to serve only part of them to the client-side DataTable

[web2py:29471] Re: web2py book, 2nd Ed

2009-08-26 Thread Tim McNamara
On Aug 27, 4:51 am, OpenRising wrote: > Come on guys. Let's buy it!!! > > Don't be so cheap Strongly agreed. Have only waited this long because I knew the 2nd ed would be out soon. Thanks Massimo. Two comments: 1) it would be great if the margins were reduced - this looks like a PDF of the

[web2py:29470] Many-to-many with 3 parties

2009-08-26 Thread Tim McNamara
Hi all, I am not a DB expert, but am sure there are some in here. I am trying to a many-to-many(-to-many?) relationship. I would like both organisations or individuals to be members of committees. Some people are members of organisations, independent of etiher's membership of a committee. Will s

[web2py:29469] Re: web2py book, 2nd Ed

2009-08-26 Thread Jeffield
Just bought the new book very excited... time to re-focus on some of my web2py stuff. Thanks Massimo! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to we

[web2py:29467] web2py compatibility with snow leopard

2009-08-26 Thread vvk
Is web2py compatible with snow leopard final Gold master ( a432 ) version ? Any issues there ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@google

[web2py:29468] Global variables in controller

2009-08-26 Thread vvk
Is it necessary to put authentication check for global variables in controller ? I am using global variables to make sure that certain functions are called after some function is called. Are there other ways of achieving the same ? --~--~-~--~~~---~--~~ You receiv

[web2py:29466] web2py on Godaddy

2009-08-26 Thread Derek
Hi all, I've searched Google extensively, and I can't seem to figure out how to get web2py to run on Godaddy. Apparently Godaddy supports FastCGI, and I've found instructions relating to dreamhost and FastCGI. When I try those I'm still left with this error: Forbidden You don't have permission

[web2py:29465] Re: upload filename inconsistency

2009-08-26 Thread Richard
Like this: os.path.basename(url.replace('/', os.sep).replace('\\', os.sep)) On Aug 25, 5:56 pm, mdipierro wrote: > So how should one remove the path without knowing whether is a Linux > or a Windows path? > > Massimo > > On Aug 25, 12:39 am, Richard wrote: > > > if there is a Windows path pass

[web2py:29464] Problem with using gluon code in a module

2009-08-26 Thread klarson
Hello, I'm trying to create a form in a custom module. It was originally in a controller file and worked fine. Here's the code: form = FORM(TABLE( TR("Contributor:", INPUT(_name="contributor", _size=30, _value=values["contributor"], requires=IS_N

[web2py:29463] Re: Module disappearing on GAE

2009-08-26 Thread yamandu
I was really foolishness! But I think was not exactly my fault. Scanner module was in simplejson folder and another module in the same folder was trying to import it like I mentioned. Solution: hack the importing line to from scaner import make_scaner I think it worked locally because it was in

[web2py:29462] Re: Module disappearing on GAE

2009-08-26 Thread Peterle
Some modules in GAE are simply "not working" for security reasons: maybe this one is the case, maybe not. -- On Aug 27, 1:02 am, yamandu wrote: > It can be in fact foolish I am not realizing but it´s very strange. > > When I deploy to GAE via appcfg.py and run a certain funct

[web2py:29461] Re: How to force db to re-create all tables?

2009-08-26 Thread 陶艺夫
Thank you, mdipierro. I didn't know the trick before. Now it works. 2009/8/26 mdipierro > > Did you delete the *.table files in yourapp/databases/ ? > > Massimo > > On Aug 26, 10:20 am, 陶艺夫 wrote: > > Hi, > > I have finished my app, and I deleted the database-which contains a lot > of > > testi

[web2py:29460] Module disappearing on GAE

2009-08-26 Thread yamandu
It can be in fact foolish I am not realizing but it´s very strange. When I deploy to GAE via appcfg.py and run a certain function that depends on the module simplejson.scanner it fails. In the log: from simplejson.scanner import make_scanner ImportError: No module named simplejson.scanner

[web2py:29459] Re: Developping on GAE

2009-08-26 Thread yamandu
Thanks, I can see it more clear now. Although it´s a little tricky and still got some issues around the GAE, I am developing now. On 16 ago, 14:07, mdipierro wrote: > yes. > > If you develop for web2py+T3  than you can develop directly onGAEfor > GAR but that is still considered experimental. >

[web2py:29457] Re: run python code from onclick event

2009-08-26 Thread murray3
Ok I have a better understanding (i read a jquery ajax tutorial) of what you where trying to do in your first reply. I have amended "=" to "==" and added ":" in the "if not" statement which where missing and caused syntax errors. The problem is that in the view: onclick="{{=URL (r=request,f='check

[web2py:29458] Re: Disable admin app

2009-08-26 Thread Yarko Tymciurak
On Wed, Aug 26, 2009 at 4:34 PM, mdipierro wrote: > > Assuming you run web2py locally > > "admin" the web based IDE is at > >    http://127.0.0.1:8000/admin > > "appadmin" is the database administration interface (one for every > app) > >    http://127.0.0.1:8000/[yourapp]/default/appadmin Massim

[web2py:29455] Re: Disable admin app

2009-08-26 Thread mdipierro
Assuming you run web2py locally "admin" the web based IDE is at http://127.0.0.1:8000/admin "appadmin" is the database administration interface (one for every app) http://127.0.0.1:8000/[yourapp]/default/appadmin In my installation (web2py.com) both admin and the appadmin(s) for all a

[web2py:29453] Re: Dreamhost cutting processes to 25....

2009-08-26 Thread mdipierro
I guess you are using apache or cherokee or lightpd with fcgi. You need to limit the number of threads in the configuration of the web server. On Aug 26, 2:24 pm, Jason Brower wrote: > All these are on the same hosting.  I was just using top if that is ok. > What would happen if I used to many?

[web2py:29452] Re: Storing SQLFORM in a session problem

2009-08-26 Thread mdipierro
I have seen entire threads appear and disappear recently. I cannot explain it. I also seen already a response to this thread. A session can only store primitive python types, not objects like forms. Massimo On Aug 26, 12:11 pm, Alastair Medford wrote: > I'm sorry if this appears twice anyw

[web2py:29454] Re: path issue

2009-08-26 Thread Yarko Tymciurak
>> >> I've added the web2py.py path to sys.path using sys.path.append and >> verified using print sys.path > > Again - this would have an effect if you wrote a script that did > "import web2py" - but since web2py isn't a module (rather an > application) this is of little use. > sorry - this

[web2py:29456] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
Thanks to all of you who bought the book. Just so that you know I normally reinvest in web2py all the money I make with web2py (not much). Last year I bought the hats for PyCon and paid for AdWords. There will be a printed version published by Wiley in less than one month. They have already agree

[web2py:29450] Re: path issue

2009-08-26 Thread Yarko Tymciurak
so the idea here is: you give the windows shell a filename; if it can't find it, it will see if it can find it in any of the PATHS; If it doesn't have an extension (on Linux/unix you would set the execute permissions, but windows does this by filename extensions), windows will see if it can fin

[web2py:29451] Re: Form and Jquery

2009-08-26 Thread mr.freeze
I think you will need something like this: Title etc... {{for r in results:}} {{=r.title}} etc... {{pass}} Then at the end of web2py_ajax_init javascript function of web2py_ajax.html: jQuery("#sortpage").dataTable(); Hope that helps. On Aug 26, 12

[web2py:29448] Re: path issue

2009-08-26 Thread Yarko Tymciurak
On Wed, Aug 26, 2009 at 2:55 PM, ctalley wrote: > > This is probably off topic, but here goes... > > I can't run "python web2py.py --upgrade yes" from any directory except > the directory containing web2py.py That's correct. > > I get this error => python: can't open file 'web2py.py': [Errno 2]

[web2py:29447] Re: path issue

2009-08-26 Thread Jonathan Lundell
On Aug 26, 2009, at 12:55 PM, ctalley wrote: > This is probably off topic, but here goes... > > I can't run "python web2py.py --upgrade yes" from any directory except > the directory containing web2py.py > > I get this error => python: can't open file 'web2py.py': [Errno 2] No > such file or dire

[web2py:29449] Re: path issue

2009-08-26 Thread Yarko Tymciurak
On Wed, Aug 26, 2009 at 4:10 PM, Yarko Tymciurak wrote: > On Wed, Aug 26, 2009 at 2:55 PM, ctalley wrote: >> >> I can run web2py.py from the command prompt from any directory. >> > > What this means is that you have assiciated *.py in wondows as a kind > of executable to be run by python.exe

[web2py:29446] Re: SQLFORM with individual HTML customization

2009-08-26 Thread sdiblasi
thanks Massimo, now works perfectly! Salvatore. On 26 Ago, 18:43, mdipierro wrote: > oops. try again. Somehow you have a browser set to italian and the > AlterEgo italian file has wrong permissions. > > Massimo > > On Aug 26, 11:30 am, sdiblasi wrote: > > > Hi, > > when i click onhttp://www.we

[web2py:29444] path issue

2009-08-26 Thread ctalley
This is probably off topic, but here goes... I can't run "python web2py.py --upgrade yes" from any directory except the directory containing web2py.py I get this error => python: can't open file 'web2py.py': [Errno 2] No such file or directory I've added the web2py.py path to the Windows PATH s

[web2py:29443] Re: appadmin error

2009-08-26 Thread ctalley
I followed Massimo's advice and replaced appadmin.py and appadmin.html with the most recent version and that seems to have fixed it. Thanks. On Aug 25, 10:48 am, Jonathan Lundell wrote: > On Aug 25, 2009, at 1:45 AM, mdipierro wrote: > > > > > > > > > There are two issues here: > > > 1) cgi.Fie

[web2py:29445] Re: web2py book, 2nd Ed

2009-08-26 Thread Yarko Tymciurak
...it is a PDF version on Lulu... On Wed, Aug 26, 2009 at 2:31 PM, Alfonso de la Guarda wrote: > > Great Massimo, > > I wanna buy it right now, however i have a question: is a pdf version? > Greatings from Perú and i will send you my translations to spanish of > the presentations very soon!!! > >

[web2py:29441] Disable admin app

2009-08-26 Thread Pynthon Pynthon
Hello When I'm looking at Web2py.com and I do web2py.com/appadmin I do not get the Web2py admin.. Now is my question is this admin disabled or is it possible to disable it? Or is it a good idea to disable it in live mode? Thanks, Py BTW: I will check the new book out soon! --~--~-~--~--

[web2py:29442] Re: web2py book, 2nd Ed

2009-08-26 Thread Alfonso de la Guarda
Great Massimo, I wanna buy it right now, however i have a question: is a pdf version? Greatings from Perú and i will send you my translations to spanish of the presentations very soon!!! Saludos, Alfonso de la Guarda Centro Open Source(COS) alfonsodg.blogspot.c

[web2py:29439] Re: web2py book, 2nd Ed

2009-08-26 Thread OpenRising
out of the topic :) Yeah @snfctech, http://www.kpfa.org is the best RADIO on the Planet ;) Please support his amazing 50+ years World community radio located in Berkeley ;) I just bought my copy of the book as well ;) Peace out! On Aug 26, 10:03 am, snfctech wrote: > Bought it. > > @Op

[web2py:29437] Form and Jquery

2009-08-26 Thread FERNANDO VILLARROEL
Dear All. I am trying of doing a query for get some records from a database and show results on a Data Tables (Jquery), i am new in Web development (Ajax and Jquery, Json, etc.) and i want know how doing. The idea is get all records that fecha >= to var "desde" and show in a Data Tables Con

[web2py:29435] Re: Troubles fwith SQLFORM returned from ajax call

2009-08-26 Thread Alastair Medford
Here`s the jquery code: function treelink() { query=encodeURIComponent('code')+"="+encodeURIComponent(jQuery (this).attr('name')); jQuery.ajax({type: "POST", url: '{{=URL(r=request,f='buildPage')}}', data: query, success: function(msg) { document.getElementById('magic').innerHTML=msg; we

[web2py:29436] Storing SQLFORM in a session problem

2009-08-26 Thread Alastair Medford
I'm sorry if this appears twice anywhere, I made this post last night but I think groups lied about it being posted, as I can find no trace of it. After thinking some things through I think I understand the problem behind my previous question and am now trying a new route. As I generate forms, I

[web2py:29434] Re: web2py book, 2nd Ed

2009-08-26 Thread OpenRising
Come on guys. Let's buy it!!! Don't be so cheap We need COMMUNITY SUPPORT in EVERYTHING! If you don't wrote any code for web2py, at least, support Massimo's work buying his book! The only suggestion that I would make to Massimo and that would be transformed as PR is donating part of the mone

[web2py:29429] Re: Dreamhost cutting processes to 25....

2009-08-26 Thread mdipierro
On Aug 26, 11:19 am, Jason Brower wrote: > I found out that dreamhost has limited my processes to 25... > One of my apps used that many this morning... Is this normal/right?   Depends on the configuration. Bare bone web2py should be 13. If you add apache, ssh shell, threads, database, etc. you

[web2py:29438] Re: web2py book, 2nd Ed

2009-08-26 Thread snfctech
Bought it. @OpenRising: Yay KPFA! @Massimo: Any plans for a hard copy? On Aug 26, 9:51 am, OpenRising wrote: > Come on guys. Let's buy it!!! > > Don't be so cheap We need COMMUNITY SUPPORT in EVERYTHING! If you > don't wrote any code for web2py, at least, support Massimo's work > buying hi

[web2py:29428] Re: radical proposal

2009-08-26 Thread villas
Hi Massimo I use Firebird. Take a look at this: http://ibexpert.net/ibe/index.php?n=Doc.TheFirebirdServerAndVARCHARs Executive summary: Think and plan your varchar size carefully. On Aug 26, 4:07 pm, mdipierro wrote: > These are always stored as varchar therefore it should not affect > space

[web2py:29431] free book for contributors

2009-08-26 Thread mdipierro
Web2py Contributors who have sent me a signed contributor agreement, as discussed here: http://groups.google.com/group/web2py-developers/browse_thread/thread/f95604d7fcbe1272 can email me to receive a free copy of the PDF book. Massimo --~--~-~--~~~---~--~~ Y

[web2py:29427] Dreamhost cutting processes to 25....

2009-08-26 Thread Jason Brower
I found out that dreamhost has limited my processes to 25... One of my apps used that many this morning... Is this normal/right? Is there anyway I can avoid that? Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:29426] Re: web2py book, 2nd Ed

2009-08-26 Thread Jason Brower
Yes he mentioned that. On Wed, 2009-08-26 at 08:07 -0700, rondevu wrote: > Hi there, > I remembered that you will give the book for free for students in > certain countries is it still available that way. > > Thanks. > > On Aug 17, 6:47 pm, mdipierro wrote: > > When it is out (only after it i

[web2py:29423] Re: How to force db to re-create all tables?

2009-08-26 Thread mdipierro
Did you delete the *.table files in yourapp/databases/ ? Massimo On Aug 26, 10:20 am, 陶艺夫 wrote: > Hi, > I have finished my app, and I deleted the database-which contains a lot of > testing data-from PostgreSQL server then created a new empty one. I thought > when my app found that all tables h

[web2py:29422] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
Correction: I will give the PDF for free to ALL high school students, any country, and I will give the PDF for free to ALL residents of countries with low average income. The only problem is that this may get hard to manage and out of hands. We'll see what happens. Massimo On Aug 26, 10:07 am,

[web2py:29425] Re: Legacy Database Id Field

2009-08-26 Thread villas
> > Specifying Alternative Id Field: > yes, we are working on it. Without wishing to be too specific, any idea when: weeks or months? In the meantime, do you think it would be feasible to use the idea of simply copying the primary key to 'id' with a DB trigger? > > Merging Records:   > yes, jus

[web2py:29424] Re: new website running on web2py

2009-08-26 Thread Jason Brower
You betcha! It was great how easy it was to implement multiple pages... Even if there is nothing involved database wise. :P On Wed, 2009-08-26 at 05:01 -0700, mdipierro wrote: > The layout looks very cool! Thanks Jason. > > On Aug 26, 6:54 am, Jason Brower wrote: > > This is a simple website w

[web2py:29430] Re: radical proposal

2009-08-26 Thread Álvaro Justen [Turicas]
On Wed, Aug 26, 2009 at 10:41, villas wrote: > > I suppose that upload and password fields may be special cases. > > However,  it seems to me that 512 default is way too big for normal > string fields.   Why so big?  Have space considerations become > irrelevant? > > In my apps 90% of strings are

[web2py:29433] Re: SQLFORM with individual HTML customization

2009-08-26 Thread mdipierro
oops. try again. Somehow you have a browser set to italian and the AlterEgo italian file has wrong permissions. Massimo On Aug 26, 11:30 am, sdiblasi wrote: > Hi, > when i click onhttp://www.web2py.com/AlterEgo/default/show/205 > the system show me an error : > Internal error >   Ticket issued:

[web2py:29432] Re: SQLFORM with individual HTML customization

2009-08-26 Thread sdiblasi
Hi, when i click on http://www.web2py.com/AlterEgo/default/show/205 the system show me an error : Internal error Ticket issued: AlterEgo/ 212.97.49.149.2009-08-26.12-20-52.5b92305f-9e45-4f2b-b233-c98d9a09181c And this every time I attempt to view some link to http://www.web2py.com/AlterEgo. Wh

[web2py:29417] Re: Legacy Database Id Field

2009-08-26 Thread mdipierro
On Aug 26, 9:34 am, villas wrote: > Specifying Alternative Id Field:  I notice some other frameworks allow > the developer to specify the name of the Id field in the table > definition etc.  Something like:  db.primarykey = 'other_id'.  This > makes it much easier to use with legacy databases,

[web2py:29415] Legacy Database Id Field

2009-08-26 Thread villas
Specifying Alternative Id Field: I notice some other frameworks allow the developer to specify the name of the Id field in the table definition etc. Something like: db.primarykey = 'other_id'. This makes it much easier to use with legacy databases, are there any plans to implement that? The

[web2py:29421] How to force db to re-create all tables?

2009-08-26 Thread 陶艺夫
Hi, I have finished my app, and I deleted the database-which contains a lot of testing data-from PostgreSQL server then created a new empty one. I thought when my app found that all tables had gone it would re-create all tables automatically. But it wasn't the case. It would just complain "relation

[web2py:29420] Re: web2py book, 2nd Ed

2009-08-26 Thread JorgeR
I just bought it! congrats! On Aug 26, 4:34 am, mdipierro wrote: > The new web2py book is available on lulu.com > >      http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 pages in total). Covers > Auth, Crud, Services, interaction with Pyjamas, PyAM

[web2py:29419] Re: web2py book, 2nd Ed

2009-08-26 Thread rondevu
Hi there, I remembered that you will give the book for free for students in certain countries is it still available that way. Thanks. On Aug 17, 6:47 pm, mdipierro wrote: > When it is out (only after it is out) email me a receipt of your > purchase and I will send you the new book. > > Moreover

[web2py:29418] Re: radical proposal

2009-08-26 Thread mdipierro
These are always stored as varchar therefore it should not affect space. It would be nice to make an experiment and check if it does. Massimo On Aug 26, 8:41 am, villas wrote: > I suppose that upload and password fields may be special cases. > > However,  it seems to me that 512 default is way

[web2py:29412] Re: web2py book, 2nd Ed

2009-08-26 Thread mr.freeze
Congrats Massimo! Excellent work! And thank you for offering it at such a reasonable price. On Aug 26, 4:34 am, mdipierro wrote: > The new web2py book is available on lulu.com > >      http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 pages in total

[web2py:29414] Re: Troubles fwith SQLFORM returned from ajax call

2009-08-26 Thread DenesL
Hard to tell without the code that does the ajaxing. On Aug 23, 7:11 pm, Alastair Medford wrote: > So it's looking like using an SQLFORM in the regular fashion just > isn't going to cut for what I would like to do. If I override the > normal submission method and use jquery + ajax to submit the

[web2py:29413] Re: new website running on web2py

2009-08-26 Thread mr.freeze
Looks great! Don't forget to set the title :) On Aug 26, 6:54 am, Jason Brower wrote: > This is a simple website with some dynamic text that I am building for a > manufacturing company in Taiwan.  It was very easy to do. > It will obviously get better with time.  And a lot of the code you will

[web2py:29416] Re: radical proposal

2009-08-26 Thread villas
I suppose that upload and password fields may be special cases. However, it seems to me that 512 default is way too big for normal string fields. Why so big? Have space considerations become irrelevant? In my apps 90% of strings are less than 128. As field sizes can always be increased, wh

[web2py:29409] Re: web2py book, 2nd Ed

2009-08-26 Thread carlo
In fact I tried the same but what you get is the first edition, carlo On 26 Ago, 14:42, Benigno wrote: > Actually, my bad...  I have just checked the downloaded copy is 1st > edition, not second, I had not checked the downloaded file. > > Thanks Rev for pointing that out. > > On Aug 26, 1:51 pm

[web2py:29411] Re: web2py book, 2nd Ed

2009-08-26 Thread Anand Vaidya
I bought the 2nd Ed too, just now.. Very much worth the $12.50. Thanks Massimo. Regards Anand On Aug 26, 9:06 pm, carlo wrote: > In fact I tried the same but what you get is the first edition, > > carlo > > On 26 Ago, 14:42, Benigno wrote: > > > Actually, my bad...  I have just checked th

[web2py:29410] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
It does not look like there is anything I can tweak on my side. On Aug 26, 8:06 am, carlo wrote: > In fact I tried the same but what you get is the first edition, > > carlo > > On 26 Ago, 14:42, Benigno wrote: > > > Actually, my bad...  I have just checked the downloaded copy is 1st > > edition

[web2py:29407] Re: web2py book, 2nd Ed

2009-08-26 Thread Benigno
Actually, my bad... I have just checked the downloaded copy is 1st edition, not second, I had not checked the downloaded file. Thanks Rev for pointing that out. On Aug 26, 1:51 pm, Jason Brower wrote: > Well dang... that sucks.  I guess I will give a copy to my friend. :D > Regards, > Jason Br

[web2py:29408] Re: ldap authentification AD

2009-08-26 Thread max
Hi Fran, I also tried this one using another example. import ldap l=ldap.initialize('ldap://ad.mydomain.com') l.simple_bind_s('cn=myuser ou=users,ou=kjc,ou=institute,dc=ad,dc=mydomain,dc=com','password') then i get (97, []) On 26 Aug., 14:10, max wrote: > > Do you have this needed line anywh

[web2py:29406] Re: ldap authentification AD

2009-08-26 Thread max
> > Do you have this needed line anywhere? > from gluon.contrib.login_methods.ldap_auth import ldap_auth Yes. > > Do you have ldap installed in the version of Python that you're > running? > try: > import ldap i installed python-ldap 2.3.9 and import ldap functions without failures. > > > auth.s

[web2py:29405] Re: Multiple jsonrpc trip over each other

2009-08-26 Thread Carl
phew.. I added the extra couple of lines and all is well again. I note that I'm now calling a private method (_unlock) -- is this a hot of the press workaround? thanks (I'm using the source version) C 2009/8/26 mdipierro : > > In you app... in default.py > > do you have? > > def call(): >    

[web2py:29404] Re: new website running on web2py

2009-08-26 Thread mdipierro
The layout looks very cool! Thanks Jason. On Aug 26, 6:54 am, Jason Brower wrote: > This is a simple website with some dynamic text that I am building for a > manufacturing company in Taiwan.  It was very easy to do. > It will obviously get better with time.  And a lot of the code you will > nev

[web2py:29403] Re: Multiple jsonrpc trip over each other

2009-08-26 Thread mdipierro
In you app... in default.py do you have? def call(): session.forget() session._unlock(response) return service() If not give it a try. Windows, mac or source version? Massimo On Aug 26, 6:47 am, Carl wrote: > hi, > > I'm using pyjamas to build the UI of my app and calling we

[web2py:29402] new website running on web2py

2009-08-26 Thread Jason Brower
This is a simple website with some dynamic text that I am building for a manufacturing company in Taiwan. It was very easy to do. It will obviously get better with time. And a lot of the code you will never see. (That's a good thing. :D) http://trimaxsafety.com.tw Thanks for Web2Py Regards,

[web2py:29401] Re: web2py book, 2nd Ed

2009-08-26 Thread Jason Brower
Well dang... that sucks. I guess I will give a copy to my friend. :D Regards, Jason Brower On Wed, 2009-08-26 at 04:30 -0700, mdipierro wrote: > Thanks for the clarification. > > On Aug 26, 6:19 am, Benigno wrote: > > I got it with a free download from LuLu. > > > > What I did to get it was:

[web2py:29400] Multiple jsonrpc trip over each other

2009-08-26 Thread Carl
hi, I'm using pyjamas to build the UI of my app and calling web2py with functions decorated @service.jsonrpc web2py receives several jsonrpc and I reckon it receives a call while it's cleaning up after the previous call... Traceback (most recent call last): File "G:\My Documents\Carl\projects

[web2py:29399] Re: Every while and then file upload fails

2009-08-26 Thread mdipierro
It is a wsgiserver issue. That we all agree on. Massimo On Aug 26, 6:19 am, mmstud wrote: > I am using just default settings after downloading source. So it must > be cherry and sqlite? > > Or I dont know, this is a web2py start up log: > > macbook:web2py-read-only mmstud$ python web2py.py > WA

[web2py:29398] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
Thanks for the clarification. On Aug 26, 6:19 am, Benigno wrote: > I got it with a free download from LuLu. > > What I did to get it was: > > - Login LuLu with same user I created to buy first version. > - Go to my order history, and get the order I purchased it from > initially. > - From there,

[web2py:29397] upgrading from 1.65.5 to 1.66.2 trips when cleaning up sqlite access

2009-08-26 Thread Carl
hi, In 1.65.5 I was getting a warning message to console about being unable to close a file. At the time I thought it was an issue with pyjamas but having traced thru the debugger realised it was web2py. In 1.66.1 & 1.66.2 that warning have changed and now kicks out a ticket... Traceback (most r

[web2py:29396] upgrading from 1.56 to 1.66.2 trips when cleaning up sqlite access

2009-08-26 Thread Carl
hi, In 1.56 I was getting a warning message to console about being unable to close a file. At the time I thought it was an issue with pyjamas but having traced thru the debugger realised it was web2py. In 1.66.1 & 1.66.2 that warning have changed and now kicks out a ticket... Traceback (most re

[web2py:29395] Re: Every while and then file upload fails

2009-08-26 Thread mmstud
I am using just default settings after downloading source. So it must be cherry and sqlite? Or I dont know, this is a web2py start up log: macbook:web2py-read-only mmstud$ python web2py.py WARNING:root:unable to import dbhash default applications appear to be installed already web2py Enterprise

[web2py:29394] Re: web2py book, 2nd Ed

2009-08-26 Thread Benigno
I got it with a free download from LuLu. What I did to get it was: - Login LuLu with same user I created to buy first version. - Go to my order history, and get the order I purchased it from initially. - From there, there is a drop down thats a bit confusing as it says: Need help?.. select Where

[web2py:29393] Re: web2py book, 2nd Ed

2009-08-26 Thread Carl
Well done M! On Aug 26, 10:34 am, mdipierro wrote: > The new web2py book is available on lulu.com > >      http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 pages in total). Covers > Auth, Crud, Services, interaction with Pyjamas, PyAMF, and better

[web2py:29392] Re: ldap authentification AD

2009-08-26 Thread Fran
On Aug 26, 3:59 pm, max wrote: Do you have this needed line anywhere? from gluon.contrib.login_methods.ldap_auth import ldap_auth Do you have ldap installed in the version of Python that you're running? try: import ldap > auth.settings.login_methods=[ldap_auth > (mode='ad',server='ad.mydoman.c

[web2py:29391] Re: web2py book, 2nd Ed

2009-08-26 Thread carlo
Missing those categories I bought this at the bargain price of 9.69 euros ! btw, great work Massimo! carlo On 26 Ago, 12:37, mdipierro wrote: > I cannot reimburse people but I am happy to give it for free to high > school students and people who live in countries with an average > annual incom

[web2py:29389] Re: web2py book, 2nd Ed

2009-08-26 Thread emaynard
Hello, I can confirm Jason's experience. Even though you can download the same product more than once in My Downloads, it appears that Lulu does somehow know the difference between versions of a product independent of the ID. Personally, I don't mind paying the cost for a new version, but I can

[web2py:29390] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
I cannot reimburse people but I am happy to give it for free to high school students and people who live in countries with an average annual income below $8000 or are prevented from download because of government restrictions. Massimo --~--~-~--~~~---~--~~ You rece

[web2py:29388] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
I think so. On Aug 26, 5:08 am, "Zoom.Quiet" wrote: > On Wed, Aug 26, 2009 at 17:34, mdipierro wrote: > > > The new web2py book is available on lulu.com > > >    http://www.lulu.com/content/e-book/web2py/4968879 > > soo great! > is covered all about 1.6.* features? > > > > > Lots of new stuff wi

[web2py:29387] Re: web2py book, 2nd Ed

2009-08-26 Thread Jason Brower
Nope. It billed my account. :D Regards, Jason On Wed, 2009-08-26 at 03:02 -0700, mdipierro wrote: > No I am not sure. Somebody told me that was the case. > > On Aug 26, 4:48 am, carlo wrote: > > > Same price as before ($12.5) and same ID (which means if you bought > > > the old one you should

[web2py:29386] Re: web2py book, 2nd Ed

2009-08-26 Thread Zoom.Quiet
On Wed, Aug 26, 2009 at 17:34, mdipierro wrote: > > The new web2py book is available on lulu.com > >     http://www.lulu.com/content/e-book/web2py/4968879 > soo great! is covered all about 1.6.* features? > Lots of new stuff with100 more pages (341 pages in total). Covers > Auth, Crud, Services

[web2py:29385] Re: web2py book, 2nd Ed

2009-08-26 Thread mdipierro
No I am not sure. Somebody told me that was the case. On Aug 26, 4:48 am, carlo wrote: > > Same price as before ($12.5) and same ID (which means if you bought > > the old one you should be able to get the new one for free). > > Are you sure about that? Though I bought the first edition I do not

[web2py:29384] ldap authentification AD

2009-08-26 Thread max
i am having the active active directory authentification problm althoght i have tried lot of different variation using cas. I will be happy if some one just show me a simple model/db.py where it is correctly configured. i exclude misbaviors from my Active Directory Autentification server as I get

[web2py:29383] Re: web2py book, 2nd Ed

2009-08-26 Thread Jason Brower
Woot! Just got bought it! But They billed me. So that shoudl get fixed. Regards, Jason On Wed, 2009-08-26 at 02:34 -0700, mdipierro wrote: > The new web2py book is available on lulu.com > > http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 p

[web2py:29382] Re: web2py book, 2nd Ed

2009-08-26 Thread Carlos Aboim
Sorry for my opinionI should it must be free for downloading. I think it whould help to improve the interest of new users on web2py. thanks for everything anyaway!! Carlos Aboim 2009/8/26 Jason Brower > > Congrats! Very happy for you! > I will recommend it to everyone and by it on my next pay

[web2py:29381] Re: web2py book, 2nd Ed

2009-08-26 Thread max
i am having the paper version of web2py. is there any way that i can get the rest pages, till i persuade my boss to buy me the new online version. On 26 Aug., 11:34, mdipierro wrote: > The new web2py book is available on lulu.com > > http://www.lulu.com/content/e-book/web2py/4968879 > >

[web2py:29380] Re: web2py book, 2nd Ed

2009-08-26 Thread carlo
> Same price as before ($12.5) and same ID (which means if you bought > the old one you should be able to get the new one for free). Are you sure about that? Though I bought the first edition I do not see any way to get the second for free, thank you carlo --~--~-~--~~~-

  1   2   >