[web2py] Re: GAE Caching and Views

2011-11-28 Thread johntynan
Thanks everyone for your excellent help! I posted an account of enabling caching with web2py on GAE in a blog post here: http://opensourcebroadcasting.blogspot.com/2011/11/web2py-caching-and-google-app-engine.html All the best, JT

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
Hi Massimo, The code is a lot and will take a while to extract it but basically the issue is - when I am using redirect the page is showing correct but in browser address bar I see the old link. basically the redirect link is set here: auth.settings.register_next = '/myapp/default/myinfo' and

[web2py] Re: How to rewrite reset_password link in the Email send for password retrieval?

2011-11-28 Thread Constantine Vasil
This stays in the address filed after resetting the password: /default/user/reset_password/1322549383-5e551ac2-7a60-4ab0-989f-143b350d8151 This auth.settings.reset_password_next = '/login' redi

Re: [web2py] Re: Introducing Web2py Powered Pastebin

2011-11-28 Thread Phyo Arkar
COOLNESS! Nice and clean UI too! On Sun, Nov 27, 2011 at 11:01 AM, qasimak...@gmail.com wrote: > Nice one... > > > On Sun, Nov 27, 2011 at 5:29 AM, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> :-) >> >> On Nov 26, 5:39 pm, Farsheed Ashouri >> wrote: >> > You can also give other

[web2py] How to rewrite reset_password link in the Email send for password retrieval?

2011-11-28 Thread Constantine Vasil
The email I receive has this link: /**default/user/reset_password/**1322547476-0ee03b96-5410-4a61-** be1c-504d86bdc1ab I want the email to send the following link: /reset_password/**132254747

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Massimo Di Pierro
Can you show us your code? On Nov 28, 11:45 pm, Constantine Vasil wrote: > I set the > auth.settings.register_next = '/myapp/default/myinfo' > > After Registration the browser was redirected to myinfo screen > but at the browser address bar there is: /#/, I expect to be: >  '/myapp/default/myinfo

[web2py] Redirection does not sets the browser address bar

2011-11-28 Thread Constantine Vasil
I set a registration for in my front page and: auth.settings.register_next = '/myapp/default/myinfo' After Registration the browser was redirected to myinfo screen but at the browser address bar there is: /#/, I expect to be: '/myapp/default/myinfo' What is wrong?

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
I set the auth.settings.register_next = '/myapp/default/myinfo' After Registration the browser was redirected to myinfo screen but at the browser address bar there is: /#/, I expect to be: '/myapp/default/myinfo' Now when I fill out the form and hit Submit the line: if form.process(formname='my

[web2py] Re: Google Analytics wreaking havoc with SSL

2011-11-28 Thread Massimo Di Pierro
pushing to trunk with some edit. Please give it a try. On Nov 28, 10:17 pm, Dave wrote: > I'm not 100% positive which version of web2py my original views/ > layout.html came from, but I thought I'd share an issue and what I > have found to fix it. > > My site is entirely ssl. > > The default code

[web2py] Re: How to implement the simpler possible Sign Up system: email address/password?

2011-11-28 Thread Constantine Vasil
Hi Anthony, Yes I don't want to mess it up - the most important - I don't want 'username'. I want the email to be the username. How to do that?

[web2py] Google Analytics wreaking havoc with SSL

2011-11-28 Thread Dave
I'm not 100% positive which version of web2py my original views/ layout.html came from, but I thought I'd share an issue and what I have found to fix it. My site is entirely ssl. The default code for google analytics (I only modified the account ) seems to be old according to the GA page. Occasi

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Anthony
No, you handle CSS the usual way, via CSS rules in CSS static files that you link in the page (or via

[web2py] Re: How to implement the simpler possible Sign Up system: email address/password?

2011-11-28 Thread Anthony
See http://web2py.com/book/default/chapter/08#Customizing-Auth. Just the fields labeled "required" in the example are required, so you should be able to remove first and last name. Note, don't mess with the framework code -- you can define your custom auth_user table in your app. If you want to

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
I can add this as a configuration: auth.messages.register_button = 'Sign Up' Can I add a CSS style to this button as well?

[web2py] Re: Refresh select widget via Ajax before form submission

2011-11-28 Thread Anthony
On Monday, November 28, 2011 9:37:01 PM UTC-5, monotasker wrote: > > This would solve a couple of problems in a project I'm working on which > involves a fairly complex data-entry form. E.g., When the user selects an > option from widget A, this triggers a controller that filters the options > i

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Anthony
You can do that via CSS. The submit button (of any form) is in a div with id='submit_record__row', so you can use 'submit_record__row#input[type=submit]' as the CSS selector, and specify a background color. Anthony On Monday, November 28, 2011 10:00:10 PM UTC-5, Constantine Vasil wrote: > > Hi

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
Hi Anthony, How to change the background color of auth.messages.register_button? Regards, --Constantine

[web2py] Refresh select widget via Ajax before form submission

2011-11-28 Thread monotasker
I'm working on a plugin based on the select-or-add 'slice' from web2py slices and I've run into a basic problem: Is there any way to refresh the options in a select box from the db without a) submitting the form or b) losing the user input from other form fields? In a SQLFORM, the select-or-add

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
auth.settings.formstyle = 'divs' did it. Thank you!

[web2py] How to implement the simpler possible Sign Up system: email address/password?

2011-11-28 Thread Constantine Vasil
After implementing the full auth with web2py, now I would like to implement the simpler possible Sign Up system. I need the users to enter just email address (sued as a username) and a password, that is it. No explicit Username and no First Name, Last Name. I will ask them for this info later wh

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Constantine Vasil
Than you, Anthony!

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Anthony
On Monday, November 28, 2011 6:19:18 PM UTC-5, Constantine Vasil wrote: > > >make sure the function is called (and therefore the form displayed) only > for non-logged in users. > > This I do but the message next to > Verify Password: "please input your password again" > is showing up when the fo

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Anthony
Got it. But if you just want to experiment to see what kind of HTML is generated by forms, helpers, etc., you can always just create a simple test application (not using GAE). Things are generally a little trickier with GAE. On Monday, November 28, 2011 6:39:00 PM UTC-5, Constantine Vasil wrote

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread Anthony
To be clear: routers = dict( BASE = dict( default_application = 'myapp', default_controller = 'default', default_function = 'index' ) ) On Monday, November 28, 2011 8:01:49 PM UTC-5, Anthony wrote: > > Yes, default_application is an option of the parameter-based sy

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread Anthony
Yes, default_application is an option of the parameter-based system -- you add it to the BASE router dictionary (just like default_controller and default_function). Anthony On Monday, November 28, 2011 6:40:54 PM UTC-5, Constantine Vasil wrote: > > but I am using the parameter system which don'

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread lyn2py
Constantine, Use Anthony's method (post above) and you should be able to resolve your issue. Comment out your current parameter system and try it On Nov 29, 7:40 am, Constantine Vasil wrote: > but I am using the parameter system which don't has this option.

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread Constantine Vasil
but I am using the parameter system which don't has this option.

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Constantine Vasil
bugger projects = bigger projects ;) (there is a unintentional sublime message here)

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Constantine Vasil
Hi Anthony, Yes I learned the shell system and it is excellent. But when I added the GAE dependencies it broke up. There is no way to tell it where google.appengine.ext is located to use the GAE classes. I spend a lot of time to figure out but it is not worth partly because via the browser bigge

[web2py] Re: GAE and 'cannot set memcache' error

2011-11-28 Thread Constantine Vasil
It is in GAE production. Things are always different on the cloud. Everything can go down. > (occasionally the memcache service does go down) This confirms it. The issue is big because it happens on Register or Login form and my users cannot do it. I use memcache a lot but if it is down there has

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
>make sure the function is called (and therefore the form displayed) only for non-logged in users. This I do but the message next to Verify Password: "please input your password again" is showing up when the form builds up. It does not have to show. It seems some code is executed when showing

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Anthony
You might try setting auth.settings.formstyle = 'divs'. You can also use the usual custom form functionality -- the second password field widget is form.custom.widget.password_two. Note, I think the auth.register() function does some automatic redirecting if the user is already logged in, so yo

[web2py] Re: fedora, pip, web2py, virtualenv, and mysql

2011-11-28 Thread Christopher Steel
To change db backends you need to edit the db.py file and that should do it.

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
Thank I did it but there is this issue: Got a message next to Verify Password: "please input your password again" How to prevent this and also how to place "please input your password again" under Verify Password input field?

[web2py] Re: simulate a sub-domain from localhost?

2011-11-28 Thread Pepe Araya
I think that you can make it through the HOSTS file of your system 127.0.0.1:8000 site1.web2py.local 127.0.0.1:8000 site2.web2py.local

[web2py] Re: Book typo

2011-11-28 Thread Andrew
Thanks. On Nov 28, 7:10 pm, Johann Spies wrote: > Inhttp://www.web2py.com/book/default/chapter/06?search=form.process > > ret = db(query).vaidate_and_update(field='value') > > should probably be > > ret = db(query).validate_and_update(field='value') > > Regards > Johann > -- > Because experienc

[web2py] Re: How place the standard Register form in my front page?

2011-11-28 Thread Anthony
auth.register() produces a registration form -- so you could return that to the view and use it as is, or use it to generate a custom form layout. For the other two links, look at the output of auth.navbar() (which is included in the header of the 'welcome' app). See http://web2py.com/book/defa

[web2py] computed field: update and images

2011-11-28 Thread Pepe Araya
Hi!! I have 3 computed fields that call a "resize_image" function to make 3 versions of a uploaded image. The definition of one of these fields: Field('foto_portada_detalle', 'upload', uploadfolder=request.folder+'static/uploads/actividades', compute=lambda r: resize_image(r['foto_portada'], (20

[web2py] How place the standard Register form in my front page?

2011-11-28 Thread Constantine Vasil
I want to place the standard Register form in my front page. the front page will have a text Join Us, below the standard Register form plus the links to Forgot your username? Forgot your password? : How to do that? mydomain.com front page: ===

Re: [web2py] Python27.dll?

2011-11-28 Thread Vasile Ermicioi
download web2py source distribution and use http://www.py2exe.org/ to create a web2py for python2/7

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Constantine Vasil
No It didn't work - got the same error.

[web2py] Re: GAE + Web2py

2011-11-28 Thread howesc
email on GAE: * note that the sender *must* be an email address that at least has access to the GAE console. so you must "invite" the sender, even if it is noreply. check your logs you will see errors if this is your problem. * in db.py: mail.settings.server = 'gae' # your SMTP server mail

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Constantine Vasil
Here is what I do have in *db.py* already: mail=auth.settings.mailer mail.settings.server = settings.email_server are already set up from 0.py where I have: settings.email_server = 'gae' so they are already set up. Please not again that on GAE logs I have this information which is referring to *

[web2py] Re: GAE and 'cannot set memcache' error

2011-11-28 Thread howesc
SDK or production environment? how are you calling it? if production, is it an intermittent failure? (occasionally the memcache service does go down)

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Bruno Rocha
You have two options def user(): from gluon.tools import Mail mail = Mail() mail.settings.server = "gae" * auth.settings.mailer = mail # needs to bind mail to auth* return dict(form=auth(), auth=auth) or in models (or anywhere) mail=auth.settings.mailer mail.settings.s

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Constantine Vasil
would this do it? def user(): from gluon.tools import Mail mail = Mail() mail.settings.server = "gae" return dict(form=auth(), auth=auth)

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Anthony
You might find it useful to run web2py in a shell so you can experiment and see what objects and HTML are generated with forms. python web2py.py -S myapp/default -M -N That will start a Python shell in the environment of the default.py controller of myapp (including running the models). You can

Re: [web2py] Re: Problems with forms and firefox

2011-11-28 Thread Bruno Rocha
I am trying to think it is a problem with web2py session vars in current.session.

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Bruno Rocha
On Mon, Nov 28, 2011 at 5:34 PM, Constantine Vasil wrote: > If I add settings.**server = 'gae' in the 0.py, would it be available > globally to Mail()? > No. every variable defined in models are only global to another models, controllers and views. -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Python27.dll?

2011-11-28 Thread mikech
I know that we can run the source version under 2.7 by specifying the version at the command line. Is it possible to replace the Python25.dll in the binary distribution with the 2.7 dll and have it use this instead? Also where would I find this file?

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread Anthony
Add default_application = 'mycoolapp' to the BASE router to remove the appname from the URL. On Monday, November 28, 2011 2:56:31 PM UTC-5, Constantine Vasil wrote: > > >myapps = ['app'] # assuming your app is called "app" > > if my app name is "mycoolapp" it usually is the domain I host it: > my

Re: [web2py] sub-domain in routers?

2011-11-28 Thread Constantine Vasil
Thank you Antony - parameter system is what a real world will use so definitely it needs more examples.

[web2py] Re: Implementing tornado chat server with web2py

2011-11-28 Thread Anthony
Are you aware of comet_messaging.py (http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_messaging.py) -- it uses Tornado? Here's a three part tutorial on using it with Socket.IO for a chat application: http://greg.thehellings.com/2011/04/web2py-websockets-and-socket-io-part-i-b

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread Constantine Vasil
>myapps = ['app'] # assuming your app is called "app" if my app name is "mycoolapp" it usually is the domain I host it: mycoolapp.com so I want to access it like: mycoolapp.com/contact_us mycoolapp.com/terms etc. How to do that efficiently? I am hard coding the link to redirect to "default" co

[web2py] Re: Implementing tornado chat server with web2py

2011-11-28 Thread Massimo Di Pierro
Look into this: http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_messaging.py I would go with tornado or gevent. They seems much simpler then twisted and more in line with the web2py keep-it-simple phylosophy. Massimo On Nov 28, 1:06 pm, Saurabh Kumar wrote: >  Hi, > > We are

Re: [web2py] sub-domain in routers?

2011-11-28 Thread Anthony
On Monday, November 28, 2011 2:31:16 PM UTC-5, Constantine Vasil wrote: > > and that is great! we need it in the book! It's in router.example.py (http://code.google.com/p/web2py/source/browse/router.example.py), which is linked directly from the book. But yes, the parameter-based rewrite system

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Constantine Vasil
Probably the name was was changed in trunk, my code used to work in the stable version. If I add settings.server = 'gae' in the 0.py, would it be available globally to Mail()?

Re: [web2py] sub-domain in routers?

2011-11-28 Thread Constantine Vasil
and that is great! we need it in the book!

Re: [web2py] sub-domain in routers?

2011-11-28 Thread Bruno Rocha
Look http://code.google.com/p/web2py/source/browse/router.example.py#23 domains = { "domain.com" : "app", "x.domain.com" : "appx", }, On Mon, Nov 28, 2011 at 5:07 PM, Constantine Vasil wrote: > Is it possible to have sub-domain in routers? > > webapp2 has this

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Bruno Rocha
Look here: http://code.google.com/p/web2py/source/browse/gluon/tools.py#327 This is inside the Mail.send method: if not isinstance(self.settings.server, str): raise Exception('Server address not specified') it refers as *self.settings.server.* In Python 'self' is the convention to refer the i

[web2py] Implementing tornado chat server with web2py

2011-11-28 Thread Saurabh Kumar
Hi, We are planning to implement an omegle.com like chatting server. We have decided to use webpy for the same. Which out of tornado or twisted framework would be advisable? Is there any other framework especially suitable for this particular application? Thanks Saurabh

[web2py] sub-domain in routers?

2011-11-28 Thread Constantine Vasil
Is it possible to have sub-domain in routers? webapp2 has this capability.

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Constantine Vasil
if you look at the code at /gluon/tools.py", line 2235, in request_reset_password it is *settings.server*, not *mail.settings.server. *Also if set it up in 0.py it is available globally I suppose? * * The line 327-328: is looking for *settings.server.* if not isinstance(self.* settings.server*,

[web2py] Instructions: Setting up Eclipse+PyDev+GAE SDK, Windows

2011-11-28 Thread Constantine Vasil
I hope this will save time to others wich struggle with setting up Eclipse+PyDev+GAE SDK, Windows environment and ot be able to step up in * default.py* with the PyDev debugger. Using GAE, setting up a development environment is very tricky but I managed to set it up. That is what I came out wit

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Constantine Vasil
It depends from the development environment. I am working with GAE and it is very tricky to debug when using GAE. Controller will be fine for me after I generate the HTML to see what it is doing. To understand it how it works we need more examples in the doc. Before that I need to work with the

Re: [web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Bruno Rocha
Are you sure you have from gluon.tools import Mail mail = Mail() mail.settings.server = "gae" ?? On Mon, Nov 28, 2011 at 4:27 PM, Constantine Vasil wrote: > I using the trunk version, GAE. In my models/0.py I have *settings. > email_server = 'gae'.* > When I try to use *request_reset_password *

[web2py] GAE: request_reset_password - Exception: Server address not specified

2011-11-28 Thread Constantine Vasil
I using the trunk version, GAE. In my models/0.py I have *settings. email_server = 'gae'.* When I try to use *request_reset_password * *on Email send I got: "*Exception: Server address not specified" The line 327-328: is looking for *settings.server.* if not isinstance(self.* settings.server*, str

Re: [web2py] Error in custom_import and Pyforum

2011-11-28 Thread mikech
Thanks, this must be it. I'm running under 2.5 using the web2py standard binary distribution. Mike

[web2py] Re: Adding custom fields or virtual fields to rows object

2011-11-28 Thread Anthony
Ideally, you would only need to select the fields actually need to calculate the virtual fields. On Monday, November 28, 2011 12:47:48 PM UTC-5, villas wrote: > > >> The virtualfield is computed after the select. It cannot be something > you want to select from the db. > > The unexpected behavio

[web2py] fedora, pip, web2py, virtualenv, and mysql

2011-11-28 Thread David Watson
I've installed web2py via pip in a virtualenv with the --no-site- packages option: virtualenv --no-site-packages env pip install web2py which gives me version 1.98.2. I added a VERSION file in the root and this got web2py running. I copied admin and my application, which depends on mysql, into

[web2py] Re: Adding custom fields or virtual fields to rows object

2011-11-28 Thread villas
>> The virtualfield is computed after the select. It cannot be something you want to select from the db. The unexpected behaviour is this: 1) I select all the fields and the framework adds the virtual fields for me. 2) I select some of the fields but the framework does NOT add the virtual f

Re: [web2py] Error in custom_import and Pyforum

2011-11-28 Thread Jonathan Lundell
On Nov 27, 2011, at 6:57 PM, mikech wrote: > Hi: I downloaded Pyforums in order to study some code in what looks like a > very well done application. When I try to look at the default index view I > get the following error: > > Traceback (most recent call last): > File "gluon/restricted.py"

[web2py] Fwd: How disable date widget?

2011-11-28 Thread viniciusban
I found this thread in archives and I have some thoughts about this theme. 1) I need only one date field in just one of my tables to use SQLFORM.widgets.string.widget. All the others, I'd like to use the widget. How can I do this? Anyway, I think that if I set db.my_table.my_date_field.widget = S

[web2py] Re: Error in custom_import and Pyforum

2011-11-28 Thread Anthony
Are you using the Windows binary or the source version with your own Python installation? On Monday, November 28, 2011 12:08:04 PM UTC-5, mikech wrote: > > I'm on Windows and the json library is there, but I will take Massimo's > advice and replace it. > > Thanks! > > Mike >

[web2py] Re: Error in custom_import and Pyforum

2011-11-28 Thread mikech
I'm on Windows and the json library is there, but I will take Massimo's advice and replace it. Thanks! Mike

[web2py] Re: some ideas on built-in emphasis on client-side processing for web2py

2011-11-28 Thread Ross Peoples
Out of curiosity, what is the benefit of having the browser "compile" the view for display? Web2py's template engine is very fast. I could understand building the view in Python code (like Pyjamas or Qooxdoo), since they provide "widgets" that make interacting with an application better. But I

Re: [web2py] Re: Access remote oracle database

2011-11-28 Thread Humberto Ferreira da Luz Junior
I solved the problem in cx_oracle mailing list. That was happening because the Oracle Client wasn't installed (I was using only the SQL Developer to access the remote database). I installed the oracle client (instantclient-basic-windows.x64-11.2.0.2.0), set the ORACLE_HOME variable and added it to

[web2py] Re: SQLFORM.factory and custom HTML form radio boxes

2011-11-28 Thread Anthony
You can do custom formatting without hand-coding all the HTML -- see http://web2py.com/book/default/chapter/07#Custom-forms. On Monday, November 28, 2011 11:17:44 AM UTC-5, Constantine Vasil wrote: > > Assuming [condition] is evaluated dynamically as the code runs > through SQLFORM.factory > def

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Anthony
On Monday, November 28, 2011 11:19:52 AM UTC-5, Constantine Vasil wrote: > > Now question remains about the design side, it seems directly in > HTML is easier, you can see it visually how it would be rendered. > It's not really display logic, though -- to me it makes more sense for the controlle

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Constantine Vasil
> the default can be a lambda function if needed. That explains it - it would be evaluated dynamically. Yes, this is powerful. Now question remains about the design side, it seems directly in HTML is easier, you can see it visually how it would be rendered.

[web2py] Re: SQLFORM.factory and custom HTML form radio boxes

2011-11-28 Thread Constantine Vasil
Assuming [condition] is evaluated dynamically as the code runs through SQLFORM.factory definition, yes, this part will do it. Field('primary_email_choice', ..., default='Home' if [condition] else 'Work') But I need custom formatting. Formatting directly in HTML is easier.

[web2py] Re: multi-tenant app tables

2011-11-28 Thread GoldenTiger
Are you talking about domains on a remote server? On 28 nov, 12:39, Nik Go wrote: > I've already set the request_tenant field and each domain can only see the > data they create. > > However, from the localhost, I can only see auth_user data, and data > created from localhost. How do I allow acce

[web2py] Re: simulate a sub-domain from localhost?

2011-11-28 Thread GoldenTiger
You can do it my friend I have my DNS servers configurated of way that I can use all local subdomains I need. http://www.local.web2py.es/ http://sub2.local.web2py.es/ http://acme.local.web2py.es:8000/ Instead 127.0.0.1, I use real subdomains resolved at 127.0.0.1 :P > ping www.local.web2py.es >

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread lyn2py
Thank you very much! Here's the feedback, I've tried both your suggestions. Massimo's solution works if there is only default.py. Other controller routes are not possible. Anthony's solution is very neat. Although you can't have a controller going by the name of a function in default.py. I think

Re: [web2py] Re: Problems with forms and firefox

2011-11-28 Thread Bruno Rocha
It happens even if I remove the ckeditor widget. and happens also on the edit article form. Denes found the problem but I cant understand why the problem is only with firefox. http://zerp.ly/rochacbruno Em 28/11/2011 13:02, "DenesL" escreveu: > Seems to be a problem with the encoding/decoding

[web2py] Re: Quick Question about Wiki Tutorial: .default attribute for db foreign-key field

2011-11-28 Thread Anthony
> > For the Wiki Tutorial, In the show(): controller in default.py there > is the following statement: > > db.comment.page_id.default = this_page.id > > I can't quite figure out what it means. Are we setting the default > value of the page_id field for the comment table to be 'this_page.id"? > How

[web2py] Fwd: [PSF-Members] Python.org redesign RFP: Request for Comments

2011-11-28 Thread Massimo Di Pierro
Anybody interested? Begin forwarded message: > From: Jesse Noller > Date: November 28, 2011 8:54:38 AM CST > To: PSF-Members , pydotorg > Subject: [PSF-Members] Python.org redesign RFP: Request for Comments > > Dear Members/Pydotorg staff: > > Attached to this email, and below this message (

[web2py] Re: Problems with forms and firefox

2011-11-28 Thread DenesL
Seems to be a problem with the encoding/decoding of multi-part form data. The POST source shows: Content-Type: multipart/form-data; boundary=---265001916915724 Content-Length: 464 -265001916915724 Content-Disposition: form-data; name="comment_tex

[web2py] Re: SQLFORM.factory and custom HTML form radio boxes

2011-11-28 Thread Anthony
This conditional custom HTML seems unnecessary -- why can't you just set the default value of the field conditionally in the controller? Field('primary_email_choice', ..., default='Home' if [condition] else 'Work') Anthony On Sunday, November 27, 2011 11:52:21 PM UTC-5, Constantine Vasil wrote

[web2py] Re: How to preselect radio check box with checked="yes" using SQLFORM.factory?

2011-11-28 Thread Anthony
On Sunday, November 27, 2011 11:24:32 PM UTC-5, Constantine Vasil wrote: > > HI Anthony, > > Thank you! > > This is useful information not available in the book. > Well, that specific example isn't in the book, but the use of the 'default' arg to Field() is documented, and it mentions that it is

[web2py] Re: Web2py based STARTUP: Linkfindr.com

2011-11-28 Thread lyn2py
Kuba, if you don't mind, can you share how much time you took to build your website? On Nov 28, 8:36 pm, Kuba Kucharski wrote: > Hi, > > Long time no see. Some of you may remember me, I was very active here :) > This is my profilehttp://experts4solutions.com/e4s/default/expert/21 > I am really gr

[web2py] cancel upload leftovers

2011-11-28 Thread thodoris
I have a form that has an upload field. If i add a cancel button to the form that for example redirects to 'index' the cancel is stopped but what if i wanted to cancel the upload from an app?? I am asking this cause i am uploading a file from an iphone app to the database but when i cancel that p

[web2py] Re: could use some help ... mobile admin

2011-11-28 Thread Massimo Di Pierro
No On Nov 28, 1:48 am, Angelo Compagnucci wrote: > Great! > > I'll work on it a soon as possible! > > Are you using the Auto-initialization of form elements ? > > Thanks! > > 2011/11/28 Massimo Di Pierro : > > > > > > > > > > > I could use some help. In trunk there is code for mobile admin. > > >

[web2py] Re: could use some help ... mobile admin

2011-11-28 Thread Massimo Di Pierro
yes. On Nov 28, 8:11 am, Ross Peoples wrote: > Nice job. I'll be testing soon. By the way: Is @mobilize documented in the > book? I looked through it briefly but didn't see any mention of it.

[web2py] Re: Web2py based STARTUP: Linkfindr.com

2011-11-28 Thread Massimo Di Pierro
wow looks great! On Nov 28, 6:36 am, Kuba Kucharski wrote: > Hi, > > Long time no see. Some of you may remember me, I was very active here :) > This is my profilehttp://experts4solutions.com/e4s/default/expert/21 > I am really gratefull for help of Web2py community. Without you, guys, this > woul

[web2py] Re: how to keep response.headers after redirect

2011-11-28 Thread Massimo Di Pierro
Anthony's response suggests a better way to solve your problem yet I can see people wanting to forward headers. This is possible. redirect(URL(...)) is the same as raise HTTP(303,location=URL(...)) the named arguments of HTTP are headers so you can do: raise HTTP(303,location=URL(...)

[web2py] Re: Access remote oracle database

2011-11-28 Thread Massimo Di Pierro
This is a cx_Oracle issue. I suggest you contact the author. He may have a mailing list. On Nov 28, 4:17 am, Humberto Ferreira da Luz Junior wrote: > I tried also with python 2.5, but without success. > > Importing cx_oracle directly in a python script I got this error:>>>import > cx_Oracle > >

[web2py] Re: routes.py to remove "default" from url

2011-11-28 Thread Anthony
Look at router.example.py in the /web2py root folder. I think this should do it: routers = dict( BASE = dict( default_controller = 'default', default_function = 'index' ) ) Goes in routes.py, which goes in the /web2py root folder. Anthony On Monday, November 28, 2011 9:

[web2py] Re: multi-tenant app tables

2011-11-28 Thread Massimo Di Pierro
if condition: db._request_tenant = 'ignore_tenant' On Nov 28, 5:39 am, Nik Go wrote: > I've already set the request_tenant field and each domain can only see the > data they create. > > However, from the localhost, I can only see auth_user data, and data > created from localhost. How do I all

[web2py] Re: RESTful API error: "no matching pattern"

2011-11-28 Thread Massimo Di Pierro
Have you tried http://127.0.0.1/myapp/default/api/person.json without the "s" On Nov 28, 5:19 am, Oliver Lade wrote: > I've been following the documentation regarding RESTful web services > (very cool), and it mostly works except for one annoying thing. Every > time I try a URL that's supposed

  1   2   >