[web2py] Re: Access Control and Basic Authentication ?

2010-08-16 Thread David Marko
I use MS Windows specific:(its excerpt from Lotus Script) Set objhttp = CreateObject(MSXML2.ServerXMLHTTP) Set objXMLDocument = CreateObject (Msxml2.DOMDocument.3.0) Call objhttp.Open(POST,URL, False,settings.api_email(0),settings.api_password(0)) Things are working fine when authentication is

[web2py] Re: suggestions for web2py website

2010-08-16 Thread Timmie
Talking about the layout of the example app? I was talking of the www.web2py.com site.

[web2py] Re: Suggestions for the Basic Authentications

2010-08-16 Thread Timmie
Hello massimo, do you have any opinion about this? Suggestions? Thanks and have a nice week.

[web2py] Re: Translated sets

2010-08-16 Thread Fabio Alessandro Locati
Thanks :):) 2010/8/16, mdipierro mdipie...@cs.depaul.edu: They get updated only when executed. On 15 Ago, 17:21, Jonathan Lundell jlund...@pobox.com wrote: On Aug 15, 2010, at 6:48 AM, mdipierro wrote: IS_IN_SET(set,[T(x) for x in set]) How do the language files get updated for something

[web2py] Re: Access Control and Basic Authentication ?

2010-08-16 Thread Niphlod
I usually use curl and derivatives in order to help me/us knowing what's going on, could you please save somewhere the request object and past here it ?

Re: [web2py] Re: LazyT in a list...

2010-08-16 Thread Jason Brower
How silly of me... thanks. On Sun, 2010-08-15 at 06:47 -0700, mdipierro wrote: keywords = [str(T('Furniture')),str(T('Store')),str(T('')),str(T(''))] On Aug 15, 6:33 am, Jason Brower encomp...@gmail.com wrote: It seems I can't do this. keywords = [T('Furniture'),T('Store'),T(''),T('')]

[web2py] Re: Access Control and Basic Authentication ?

2010-08-16 Thread David Marko
U just downloaded cURL for windows and tried this. And its working ... so it not web2py issue but something on my side ... will try to look to request beeing sent. David On 16 srp, 10:25, Niphlod niph...@gmail.com wrote: I usually use curl and derivatives in order to help me/us knowing

[web2py] database variable scoping and visibility

2010-08-16 Thread david.waldrop
I am working on an application and have encountered an issue I cant seem to solve. I have an app based on the supplied scaffolding. It has a db variable defined in the model. The db is available to all the other controlers in the application without any problem. Additionally, in one of the

[web2py] Re: dynamic ux resizing

2010-08-16 Thread david.waldrop
Does this resize the browser window or the controls and layout contained in the window?? On Aug 10, 1:40 pm, Martin.Mulone mulone.mar...@gmail.com wrote: you can do that with jquery. for example on resize: jQuery(window).resize(function() {                 win_height =

[web2py] Re: Educational web app in web2py

2010-08-16 Thread ondrejs
I would be really interested in the application as well. --OS On 14. Aug, 16:11 h., mdipierro mdipie...@cs.depaul.edu wrote: For my class last quarter I made a system like you suggest although with differences. I will cleanup, and post it if there is interest. The idea was the following: -

[web2py] Re: WikiYou - Showcase

2010-08-16 Thread david.waldrop
Can you explain how you tested the url mapping in development. I have a similar architecture and am not sure how to test the url mapping using localhost. My Scenario is as follows: 1) A user is email link of http://mycommunity.mydomain.com. 2) They click on link. 3) The web2Py app requires login

[web2py] Re: Suggestions for the Basic Authentications

2010-08-16 Thread Martin.Mulone
I like some of the ideas. +1 from me On Aug 15, 1:29 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote: Hello, I recently checked out two sites created by Lasiaf using Basic authetication and Google authentication; I also just checked out the default welcome app. I miss the following

Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread Tom Atkins
+1 for a professional redesign of web2py.com - although it is a cosmetic thing I think you will be amazed how much more popular web2py will become with a stylish professional looking web2py.com. I'm willing to contribute money towards this if a fund is started. I know there are many excellent

Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread Albert Abril
I agree with Tom. I could apport a bit donation to redesign the main website, also the logo. Also, silly (and lovely) things like Gnome Love, or the Django Pony, makes attract new people to know the framework. On Mon, Aug 16, 2010 at 1:37 PM, Tom Atkins minkto...@gmail.com wrote: +1 for a

Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread rochacbruno
+1 for charlesproxy design style Sent from my iPhone On 16/08/2010, at 08:37, Tom Atkins minkto...@gmail.com wrote: +1 for a professional redesign of web2py.com - although it is a cosmetic thing I think you will be amazed how much more popular web2py will become with a stylish professional

Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread Tom Atkins
Forgot to say - a good aspect of the charlesproxy site design is the documentation - lots of information and subheadings but clean navigation. The excellent web2py book is nearly in this structure. If the design / foramatting matched the rest of web2py.com then :-) On 16 August 2010 13:01,

[web2py] Re: Not able to embed audio files in web2py

2010-08-16 Thread titan
Actually there was some issue with my browser plugin. It's working on my system too now . Thanks for your help. On Aug 15, 6:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: I looked the app you sent me. There are two links: - Play Music - Music Player I can click on either of them and it

[web2py] Web2Py Book - Controllers?

2010-08-16 Thread David
Where is the part which talks about how controllers work and are used in the web2py book? I see the DAL and Views but nothing on controllers is obvious here. Thanks, David

Re: [web2py] small bug in the online web2py Book

2010-08-16 Thread Mathieu Clabaut
Perhaps the use of doctest in documentation may allow somehow to test the doc See : http://www.doughellmann.com/PyMOTW/doctest/#External_Documentation On Mon, Aug 16, 2010 at 15:06, selecta gr...@delarue-berlin.de wrote: http://web2py.com/book/default/chapter/04?search=local_import 1.

[web2py] Re: Web2Py Book - Controllers?

2010-08-16 Thread NetAdmin
Look at Chapter 3, Overview ( 2n edition of the manual ) On Aug 16, 8:50 am, David digitalcry...@gmail.com wrote: Where is the part which talks about how controllers work and are used in the web2py book? I see the DAL and Views but nothing on controllers is obvious here. Thanks, David

[web2py] Re: Web2Py Book - Controllers?

2010-08-16 Thread David
Ok cool. Where can I find the 2nd Edition of the Web2Py book? I only see the 3rd edition online. On Aug 16, 10:22 am, NetAdmin mr.netad...@gmail.com wrote: Look at Chapter 3, Overview ( 2n edition of the manual ) On Aug 16, 8:50 am, David digitalcry...@gmail.com wrote: Where is the part

[web2py] Re: Web2Py Book - Controllers?

2010-08-16 Thread NetAdmin
I actually purchased a Hard-Copy edition of the Web2py Manual ( 2nd edition ) The online book does NOT seem to have page numbers, but look at the example below. The Controller myconroller.py contains 1 function called isprime() mycontroller.py # # mycontroller.py can contain multiple functions

[web2py] Re: Web2Py Book - Controllers?

2010-08-16 Thread David
Thanks for the example. I purchased one book a couple of months ago. I don't recall which version though. I will have to go to Lulu and see if I can get another copy of the PDF from their site. On Aug 16, 11:13 am, NetAdmin mr.netad...@gmail.com wrote: I actually purchased a Hard-Copy

[web2py] Getting key error on modifying the length of string in DAL

2010-08-16 Thread Narendran
Hello, In one of my tables, I want to increase the length of a string field. Hence I added a length parameter to the Field. Now, I am getting the following error: Traceback (most recent call last): File /usr/lib/web2py/gluon/ restricted.py, line 178, in restrictedexec ccode in environment

[web2py] Re: suggestions for web2py website

2010-08-16 Thread mikech
I will also donate On Aug 16, 5:26 am, Tom Atkins minkto...@gmail.com wrote: Forgot to say - a good aspect of the charlesproxy site design is the documentation - lots of information and subheadings but clean navigation. The excellent web2py book is nearly in this structure.  If the design /

[web2py] ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread mwolfe02
I'm trying to use routes_onerror, but requested_uri keeps coming through as None (subject of this e-mail is the query string from the redirect). I searched through the source code and could not find where this is supposed to be set. I stepped through using WinPDB and there is simply no entry in

[web2py] Scope of request object

2010-08-16 Thread Yarin
What is the scope of the 'request' object? Can it be accessed from something like a contrib module, or must it be passed in?

[web2py] Re: database variable scoping and visibility

2010-08-16 Thread mdipierro
Here is how I handled in the past. In a model file: def bydb(name=None): if name: session.db_name=name else: name=session.db_name commdb=DAL(name) commdb.define_table(.) commdb.define_table(.) commdb.define_table(.) return commdb and use it

[web2py] Re: Educational web app in web2py

2010-08-16 Thread mdipierro
give a couple of weeks to do some cleanup. Please remind me if you do not hear from me. On Aug 16, 5:40 am, ondrejs ondrej.s...@gmail.com wrote: I would be really interested in the application as well. --OS On 14. Aug, 16:11 h., mdipierro mdipie...@cs.depaul.edu wrote: For my class last

[web2py] Re: Suggestions for the Basic Authentications

2010-08-16 Thread mdipierro
1) profile removal unless I misunderstood you can do auth.settings.actions_disabled.append('profile') 2) federated authentication. there is one way you can do it. a) have multiple apps share the same database for auth and access eah othe session with

[web2py] Re: Getting key error on modifying the length of string in DAL

2010-08-16 Thread mdipierro
can you post the model? is this sqlite? did you also change the field type? On Aug 16, 11:39 am, Narendran gunanar...@gmail.com wrote: Hello, In one of my tables, I want to increase the length of a string field. Hence I added a length parameter to the Field. Now, I am getting the following

[web2py] Re: suggestions for web2py website

2010-08-16 Thread mdipierro
the problem we have to solve is: 1) how to get more people to provide input? 2) can we accept donations for this purpose if people then do not agree or like with the final work? I think we need some guidelines before we make a change like this. Aesthetic changes are hard for people to agree on.

[web2py] Re: Scope of request object

2010-08-16 Thread mdipierro
It has to be passed. The scope is models, controllers and views. On Aug 16, 12:52 pm, Yarin ykess...@gmail.com wrote: What is the scope of the 'request' object?  Can it be accessed from something like a contrib module, or must it be passed in?

Re: [web2py] Re: WikiYou - Showcase

2010-08-16 Thread Kenneth Lundström
Hello David, When I try and enter a URL like http://mycommunity.127.0.0.1:8000/mm_beta_1/default/index; where mycommunity is actually a parameter specifying which community The problem is that the browser does not understand a address like subdomain.127.0.0.1, you have to fool the

[web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread mwolfe02
Just tested this in my production environment (apache) and it works as expected. I'm having the problem in my dev environment which is running the built-in rocket server on windows. It looks like the Rocket server is not providing request_uri as apache with mod_wsgi does. If you just output the

[web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread mdipierro
This is important and should be fixed. we will look into it. Perhaps Jonathan who has worked on routes extensively can look into this. Massimo On Aug 16, 1:54 pm, mwolfe02 michael.joseph.wo...@gmail.com wrote: Just tested this in my production environment (apache) and it works as expected.  

[web2py] Re: Access Control and Basic Authentication ?

2010-08-16 Thread Niphlod
if you save request.headers somewhere I think it'll be easy to see the differences Niphlod On Aug 16, 11:02 am, David Marko dma...@tiscali.cz wrote: U just downloaded cURL for windows and tried this. And its working ... so it not web2py issue but something on my side ... will try to look

[web2py] Re: Access Control and Basic Authentication ?

2010-08-16 Thread David Marko
Cause a lack of time I gave up for the moment. I removed authentication requirement from my method and used security token as an parameter for my method. Using SSL for encrypted communication gives me enough security. But things are working fine as tested using cURL ... will investigate at the end

Re: [web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread Michael Wolfe
Massimo, I'm not sure anything can be done about it from within web2py (though Jonathan could certainly answer that better than I). It appears to be a limitation of the rocket web server. It may need to be taken up with the development team working on Rocket. Of course, if it's a problem with

Re: [web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread Jonathan Lundell
On Aug 16, 2010, at 11:56 AM, mdipierro wrote: This is important and should be fixed. we will look into it. Perhaps Jonathan who has worked on routes extensively can look into this. I'm a little in the dark on routes_onerror; I recall looking at it a while back when I noticed that its doctest

Re: [web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread Jonathan Lundell
On Aug 16, 2010, at 12:41 PM, Michael Wolfe wrote: I'm not sure anything can be done about it from within web2py (though Jonathan could certainly answer that better than I). It appears to be a limitation of the rocket web server. It may need to be taken up with the development team working

[web2py] Re: database variable scoping and visibility

2010-08-16 Thread david.waldrop
beautiful. it worked perfectly. Thank you. Again :-) On Aug 16, 2:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: Here is how I handled in the past. In a model file: def bydb(name=None):       if name: session.db_name=name       else: name=session.db_name       commdb=DAL(name)      

[web2py] Adding new column in GAE

2010-08-16 Thread Lasiaf
How do I add new columns to have default values in GAE for existing records? When I add new columns, existing records don't get updated with the new columns.

Re: [web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread Michael Wolfe
I tried with the query string (?id=1) and I still got requested_uri=None. In case I'm doing something non-standard that's contributing to the problem, here is my routes.py file (with comments and doctests removed): routes_in = ( ('/admin/$anything', '/admin/$anything'), ('/static/$anything',

[web2py] Seeking advice: web2py app project hosting and licensing

2010-08-16 Thread Michael Ellis
Hello all, I've been working for the past few months on a group collaboration and problem solving application and am almost ready to put up a beta version on GAE for folks to experiment with. Many thanks to Massimo and all of you regulars here for helping me up the learning curve! The app is

Re: [web2py] Re: ?code=400ticket=Nonerequested_uri=None

2010-08-16 Thread Michael Wolfe
It seems like including both might make it easier to troubleshoot routes.py errors. It's hard to anticipate which might be more valuable in error handling, but in debugging at least, more info = better. On Mon, Aug 16, 2010 at 3:57 PM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 16, 2010,

[web2py] Logging in web2py

2010-08-16 Thread Yarin
I've posted an updated slice with an in-depth treatment of logging in web2py. http://web2pyslices.com/main/slices/take_slice/91 Based on our earlier discussion http://groups.google.com/group/web2py/browse_thread/thread/d3b534113a904cd7/4d3f9f10d402210d?lnk=gstq=logging#4d3f9f10d402210d The

[web2py] Re: Suggestions for the Basic Authentications

2010-08-16 Thread Tim Michelsen
1) profile removal unless I misunderstood you can do auth.settings.actions_disabled.append('profile') Sorry, there is amisunderstanding: I would like to provide the user a option to completely remove his entry (identity) from the application (remove the corresponding entry from the user

[web2py] Re: suggestions for web2py website

2010-08-16 Thread Tim Michelsen
the problem we have to solve is: 1) how to get more people to provide input? My initial suggestion wa snot about design. It was about aggregating content related to web2py project activities

Re: [web2py] Logging in web2py

2010-08-16 Thread Jonathan Lundell
On Aug 16, 2010, at 1:31 PM, Yarin wrote: I've posted an updated slice with an in-depth treatment of logging in web2py. http://web2pyslices.com/main/slices/take_slice/91 I've got a patch pending that adds a (standard format) logging configuration file, and converts all of web2py's logging

[web2py] Re: Access Control and Basic Authentication ?

2010-08-16 Thread mdipierro
could it be a problem with escaping basic auth parameters? On Aug 16, 2:20 pm, David Marko dma...@tiscali.cz wrote: Cause a lack of time I gave up for the moment. I removed authentication requirement from my method and used security token as an parameter for my method. Using SSL for encrypted

[web2py] Re: Adding new column in GAE

2010-08-16 Thread mdipierro
You have to loop and update them. On Aug 16, 3:05 pm, Lasiaf fai...@altlimit.com wrote: How do I add new columns to have default values in GAE for existing records? When I add new columns, existing records don't get updated with the new columns.

[web2py] Re: Suggestions for the Basic Authentications

2010-08-16 Thread mdipierro
I understand now. This action is like completly remove my account from the website == the opposite of register. This should be easy to do. I am traveling this week but I can do it the next. Please remind me.

[web2py] Re: WikiYou - Showcase

2010-08-16 Thread Lasiaf
also don't forget, if you will be running on port 8000 you should be accessing it at http://davidscommunity.community.com:8000 Also I think it's not supported to use wildcards in linux. And I usually use the same url except for .com to .dev in my hosts for most of my dev stuff. On Aug 16, 5:06 

[web2py] Re: WikiYou - Showcase

2010-08-16 Thread Lasiaf
kenneth is correct. You have to edit your /etc/hosts in linux and c: \windows\system32\drivers\etc\hosts in windows, then add those new lines, I usually practive doing like this 127.0.0.1 www.mysite.dev 127.0.0.1 sub.mysite.dev like using original domain and using .dev as extension. I also believe

[web2py] Re: Seeking advice: web2py app project hosting and licensing

2010-08-16 Thread Christopher Steel
Hi Mike, Sounds like an interesting project. We generally stick with GNU but in some cases incorporate MIT stuff (and the accompanying license) when it makes sense for our clients. The biggest deciding factor for us is our target market, but at the moment we have no clients who seem to be overly

[web2py] Re: Logging in web2py

2010-08-16 Thread Yarin
@Jonathan- I'd like to see what you've got- keep me updated On Aug 16, 5:03 pm, Jonathan Lundell jlund...@pobox.com wrote: On Aug 16, 2010, at 1:31 PM, Yarin wrote: I've posted an updated slice with an in-depth treatment of logging in web2py.

[web2py] Tagging Plugin Help

2010-08-16 Thread david.waldrop
I am having a problem with some customization of the tagging plugin. I downloaded and installed in a test app and all is well. In my application I need to manipulate the data tables. More specifically I need one set of tagging tables (t tables) for each of my partitioned databases. This

Re: [web2py] Re: Logging in web2py

2010-08-16 Thread Jonathan Lundell
On Aug 16, 2010, at 5:25 PM, Yarin wrote: @Jonathan- I'd like to see what you've got- keep me updated The patch is here, if anyone would like to review it. http://web.me.com/jlundell/filechute/logging.zip Most of the changes are to use a specific logger instead of making a generic logging

[web2py] Re: development mode for web2py?

2010-08-16 Thread firedragon852
You are right. It is actually very simple after reading your hints. Thanks for a great web framework! On Aug 16, 12:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: I think it is much simpler than people assume here. I have seen many users not Python experts, comeing from compiled languages,