[web2py:15853] [Test] link raises exception in trunk (revision 703)

2009-02-04 Thread Markus Gritsch
Hi, when clicking on the [test] link in admin to run the unit-tests, the following traceback is issued: Traceback (most recent call last): File D:\home\ActivityRecording\utilities\google_appengine\web2py-read-only\gluon\restricted.py, line 97, in restricted ccode =

[web2py:15854] Re: key error with export_to_csv_file

2009-02-04 Thread INeedHelp
which version should i use? thanks On Feb 4, 2:22 pm, mdipierro mdipie...@cs.depaul.edu wrote: It works for me $ python web2py.py -S test -M ... import StringIO s=StringIO.StringIO() db.export_to_csv_file(s) which version of web2py are you using? Massimo On Feb 4, 12:00 am,

[web2py:15855] Re: new web site

2009-02-04 Thread Markus Gritsch
On Tue, Feb 3, 2009 at 8:34 PM, mdipierro mdipie...@cs.depaul.edu wrote: Any better? https://mdp.cti.depaul.edu/examples2 Interactive Examples and Interactive API Reference need a more prominent location than being just items in the Documentation list. The line-spacing is too large IMO,

[web2py:15857] Re: new web site

2009-02-04 Thread aspersieman
The new look looks reaaly cool. Just a few spelling errors :) : * On the page https://mdp.cti.depaul.edu/examples2/default/what there is a spelling error: Exmaples should probably be Examples. * On the page https://mdp.cti.depaul.edu/examples2/default/download reliesed should probably be

[web2py:15859] Re: Google gears ?

2009-02-04 Thread vihang
I remember a similar discussion on this before here. My understanding is that the offline support for web application still has miles to go before it can mature like javascript libraries (jquery, dojo, etc). There are various issues involved primarily relating to data sync. It would have to be

[web2py:15860] Re: key error with export_to_csv_file

2009-02-04 Thread Fran
On Feb 4, 8:25 am, INeedHelp zhang.kil...@gmail.com wrote: which version should i use? Usually the latest stable, so 1.55 currently. - unless you want to try out new features in which case trunk. What version gave you this error? F --~--~-~--~~~---~--~~ You

[web2py:15861] Re: new web site?

2009-02-04 Thread BearXu
Adobe also released a color website: http://kuler.adobe.com/ and Rails has a new group http://groups.google.com/group/ruby-graphic-designers maybe a designer can be found from it. 2009/2/2 achipa attila.cs...@gmail.com As for typos, you might want to check out

[web2py:15862] Re: new web site?

2009-02-04 Thread achipa
Content-language shows 'cs' for me which breaks a few fancy addons I use, the 'accept language' header I send is en-us,en, so no idea where it gets 'cs' from. On Feb 2, 8:57 am, mdipierro mdipie...@cs.depaul.edu wrote: I am working on this prototype website to go with launch of web2py 1.56

[web2py:15856] Re: advertise your company?

2009-02-04 Thread Alexandre Miguel de Andrade Souza
I use web2py at hipercenter.com (web software development, in portuguese, Brazil) On Tue, Feb 3, 2009 at 6:51 PM, mdipierro mdipie...@cs.depaul.edu wrote: does your company support web2py? or uses web2py? Let me know ASAP and I will list it in the new support and who pages. Massimo

[web2py:15864] Re: wsgi webfaction how-to

2009-02-04 Thread dhmorgan
Martin: confirm that is consistent across parameters__.py, -p flag, and httpd.conf; confirm that password is not 'None' in parameters file; no risk in removing the parameters_.py file and repeating the 'Create admin password' step in instructions; let me know how it goes Baron: you're

[web2py:15868] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-04 Thread mdipierro
Chuck, I found a minor problem wth pythontidy (with the pep specs actaully). abc\ncde gets replaced by abc cde now consider this working code exec(print 'abc\ncde') it gets replaced with exec(print 'abc cde') which does not work. Massimo On Feb 4, 8:18 am, Chuck Rhode

[web2py:15867] Offset for limitby?

2009-02-04 Thread voltron
Hi! how can one pass an offset to limitby? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this

[web2py:15865] Re: link raises exception in trunk (revision 703)

2009-02-04 Thread mdipierro
It seems pythontidy replaces abc\n with abc fixing it now. Massimo On Feb 4, 2:16 am, Markus Gritsch m.grit...@gmail.com wrote: Hi, when clicking on the [test] link in admin to run the unit-tests, the following traceback is issued: Traceback (most recent call last):   File

[web2py:15869] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-04 Thread Chuck Rhode
mdipierro wrote this on Wed, Feb 04, 2009 at 08:01:35AM -0800. My reply is below. now consider this working code exec(print 'abc\ncde') I don't believe that works to begin with. I assume you expect the output to be: abc cde ... but what I get from python.2.4.4 is: Traceback (most

[web2py:15858] Re: new web site

2009-02-04 Thread billf
I think the site is looking really good. My only suggestions are: - change the web2py in the header to a graphic (it needn't be a large file and would lose the steppy look of the large font text) - consider at some pont making more use of the white space to left and right of the main content

[web2py:15866] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-04 Thread Chuck Rhode
On Feb 3, 11:44 am, mdipierro mdipie...@cs.depaul.edu wrote: Thank you chuck for pythontidy and glad to have you on board. Do you want to be in change of pep8 compliance for web2py? Heh! PEP8 compliance is overrated. :-) Thanks, anyway. --~--~-~--~~~---~--~~

[web2py:15870] Re: new web site?

2009-02-04 Thread mdipierro
my server is returning content-language: cs ? strange. I do not set the content-language field. Massimo On Feb 4, 7:40 am, achipa attila.cs...@gmail.com wrote: Content-language shows 'cs' for me which breaks a few fancy addons I use, the 'accept language' header I send is en-us,en, so no idea

[web2py:15871] Re: new web site

2009-02-04 Thread mdipierro
Thank you. On Feb 4, 7:55 am, Timothy Farrell tfarr...@swgen.com wrote: see attached. ceej wrote: Looking good Massimo :) I did notice a spelling mistake on the download section which I think should read closed instead of clised (http://screencast.com/t/LVHpr3A5Mjw ) On Feb 3,

[web2py:15872] Re: Offset for limitby?

2009-02-04 Thread mdipierro
limitby=(10,30) means offset=10 and you want 30-10 records. On Feb 4, 8:57 am, voltron nhy...@googlemail.com wrote: Hi! how can one pass an offset to limitby? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:15873] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-04 Thread mdipierro
look into gluon/compileapp.py there is a string TEST_CODE that contains html='h2Testing controller %s.py ... done./h2br/\n' % request.controller pythontidy changed it to html='h2Testing controller %s.py ... done./h2br/ ' % request.controller This broke testing. It was working before.

[web2py:15874] Re: new web site?

2009-02-04 Thread achipa
Not the server, but web2py itself. View source shows: html xmlns=http://www.w3.org/1999/xhtml; xml:lang=cs lang=cs head meta http-equiv=content-type content=text/html; charset=utf-8 / meta http-equiv=content-language content=cs / meta name=author lang=cs content=None / meta

[web2py:15876] Re: Offset for limitby?

2009-02-04 Thread voltron
great! Thanks On Feb 4, 6:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: limitby=(10,30) means offset=10 and you want 30-10 records. On Feb 4, 8:57 am, voltron nhy...@googlemail.com wrote: Hi! how can one pass an offset to limitby? Thanks

[web2py:15877] Re: new web site?

2009-02-04 Thread mdipierro
oops. Thank you On Feb 4, 12:57 pm, Douglas Andrade dsandr...@gmail.com wrote: Hi Massimo, It is set in these files: grep -r 'lang=cs' * applications/examples/views/layout.html:html xmlns=http://www.w3.org/1999/xhtml; xml:lang=cs lang=cs applications/examples/views/layout.html:    meta

[web2py:15878] Re: new web site?

2009-02-04 Thread Peter
It IS much better than the old site... --- but I think the black rollover on the buttons is truly horrible (the .menu ul li a:hover { background: #00; } maybe try #CC...? ) --- and while it looks clean, I can't say it is especially hip; aren't the graphic design students at DePaul

[web2py:15879] companies (last call)

2009-02-04 Thread mdipierro
Do you want to add your company name to the new web2py support page? Last call. I am releasing 1.57 this tomorrow morning. It is free advertisement. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:15880] Re: new web site?

2009-02-04 Thread mdipierro
You are right. Everything should have a uniform look and feel. Massimo On Feb 4, 3:21 pm, Peter peter.kleyn...@gmail.com wrote: It IS much better than the old site... --- but I think the black rollover on the buttons is truly horrible (the .menu ul li a:hover { background: #00; } maybe

[web2py:15881] Re: new web site?

2009-02-04 Thread BearXu
but I think the Admin Interface should have a different face from other applications included in it. 2009/2/4 mdipierro mdipie...@cs.depaul.edu You are right. Everything should have a uniform look and feel. Massimo On Feb 4, 3:21 pm, Peter peter.kleyn...@gmail.com wrote: It IS much

[web2py:15882] Re: new web site?

2009-02-04 Thread mdipierro
hmmm. I agree in principle but that will confuse people because there are screenshots in the book. On Feb 4, 5:20 pm, BearXu bearx...@gmail.com wrote: but I think the Admin Interface should have a different face from other applications included in it. 2009/2/4 mdipierro

[web2py:15883] Re: new web site

2009-02-04 Thread Yannick
Great Job, I like the look and feel of this new website... Here are what i noticed: - From the Logo on the Home page, when clicking we are redirect to the old website (http://mdp.cti.depaul.edu/) - And also from the home page of this new site there is a froken link named None. Right before your

[web2py:15884] Re: new web site?

2009-02-04 Thread BearXu
Not a big problem:) 2009/2/5 mdipierro mdipie...@cs.depaul.edu hmmm. I agree in principle but that will confuse people because there are screenshots in the book. On Feb 4, 5:20 pm, BearXu bearx...@gmail.com wrote: but I think the Admin Interface should have a different face from other

[web2py:15885] Re: new web site

2009-02-04 Thread mdipierro
That will be fixed automatically when the old one gets replaced but thanks for reporting it. I am glad that people here like it more than I do. ;-) Massimo On Feb 4, 7:28 pm, Yannick ytchatch...@gmail.com wrote: Great Job, I like the look and feel of this new website... Here are what i

[web2py:15886] import and sync

2009-02-04 Thread INeedHelp
I have an syntac error(invalid syntec) at ! after (db[table].id for item in items: db((db[table].uuid==item.uuid)(db[table].id! = item.id)).delete() return dict(form=form) anyone can help? --~--~-~--~~~---~--~~ You received this message because

[web2py:15887] export table

2009-02-04 Thread INeedHelp
I have this fucntion which will drop down list all owner name and a submit button. after i click on e submit button, e screen will display all dogs below to e selected owner (from dropdownlist) def index(): records=db(db.dog.owner==request.vars.owner)\

[web2py:15888] Re: import and sync

2009-02-04 Thread mdipierro
looks like you have a space between ! and = in !=. Massimo On Feb 4, 9:22 pm, INeedHelp zhang.kil...@gmail.com wrote: I have an syntac error(invalid syntec) at ! after  (db[table].id for item in items:         db((db[table].uuid==item.uuid)(db[table].id! = item.id)).delete()        

[web2py:15889] How to disable registration in T3

2009-02-04 Thread ANDROSoft
Hello, I want disable registration on T3, how to do that ?? Exactly what i want is: registration disabled, authorization required for most pages, but some pages must be public, like Home or About Us... regards --~--~-~--~~~---~--~~ You received this message

[web2py:15890] Re: export table

2009-02-04 Thread mdipierro
http://www.hanselman.com/blog/TheContentDispositionSagaControllingTheSuggestedFileNameInTheBrowsersSaveAsDialog.aspx in web2py-ese response.headers['Content-Dispotion']='filename=%s' % filename On Feb 4, 9:50 pm, INeedHelp zhang.kil...@gmail.com wrote: I have this fucntion which will drop

[web2py:15891] Re: How to disable registration in T3

2009-02-04 Thread mdipierro
T3 is a web2py app so you edit it via admin. You can comment the register controller or replace it with something else. Via the wiki you can mark some pages as public and they will not require login. Massimo On Feb 4, 9:01 pm, ANDROSoft sebastian.woldan...@gmail.com wrote: Hello, I want

[web2py:15892] web2py 1.56 is OUT!!!

2009-02-04 Thread mdipierro
web2py 1.56 is out, including the new web site http://mdp.cti.depaul.edu/ It is the best release ever. You will probably not need T2 any more. New features: - Authentication (see new Documentation page) - Authorization (Role Based Access Controller) (see new Documentation page) - CRUD (see

[web2py:15893] Re: export table

2009-02-04 Thread INeedHelp
then how to put s=StringIO.StringIO() records.export_to_csv_file(s) response.headers['Content-Type']='text/csv' return s.getvalue() into records=db(db.dog.owner==request.vars.owner)\ .select(orderby=db.dog.title) form=SQLFORM(db.entry,fields=['owner']) On Feb 5, 1:16 

[web2py:15894] Re: import and sync

2009-02-04 Thread INeedHelp
I also have an error with items i have tried to solve but still cant solve db.import_from_csv_file(form.vars.data.file) # for every table for table in db.tables: # for every uuid, delete all but the most recentitems =

[web2py:15895] Re: export table

2009-02-04 Thread INeedHelp
and db.export_to_csv_file(s) is it possible to specify which table to export? i have tried db.table1.export_to_csv_file(s) but key error with export_to_csv_file(s) On Feb 5, 3:06 pm, INeedHelp zhang.kil...@gmail.com wrote: then how to put   s=StringIO.StringIO()