[web2py] Re: bug compileapp.py

2011-09-21 Thread Corne Dickens
Fixed, Thanks Corne On 22 sep, 03:45, Massimo Di Pierro wrote: > Should now be fixed. pelase check it. Thanks > > massimo > > On Sep 21, 7:03 am, Corne Dickens wrote: > > > Hi, > > > In compileapp.py line 317 (compile_views) there is a regex that > > matches ^[\w/]+\.\w+$, but the mobile views

[web2py] instant press: pingback support?

2011-09-21 Thread Gour-Gadadhara Dasa
Hello! Does Instant Press have support for pingback? Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Ray (a.k.a. Iceberg)
Hi there, My 3 cents. 1. Ignore those people advocating a "backward-incompatible" web2py 2.0. They did not even provide a reasonable must-have backward- incompatible feature wishlist. Shall we release a backward- incompatible version of web2py just for, being backward-incompatible? Nonsense. 2.

[web2py] Re: How to use SQLFORM.grid

2011-09-21 Thread tomt
Hi, Can SQLFORM.grid be used to display legacy tables, specifically a table that doesn't have a field named 'id', and if so, how? The following is an example of a table I'm currently using in the latest trunk. Dbadmin displays it successfully, but web2py throws an exception when I try to display

[web2py] Re: How to trigger generic views

2011-09-21 Thread Anthony
On Wednesday, September 21, 2011 7:38:12 PM UTC-4, Aaron wrote: > > That did the trick. Thanks muchly! I was using request.extension = > 'json' but I knew that was a hack. > > I can see how enabling generic views could be a security risk; I can't > see myself using them very frequently except to

Re: [web2py] Re: what about web2py 2.0?

2011-09-21 Thread Mariano Reingart
That's way It may be a good idea for a 2.0 release. If there will be cleanups, that is one of the most critical issues that makes large models and apps unfeasible and prevents the migration of many legacy apps, I think it would have a bigger user base than gis, fts or custom databases. IMHO Best

[web2py] Re: bug compileapp.py

2011-09-21 Thread Massimo Di Pierro
Should now be fixed. pelase check it. Thanks massimo On Sep 21, 7:03 am, Corne Dickens wrote: > Hi, > > In compileapp.py line 317 (compile_views) there is a regex that > matches ^[\w/]+\.\w+$, but the mobile views are called > view.mobile.html (instead of the normal view.html). > > Now when you

[web2py] Help Getting Cron Task to run

2011-09-21 Thread Lennon
I'm running web2py locally with Windows 7 and live on a Linux Ubuntu server and I haven't been able to get my cron job to run in either. My crontab looks like this: */1 * * * * root *autoemail/send_autoemails and my function works fine when called manually. It also ends with db.commit(). Other

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Massimo Di Pierro
There is still lots of place where having the an integer primary key is critical. On Sep 21, 6:12 pm, Mariano Reingart wrote: > Could we merge normal and keyed tables? > Fix definitively the table definition order issue? > > Regards > > Mariano Reingarthttp://www.sistemasagiles.com.arhttp://reing

Re: [web2py] Re: Applications sharing auth tables - problem

2011-09-21 Thread Martín Mulone
Please if it's a bug: Open a ticket. 2011/9/21 Anthony > Yes, the loop seems to happen when you have a custom auth_user table (even > if it's exactly the same as the standard auth_user table definition). > > Anthony > > On Wednesday, September 21, 2011 7:20:54 PM UTC-4, rochacbruno wrote: > >> O

[web2py] Re: How to trigger generic views

2011-09-21 Thread Aaron
That did the trick. Thanks muchly! I was using request.extension = 'json' but I knew that was a hack. I can see how enabling generic views could be a security risk; I can't see myself using them very frequently except to test the output of a particular action, so perhaps I'll add response.generic_

Re: [web2py] Re: Applications sharing auth tables - problem

2011-09-21 Thread Anthony
Yes, the loop seems to happen when you have a custom auth_user table (even if it's exactly the same as the standard auth_user table definition). Anthony On Wednesday, September 21, 2011 7:20:54 PM UTC-4, rochacbruno wrote: > > On Wed, Sep 21, 2011 at 7:01 PM, Massimo Di Pierro > wrote: > >> I a

Re: [web2py] Re: Applications sharing auth tables - problem

2011-09-21 Thread Bruno Rocha
On Wed, Sep 21, 2011 at 7:01 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I am not aware of a CAS bug? tell us more. Look this thread: https://groups.google.com/forum/#!topic/web2py/FhtokyNZT7k/discussion CAS enters in redirect loop.

[web2py] Re: How to trigger generic views

2011-09-21 Thread Anthony
Please see https://groups.google.com/d/msg/web2py/SF7oKIWWPSE/m98V_tfd-V0J.

Re: [web2py] Re: what about web2py 2.0?

2011-09-21 Thread Mariano Reingart
Could we merge normal and keyed tables? Fix definitively the table definition order issue? Regards Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com On Wed, Sep 21, 2011 at 3:36 PM, TheSweetlink wrote: > +1 DAL support for Document-Graph database OrientDB and than

[web2py] Re: Ubuntu and web2py

2011-09-21 Thread pbreit
Could be. I don't have much Apache experience but thought that admin returned a 200 OK and "Admin is disabled because insecure channel" for non-secure connections.

[web2py] How to trigger generic views

2011-09-21 Thread Aaron
I'm in the early stages of writing a web2py application, and I want to retrieve the data returned by one of my actions in JSON format. As I understand it, the documentation seems to say that if I navigate to ../[application]/[controller]/[action].json then the dictionary returned by my action shou

[web2py] Re: Ubuntu and web2py

2011-09-21 Thread Omi Chiba
+1 to Richard. I did the one step deployment last Friday so I remember. On Sep 21, 5:12 pm, Richard Vézina wrote: > I am pretty sure it is : > > Forbidden > > You don't have permission to access /init/appadmin on this server. > -- > Apache/2.2.14 (Ubuntu) Server at 127

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
I got it !! It's working beautifully. When the first list is selected, remove the second list rendered by view and dynamically create it from server side. On Sep 21, 3:57 pm, juanduke wrote: > Hi Omi: > > I dont get want you're trying do, but may this could help you with the > show/hide action

[web2py] Re: online book

2011-09-21 Thread Massimo Di Pierro
Was added then removed here: http://code.google.com/p/web2py/source/diff?spec=svned44c73152b2dad48cba5737d78681ccc1f24a8a&r=ed44c73152b2dad48cba5737d78681ccc1f24a8a&format=side&path=/gluon/globals.py Now I remember why... we had a discussion on web2py-developers whether to include it or not becaus

Re: [web2py] Re: Ubuntu and web2py

2011-09-21 Thread Richard Vézina
I am pretty sure it is : Forbidden You don't have permission to access /init/appadmin on this server. -- Apache/2.2.14 (Ubuntu) Server at 127.0.0.1 Port 80 It I use https it works I can access the appadmin interface. After tell browser that I accepted the risk, since

Re: [web2py] Re: Ubuntu and web2py

2011-09-21 Thread pbreit
I'm not sure that's an SSL problem. It looks like an Apache issue, not Web2py. Maybe permissions? http://httpd.apache.org/docs/1.3/misc/FAQ.html#forbidden http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/

Re: [web2py] Re: Ubuntu and web2py

2011-09-21 Thread Richard Vézina
Of course you should have created the self signed SSL certificat when web2py ubuntu setup script ask to do it... Richard On Wed, Sep 21, 2011 at 5:19 PM, Richard Vézina wrote: > http*s*://127.0.0.1/youapp > > Then it should work > > Richard > > On Wed, Sep 21, 2011 at 4:33 PM, Web2Py Freak >

[web2py] Re: online book

2011-09-21 Thread Massimo Di Pierro
That is very strange. I remember committing it long ago. Somehow got reverted. I will hunt it down and push back tonight. On Sep 21, 2:46 pm, nick name wrote: > This is quite amazing. Thanks to everyone involved for the great work, and > especially Massimo for masterfully co-ordinating everything

[web2py] Re: Applications sharing auth tables - problem

2011-09-21 Thread Massimo Di Pierro
I am not aware of a CAS bug? tell us more. On Sep 21, 1:41 pm, Bruno Rocha wrote: > There is CAS, but it actually has a bug.

Re: [web2py] Re: Ubuntu and web2py

2011-09-21 Thread Richard Vézina
http*s*://127.0.0.1/youapp Then it should work Richard On Wed, Sep 21, 2011 at 4:33 PM, Web2Py Freak wrote: > i used apache and its working but when i try to enter the admin to > edit my site it gives me this : > > Forbidden > > You don't have permission to access /admin/default/index on this >

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread juanduke
Hi Omi: I dont get want you're trying do, but may this could help you with the show/hide actions: I dont know if is possible to put some javascript code in the controller. Something like: response.js ="someJSFunctionInTheView();" #this js function show/hides element s in the view If you use t

[web2py] Re: Ubuntu and web2py

2011-09-21 Thread Web2Py Freak
i used apache and its working but when i try to enter the admin to edit my site it gives me this : Forbidden You don't have permission to access /admin/default/index on this server. Apache/2.2.17 (Ubuntu) Server at 127.0.1.1 Port 80

[web2py] Re: Are we ready to launch 1.99.1?

2011-09-21 Thread nick name
On Wednesday, September 21, 2011 4:16:07 PM UTC-4, guruyaya wrote: > > This is what I got. No fix, for now. > Say you have a datetime field. The database adapter will save it as a > TIMESTAMP sqlite type. > Now if you decide you just want the date, you don't care for the time. > You change th

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
It's working !!! when it's loaded: After the item changed: After Submit:

[web2py] Re: web2py/DAL support for "increasing number"?

2011-09-21 Thread nick name
That actually makes a lot more sense than my dumb idea And seems to be the way to go. Yes, I keep a "update number" field on each record, which is essential to track which records changed since the last check (you could have a "changed" bit instead, which is reset on sync -- but that makes

[web2py] Re: Are we ready to launch 1.99.1?

2011-09-21 Thread guruyaya
This is what I got. No fix, for now. Say you have a datetime field. The database adapter will save it as a TIMESTAMP sqlite type. Now if you decide you just want the date, you don't care for the time. You change the field to be a date col. But SQLite still use the TIMESTAMP field type. At this poin

[web2py] Re: web2py/DAL support for "increasing number"?

2011-09-21 Thread Anthony
On Tuesday, September 20, 2011 5:42:32 PM UTC-4, nick name wrote: > > I need to have a number that generally increases with every request made to > the service. The only requirement is that it is strictly monotonous - I > don't need a specific start, and I don't care if there are any holes. > > P

Re: [web2py] Re: Design custom layout

2011-09-21 Thread Furqan Rauf
Thanks On Wed, Sep 21, 2011 at 1:09 PM, pbreit wrote: > Take a close look at the "layout.html" view file in the "welcome" > application. -- *-Furqan Rauf* *Do you love your creator? Love your fellow-beings first. -Prophet Muhammad * *http://www.amway.com/furqanrauf*

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread nick name
Python does, in a way ... if you use a depcreated feature, you get a deprecation warning when running the code. And, the purpose of such a change is to optimize support/googlegroup traffic -- this specific issue comes up every single week since it was introduced.

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread nick name
time.time or datetime.datetime.utcnow() both give you a number that is independent of timezone (and datetime.utcnow() is supposed to be available as request.utcnow, although that still isn't the case). However, as I pointed out, there is still a chance that this can go backwards in time on a pr

[web2py] Re: online book

2011-09-21 Thread nick name
This is quite amazing. Thanks to everyone involved for the great work, and especially Massimo for masterfully co-ordinating everything without breaking backward compatibility Small remark: (posted it in another thread, but repeating here in case it was not visible enough) request.utcnow is men

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread pbreit
Do any other frameworks (that break compatibility frequently) do anything like that? This is the only compatibility issue I can recall and it should not have had much of an impact on production systems (generics are typically used primarily for development).

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread pbreit
Isn't there a time that doesn't change with daylight savings? Like time.time or time.gmtime?

[web2py] Re: problem with updating Form with writable=False Fields

2011-09-21 Thread pbreit
I guess that could be a bug unless the assumption is that it's just updating it with the same value.

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
Wow! str(model.id) did the trick !! On Sep 21, 2:21 pm, juanduke wrote: > Hi Omi: > > I think you must have a error in this line: > > result += " > Just because you are trying to concat a String with a Long. And not because > the model.id is wrong. > Try using str() function like this: > > result

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread juanduke
Hi Omi: I think you must have a error in this line: result += " some text maybe showing id too:"+ *str(*model.id*)* +"" or this one, more pythonic: result += " some text maybe showing id too:%s" % (model.id, model.id) Another thing I use to do, is print variables that I'm using, just to see

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
Juan, I kind of understand what you suggested. OK, so I need to generate the html in controller and pass to view by XML(). I'm trying to get value for model.id in controller but I cannot do this same way on view (maybe because it's not dictionary object..?) Do you know how I can get the value ?

[web2py] Re: problem with updating Form with writable=False Fields

2011-09-21 Thread Alex
@pbreit: yes, I know. I'm using some capabilities (e.g. login) but I want to create some forms on my own to customize it to my needs. I don't see how the extra_fields solves my problem (btw, is this explained somewhere in the official documentation? I couldn't find it). The table definition itself

Re: [web2py] Re: Applications sharing auth tables - problem

2011-09-21 Thread Bruno Rocha
There is CAS, but it actually has a bug.

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread TheSweetlink
+1 DAL support for Document-Graph database OrientDB and thank you very much for your work Massimo + contributors.

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread nick name
> the key fact is not request.now, or request.utcnow but the fact that you can define your table to update these fields automatically so you can forget about them Thank you for your thoughtful answer, but that wasn't what I was asking (apologize for the misunderstanding), and if you actually re

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread nick name
I hate these kind of hacks. In this case, a good solution (because of bandwidth and everything) would be: "give me all the updates since 1 hour _before_ what I think is the most up-to-date update)", and that would cover clocks going backwards up to 1 hour. And the cost would be in bandwidth,

[web2py] Re: Are we ready to launch 1.99.1?

2011-09-21 Thread guruyaya
I've just D/L vcms to try. It works well on 1.98.2, but not throws an exception on the home page. Here's the ticket details: Traceback (most recent call last): File "/home/guruyaya/web2py/gluon/restricted.py", line 194, in restricted exec ccode in environment File "/home/guruyaya/web2py/ap

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread Vasile Ermicioi
you are a strange man, the key fact is not request.now, or request.utcnow but the fact that you can define your table to update these fields automatically so you can forget about them db.define_table('your_table', Field('field1'), Field('field2'), Field("added_on", 'datetime', default

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread nick name
As this issue keeps popping up every week, how about a mechanism to cope with this kind of change in the future: In the wizard generated code, add a first line that calls UpdatedForWeb2PyVersion('1.97.1', true) (Where the 1.97.1 is the version that the wizard was run in, and 'true' means rai

Re: [web2py] Re: Are there any Lotus Notes developers using web2py?

2011-09-21 Thread Marin Pranjić
I would take this approach: http://www.sqlteam.com/article/more-trees-hierarchies-in-sql On Wed, Sep 21, 2011 at 7:23 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I see the need for this. I need to think bout how to do it in a > backward compatible way and in a way that works on

[web2py] Re: Design custom layout

2011-09-21 Thread pbreit
Take a close look at the "layout.html" view file in the "welcome" application.

[web2py] Re: Applications sharing auth tables - problem

2011-09-21 Thread pbreit
Has anyone implemented "single sign on" functionality? That might be a good utility to have available.

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread pbreit
Are you not able to code around the rare instance that the time goes backward?

[web2py] Re: Are we ready to launch 1.99.1?

2011-09-21 Thread nick name
I've just done an hg pull -u: changeset: 2435:8cbfa1244549 tag: tip user:mdipierro@massimo-di-pierros-macbook-2.local date:Wed Sep 21 00:17:23 2011 -0500 summary: sys.exit(0), thanks Praneeth The "README" file mentions request.utcnow, but the code doesn't. So either

Re: [web2py] web2py/DAL support for "increasing number"?

2011-09-21 Thread nick name
Using request.now is _guaranteeed_ to go backwards once a year in most of the world (when going back from daylight saving time to standard time; the date this happens differs between countries). request.utcnow, which I mentioned in my original post (and appears in the readme, but for some reaso

Re: [web2py] Applications sharing auth tables - problem

2011-09-21 Thread Bruno Rocha
On Wed, Sep 21, 2011 at 2:14 PM, Cliff wrote: > auth.define_tables() as you already have tables created, you need: auth.define_tables(migrate=False)

Re: [web2py] Design custom layout

2011-09-21 Thread Bruno Rocha
{{response.files.append(URL(...))}} <- Load aditionall css/js here {{include 'web2py_ajax.html'}} <- dont forget to include it here {{block header}} {{=response.title <- you can use blocks to create dynamic layouts {{end}} {{include}} <- your views will be merged here {{block foote

Re: [web2py] Cascading Drop Down Lists with Ajax

2011-09-21 Thread juanduke
Hi Omi: I think, that you need a jQuery Load http://api.jquery.com/load/ something like in the view: jQuery.load( "url to echo function", {params, like category id, if necesary}, '#jquery selector of second combo' ) In the echo function: validate that you get a valid category id do a sel

[web2py] Re: bug compileapp.py

2011-09-21 Thread Massimo Di Pierro
will fix this tonight stay tuned. On Sep 21, 11:41 am, Corne Dickens wrote: > Nope, > > In trunk there still is this regex match for the views. > (for models / controllers there is .+\.py, so maybe .+\.\w+ would be > better for the views?) > > On 21 sep, 17:53, Massimo Di Pierro > wrote: > >

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Massimo Di Pierro
True. In fact 1.99 will resolve this problem but some people may jump from 1.98 to 1.100 (pardon, 2.00) without passing through 1.99. On Sep 21, 11:20 am, pbreit wrote: > Yeah, I suspect it's doing an alphabetic comparison in which case 100 is > less than 99.

[web2py] Re: Are there any Lotus Notes developers using web2py?

2011-09-21 Thread Massimo Di Pierro
I see the need for this. I need to think bout how to do it in a backward compatible way and in a way that works on GAE without joins. Please open a ticket about it. On Sep 20, 5:03 pm, António Ramos wrote: > *  The Web2py security methods put Notes ACL to shame?* > Can you explain why you think t

[web2py] Re: GrooverWiki seems to be broken

2011-09-21 Thread Massimo Di Pierro
I suspect you store something into a text field than changed the type to blob. web2py expects blob data to be store b64encoded. If it was stored when the field was a text, it was not encoded. On Sep 21, 11:12 am, Guy Nesher wrote: > sqlite, is that an issue ? > > On Sep 21, 4:55 pm, Massimo Di Pi

[web2py] Applications sharing auth tables - problem

2011-09-21 Thread Cliff
I am trying to implement a common login across multiple applications. It occurred to me that the applications needed to share the auth tables, so I migrated from sqlite to Postgresql. The migration appears to be working with my Purchasing application. I pruned all the application table defs from

[web2py] Re: password storage with per-user salt

2011-09-21 Thread Dave
Well clearly I've sparked plenty of discussion. I am working on this to fit my app need. Once I have a working model that doesn't break other applications that use the default hashing and CRYPT functions I'll post my work. As others have commented, the typical way for storing the password would

[web2py] Design custom layout

2011-09-21 Thread Furqan Rauf
Hey guys, I am planning on designing a custom layout for web2py, can you guys tell me where should I start from? Thanks -- *-Furqan Rauf* *Do you love your creator? Love your fellow-beings first. -Prophet Muhammad * *http://www.amway.com/furqanrauf*

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread juanduke
Thanks for the reply! Very clear explanation! So, I'll keep my .load files, for future customization of each components. Thanks a lot!

Re: [web2py] Re: password storage with per-user salt

2011-09-21 Thread pbreit
I think if you were going to do client side hashing you would send out a unique "secret" on each request. I don't think this is necessary at this time. At least SSL gives those who want to be secure the option.

[web2py] Re: bug compileapp.py

2011-09-21 Thread Corne Dickens
Nope, In trunk there still is this regex match for the views. (for models / controllers there is .+\.py, so maybe .+\.\w+ would be better for the views?) On 21 sep, 17:53, Massimo Di Pierro wrote: > I believe this is fixed in trunk and the nightly built please check > it. > > On Sep 21, 7:03 am,

[web2py] ldap_auth auto-registration : auth_user.first_name, last_name and email not inserted.

2011-09-21 Thread Pivert
Hi, The ldap_auth module correctly auto-register the new user, but the following fields are empty : auth_user.first_name auth_user.last_name auth_user.email Additionally, I would like to fetch some additional details from LDAP (Active Directory) such as Manager, or phone number... How can I achi

Re: [web2py] Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
That looks good too but I think all I need is to post 'model' or 'index' function. I'm not familiar with jQuery but something like this... http://api.jquery.com/jQuery.post/

Re: [web2py] jQuery in views

2011-09-21 Thread Michael L. Cobb
Bruno: Thanks. I was hoping it was that easy. Mike On 9/21/2011 9:32 AM, Bruno Rocha wrote: in the view {{extend 'layout.html'}} $(document).ready(function () { # your code goes here }); On Wed, Sep 21, 2011 at 10:34 AM, Mike Cobb > wrote: I

[web2py] Re: I can't update language files

2011-09-21 Thread Anthony
On Wednesday, September 21, 2011 11:07:43 AM UTC-4, Samuel Mac wrote: > > As far as i know, on Windows, web2py uses his own python interpreter. > If I install this package, it will autodploy all the files on my > Python 2.7 instalation folder. Is there another way? > If you have your own version

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread pbreit
The "generic views" are now disabled by default for security reasons. The "welcome" scaffolding enables them on automatically on local page requests only. If you want them available in production (bad idea) you need to add a line of code. Here are the options: Enabled all the time: response.ge

[web2py] Re: sidebar : how to customize

2011-09-21 Thread pbreit
I don't know what the implications are but you can adjust the left-sidebar width in base.css: #left_sidebar { width: 160px; float:left; display: none; }

[web2py] Re: purpose of "ABOUT" file in route?

2011-09-21 Thread Anthony
On Wednesday, September 21, 2011 11:57:03 AM UTC-4, Massimo Di Pierro wrote: > > odd. Will cleanup tonight. > I think it's just on his system, not in the actual web2py distribution or repo. Anthony

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread juanduke
I've found the paragraph of the book, that I readed when I'm saying: "...I read somewhere in the book..." [http://www.web2py.com/book/default/chapter/13#Components] If no .load view is specified, there is a generic.load that renders the dictionary returned by the action without layout. It works

[web2py] Re: problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread Anthony
This was changed due to a security risk. You now have to explicitly enable generic views by specifying response.generic_patterns somewhere -- it is a list of globs matching controller/function.extension. To enable all generic views, add this in a model file: response.generic_patterns = ['*'] #

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread pbreit
There's a precedent. Linux just went to 3.0 on a minor update. https://lkml.org/lkml/2011/7/21/455

Re: [web2py] Cascading Drop Down Lists with Ajax

2011-09-21 Thread Bruno Rocha
Mey be this: http://dev.s-cubism.com/plugin_lazy_options_widget On Wed, Sep 21, 2011 at 1:13 PM, Omi Chiba wrote: > I have two drop down list. They have foreign key so they're parent-child > structure. I want user to pick category from first list, which will execute > onchange event to dynamical

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread pbreit
Yeah, I suspect it's doing an alphabetic comparison in which case 100 is less than 99.

[web2py] Re: Are there any Lotus Notes developers using web2py?

2011-09-21 Thread Cliff
You do have to decorate the functions, but I regard that as just a part of creating the function. > *in web2py its impossible!* Not really. You just have to supply the code. It's not trivial, but it's not rocket science, either. Heck, there might even by a pyslice or plugin that does the job.

Re: [web2py] Re: password storage with per-user salt

2011-09-21 Thread Michele Comitini
Doing as in the article above, if x compromises the server x can login since the hashed password *are the secret* . To do things right the hash of a secret arriving from the client must be computed every time on the server before comparison. SSL hides the secret so it's a good choice. mic 2011/

[web2py] Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
I have two drop down list. They have foreign key so they're parent-child structure. I want user to pick category from first list, which will execute onchange event to dynamically update second list. So far, I can confirm onchange event is working to return a string value by calling 'echo' fun

[web2py] Re: GrooverWiki seems to be broken

2011-09-21 Thread Guy Nesher
sqlite, is that an issue ? On Sep 21, 4:55 pm, Massimo Di Pierro wrote: > which db server? > > On Sep 21, 7:19 am, Guy Nesher wrote: > > > > > > > > > Just tried to do a fresh install of GrooverWiki, the install works > > fine but when I try to run it I get the following error : > > > Traceback

Re: [web2py] Re: password storage with per-user salt

2011-09-21 Thread pbreit
That should be "for those who do not use ssl".

Re: [web2py] Re: password storage with per-user salt

2011-09-21 Thread pbreit
Sending passwords over SSL should be sufficient in most cases. Hashing the password on the client side is slightly better and would provide better protection for those who use SSL (wouldn't want to encourage that, though). I think the only immediate need, though, is support for per-password sal

Re: [web2py] VCMS 1.1 Released - a simple CMS developed with web2py

2011-09-21 Thread juanduke
+1 for fully english demo. Will be appreciated :)

[web2py] problem changing version 1.95.1 to version 1.98.2

2011-09-21 Thread juanduke
Hi all: I think this topic is related with backward compatibilty discussed in another thread, but anyway. The situation: I've developed an app using web2py src version 1.95.1, in this app I load a form, from the view calling web2py_component using extension ".load" Something like this: #View:

Re: [web2py] jQuery in views

2011-09-21 Thread pbreit
What Bruno replied should work as long as your layout includes the line "{{include 'web2py_ajax.html'}}". web2py.ajax.html loads Jquery.

[web2py] Re: purpose of "ABOUT" file in route?

2011-09-21 Thread Massimo Di Pierro
odd. Will cleanup tonight. On Sep 21, 6:34 am, Jim Gregory wrote: > I noticed in my installation of web2py the largest file (about 7MB on > my system) is a binary file in the web2py root directory named > "ABOUT".  What is the purpose of this file, and can it be removed?  My > apps seems to run O

[web2py] Re: GrooverWiki seems to be broken

2011-09-21 Thread Massimo Di Pierro
which db server? On Sep 21, 7:19 am, Guy Nesher wrote: > Just tried to do a fresh install of GrooverWiki, the install works > fine but when I try to run it I get the following error : > > Traceback (most recent call last): >   File "/var/web2py/gluon/restricted.py", line 192, in restricted >    

[web2py] Re: online book

2011-09-21 Thread Massimo Di Pierro
It is a lot of stuff but it doable in 2-3 weeks. Massimo On Sep 21, 7:13 am, Ross Peoples wrote: > That's a LOT of stuff to document, but it's worth it. All of those great > features in just a short time. Everyone has been doing an awesome job!

[web2py] Re: bug compileapp.py

2011-09-21 Thread Massimo Di Pierro
I believe this is fixed in trunk and the nightly built please check it. On Sep 21, 7:03 am, Corne Dickens wrote: > Hi, > > In compileapp.py line 317 (compile_views) there is a regex that > matches ^[\w/]+\.\w+$, but the mobile views are called > view.mobile.html (instead of the normal view.html).

[web2py] Re: VCMS 1.1 Released - a simple CMS developed with web2py

2011-09-21 Thread Massimo Di Pierro
:-) On Sep 21, 4:25 am, chinakr wrote: > VCMS is a simple Content Management System developed with web2py. The > version 1.1 of VCMS released at Sep. 21st 20011. The update included: > article list pagination, RSS subscription, and query by exam date. > > We enjoy developing with web2py a lot. If

Re: [web2py] Re: password storage with per-user salt

2011-09-21 Thread David J
Why double salt. That's the point of SSL. we should only be concerned with application level details not transport On Sep 21, 2011 10:27 AM, "Anthony" wrote: > Yes, I think the salting and hashing we're discussing is meant to protect > the passwords once on the server (i.e., if the server/database

Re: [web2py] Re: Ubuntu and web2py

2011-09-21 Thread Richard Vézina
Also, sometimes when installing app into "prod" or "staging" web2py installation applications folder you need to restart Apache to make sure everything work correct... Richard On Wed, Sep 21, 2011 at 11:41 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Just try and complete to make a

[web2py] Re: Ubuntu and web2py

2011-09-21 Thread pbreit
The script should work. What happens when you try to access your site? Do you get an error message? WSGI is generally better. Why do you want to use FastCGI?

Re: [web2py] Re: Ubuntu and web2py

2011-09-21 Thread Richard Vézina
Just try and complete to make a working installation and then try something else... That what I suggest you. Apache and web2py work pretty well under ubuntu and are maybe easier to deploy because a lot of poeple are using this config so the installation is automated by the script. If as you said

  1   2   >