[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
I thought the problem was related only to webfaction web2py or uwsgi, but now, it seems that there is another issue. I am not getting the same behavior in different browsers! Chromium, gives me a double logo and a right panel log in, but Firefox doesn't, it simply shows back the original logi

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-10-07 Thread Pepe Araya
hi! the demo site is down :(

Re: Re : Re: [web2py] Re: fluxflex

2011-10-07 Thread kralin
I've been testing the web2py-for-fluxflex github forking approach and it works very well. however there is one problem when I deploy to fluxflex all the views that goes through generic.html gets 404 error. I'm using the 1.99.2 web2py version. maybe this is related to routes, but I don't have acces

Re: Re : Re: [web2py] Re: fluxflex

2011-10-07 Thread Marin Pranjić
https://groups.google.com/forum/#!msg/web2py/26g9XA_0ZXE/4yiIHs5FivkJ http://groups.google.com/group/web2py/browse_thread/thread/485ee82885963d21?hl=en I guess it is related to security issue described above. Regards, Marin 2011/10/7 kralin > I've been testing the web2py-for-fluxflex git

Re: Re : Re: [web2py] Re: fluxflex

2011-10-07 Thread Marin Pranjić
https://groups.google.com/forum/#!msg/web2py/26g9XA_0ZXE/4yiIHs5FivkJ http://groups.google.com/group/web2py/browse_thread/thread/485ee82885... It is related to security issue described above. Regards, Marin On Oct 7, 11:26 am, kralin wrote: > I've been testing the  web2py-for-fluxflex github

[web2py] Re: mailing list and web2py apps

2011-10-07 Thread Gour-Gadadhara Dasa
On Fri, 23 Sep 2011 05:22:43 -0300 Bruno Rocha wrote: > 2. Try to find some contact, forum, blog, discussion, repository if > the app For now I did: 2a. Create issue(s) on app's (Instant Press) tracker (bitbucket). ;) Sincerely, Gour p.s. Probably those issues are not so difficult to fix,

[web2py] Re: fluxflex

2011-10-07 Thread faultyzebra
Thank you for web2py for fluxflex!

Re: [web2py] mailing list and web2py apps

2011-10-07 Thread Martín Mulone
I'm considering number eleven :P 2011/9/23 Bruno Rocha > I Guess there is no list policy, but I recommend this order. > > 0. Perform a search on group trying to find people running same issue > 1. Try to contact the Author of the app directly > 2. Try to find some contact, forum, blog, discussio

[web2py] Re: Many to many query with two left joins - how to do in Web2py?

2011-10-07 Thread Cliff
Grazie. This unlocks a door. I thought I had to repeat the call to left() same as the SQL. On Oct 6, 5:13 pm, Massimo Di Pierro wrote: > Here is your SQL: > > SELECT purchase_orders.issue_date, purchase_orders.number, > products.name > FROM purchase_orders LEFT JOIN  purchase_order_products ON

[web2py] logged in user

2011-10-07 Thread Web2Py Freak
Dear All , How Can I get the name of the user who is logged in my website ??

Re: [web2py] logged in user

2011-10-07 Thread Massimiliano
Take a look at the table auth_events -- Massimiliano Il giorno 07/ott/2011, alle ore 14:34, Web2Py Freak ha scritto: > Dear All , > > How Can I get the name of the user who is logged in my website ??

[web2py] Re: GAE with database

2011-10-07 Thread Massimo Di Pierro
Yes. Web2py supports this already. On Oct 7, 12:53 am, ramkrishan bhatt wrote: > Hello > Is'nt it good for web2py framwork also. can be use > thishttp://googlecode.blogspot.com/2011/10/google-cloud-sql-your-database...

[web2py] Re: mailing list and web2py apps

2011-10-07 Thread Gour-Gadadhara Dasa
On Fri, 7 Oct 2011 09:23:18 -0300 Martín Mulone wrote: > I'm considering number eleven :P /me hopes it's just a good joke... Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croati

[web2py] Re: logged in user

2011-10-07 Thread Anthony
The db.auth_user record of the current logged in user is accessible via auth.user, and the ID of that user is accessible in auth.user_id (as well as auth.user.id). Both auth.user and auth.user_id return None if the user is not logged in. For the name, auth.user.first_name and auth.user.last_name

[web2py] Re: logged in user

2011-10-07 Thread Web2Py Freak
thnx guys its working now ..

[web2py] Re: Sending Email Under Linux

2011-10-07 Thread horridohobbyist
That theory don't fly. I have a Seaside app running on a Linux server at a remote datacenter, and it uses the same 'smtp.broadband.rogers.com:25'. Richard On Oct 6, 7:29 am, MidGe wrote: > "If 'smtp.broadband.rogers.com:25' works under Windows, why the hell > > wouldn't it work under Linux?? Oh

Re: [web2py] Re: new feature - need help

2011-10-07 Thread Richard Vézina
Yeah I tried it... I said that need == because at least with the yesterday trunk single = didn't returns any result... By a la Access I mean the query builder that let you write SQL query by not writing SQL (you pick the table, then cross check the field, etc.)... I think the only difference is th

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-10-07 Thread Omi Chiba
Pepe, It's up now. Thank you for letting me know. My web2py version was back to 1.98.2 and all app was gone... I don't know why. I deployed the new version 1.99.2 and re-create the app from slice. It's actually pretty easy ! On Oct 7, 4:00 am, Pepe Araya wrote: > hi! the demo site is down :(

[web2py] Re: Delete plugin will also delete default theme

2011-10-07 Thread Omi Chiba
Thank you, I found the problem. views/layout.html is REPLACED when the layout plugin installed and stay as is even you uninstall the plugin, which means the original one is not restored. I tried the following but others cause the same problem. http://web2py.com/layouts/static/plugin_layouts/plug

[web2py] Re: Delete plugin will also delete default theme

2011-10-07 Thread Christopher Steel
that is is precisely... The current recommended way of creating layout plugins works fine when installing plugins but does leave you "naked" if you decide to uninstall all layout plugins or uninstall the last layout plugin installed. To get a better understanding of why this is true you can se

[web2py] Request same function on .change event.

2011-10-07 Thread annet
I have a registration form with a drop down list showing services, depending on the service the user registers for a custom form should display. Normally the user follows a link and the service is set based on request.args(0): form=SQLFORM(db.register) form.vars.service=request.args(0) I customiz

[web2py] Re: spinejs with Web2py

2011-10-07 Thread Carl
the latest version of spine (1.0.0 at spinejs.com) fixed the bugs and json can be retrieved. time to crack on!

[web2py] Sharing a database between apps

2011-10-07 Thread Harshad
I was wondering if its possible to share a database between apps. I have two apps. One is a background process that discovers devices on the network using bonjour and adds them to the database. The other app provides a web interface to view these discovered devices. How do I share the same databas

[web2py] Re: Cannot serve any pages after fresh install of Python2.5

2011-10-07 Thread Christopher Steel
Multi-platform Development with Python and Web2py. Here are a list of suggestions that should help make your experience a more pleasant one. Stick with Ubuntu LTS First to reiterate pbreit comment on Ubuntu LTS version. If you are not developing Ubuntu itself or have no compelling reason to ru

[web2py] Re: Cannot serve any pages after fresh install of Python2.5

2011-10-07 Thread Christopher Steel
+1

[web2py] Re: GAE with database

2011-10-07 Thread RAMKRISHAN BHATT BACK IN ACTION in bangalore
Ohh great do we have any sample application with us. I guess here i can get the ERP solution with GAE. On Oct 7, 5:40 am, Massimo Di Pierro wrote: > Yes. Web2py supports this already. > > On Oct 7, 12:53 am, ramkrishan bhatt > wrote: > > > > > > > > > Hello > > Is'nt it good for web2py framwork

[web2py] Re: Sharing a database between apps

2011-10-07 Thread Cliff
Yes. More information is available here: http://web2py.com/book/default/chapter/04#Cooperation On Oct 7, 11:11 am, Harshad wrote: > I was wondering if its possible to share a database between apps. I > have two apps. One is a background process that discovers devices on > the network using bon

Re: [web2py] Re: new feature - need help

2011-10-07 Thread Richard Vézina
Massimo, I need a class somewhere here, but can't find how to insert it : for option in options: menu[-1][-1].append((T(option),False,False, [(SPAN(INPUT(_type=field.type), INPUT(_type="button",_value=T('add'), _onclick="w2p_build_sea

[web2py] Getting Json data from Spinejs request

2011-10-07 Thread Carl
I've a function in my default.py controller : @service.jsonrpc def get_agent(): import gluon.contrib.simplejson data = gluon.contrib.simplejson.loads(request.body.read()) to get a dict of data sent from the browser I find I have to call simplejson.loads(request.body.read()) rather than d

[web2py] Re: manual file upload using SQLFORM.factory

2011-10-07 Thread Alex
it turned out that I could not do it as shown above because of form.accepts. This already performs the upload so now I'm doing it more like you suggested which is even more straightforward. form = SQLFORM.factory( Field('invoice_logo', 'upload', label=T('as.invoice_logo'), uploadfolder=os.path

[web2py] Re: Sharing a database between apps

2011-10-07 Thread Harshad
Nice. So all I have to do is define them in every application that is using them and set migrate=False. And, next time I'll try to RTFM more carefully. Thanks Cliff! On Oct 7, 12:19 pm, Cliff wrote: > Yes. > > More information is available here:   > http://web2py.com/book/default/chapter/04#Coo

Re: [web2py] Re: new feature - need help

2011-10-07 Thread Richard Vézina
Finally find a little fix so you can play with the query builder with a "correct" superfish display (pretty ugly) but... Add this to base.css : .web2py-menu-expand .sfHover { width: 275px; } .web2py-menu-vertical li a input { margin: 5px; } Change this in superfis.css : .sf-menu-query

Re: [web2py] Re: Help for creating template

2011-10-07 Thread Anthony
On Friday, October 7, 2011 1:31:08 AM UTC-4, miroslavgojic wrote: > > Thanks for blocks - that work, this is similar to modules in joomla, I can > write small block and get content on specific place at layout. > > I tray to use next code: > response

Re: [web2py] Re: new feature - need help

2011-10-07 Thread Richard Vézina
Oh forget to mention... It needs that we fork superfish.css and js and rename every class in superfish.css and their call in superfish.js... It's not pretty nice but it allow to play with the query builder... I not convinced with a menu a proper ui for a query builder since when your mice fall out

Re: [web2py] Re: new feature - need help

2011-10-07 Thread Richard Vézina
and change in sqlhtml the init call for the query of superfish... Richard On Fri, Oct 7, 2011 at 12:59 PM, Richard Vézina wrote: > Oh forget to mention... It needs that we fork superfish.css and js and > rename every class in superfish.css and their call in superfish.js... It's > not pretty nic

[web2py] Re: Schema Changes in GAE

2011-10-07 Thread Joseph Jude
I was able to successfully added a field, filled with content and also renamed a field (add a filed, copy and then delete). If it would be of some use for others, here is how I did: Ref the below stackflow thread. Alex offers a simple solution. http://stackoverflow.com/questions/2906746/updatin

[web2py] Crazy problem !!

2011-10-07 Thread Web2Py Freak
Dear All , i am making an E-learning application and am using auth.user.first_name but when i logout an error happens : ('NoneType' object has no attribute 'first_name') this is the controller : def index(): """ example action using the internationalization operator T and flash

[web2py] Re: SELECT / OPTGROUP

2011-10-07 Thread Dominique
Hello, I answer to myself, since it was not so complex ;) ... Oops! Hum hum ... Dominique In Controller: def search_form(): q = db(db.region.id==db.subregion.region).select(orderby=db.region.name | db.subregion.name) def prepare_select(rows): """ Creates a list to be used

Re: [web2py] SQLFORM.grid() problem - latest trunk

2011-10-07 Thread Jim Steil
FYI - Created a whole new install of web2py from trunk and my problem went away. Sorry for the noise... -Jim On 10/6/2011 3:25 PM, Jim Steil wrote: Hi I installed the latest from trunk today and am now getting the following. Traceback(most recent call last): File"C:\dev\web2py\gluon\

Re: [web2py] Crazy problem !!

2011-10-07 Thread Vasile Ermicioi
after logout auth.user is null (None) so accessing auth.user.first_name gives you this error

[web2py] Re: Crazy problem !!

2011-10-07 Thread Web2Py Freak
So what to do ??

[web2py] Re: new feature - need help

2011-10-07 Thread Massimo Di Pierro
Thanks will look at it asap. On Oct 7, 12:06 pm, Richard Vézina wrote: > On Fri, Oct 7, 2011 at 1:00 PM, Richard Vézina > wrote: > > > > > > > > > and change in sqlhtml the init call for the query of superfish... > > > Richard > > > On Fri, Oct 7, 2011 at 12:59 PM, Richard Vézina < > > ml.richard

[web2py] Re: Crazy problem !!

2011-10-07 Thread Massimo Di Pierro
two problems with this: db.addmaterial.techer==auth.user.first_name auth.user exists only if the user is logged in so your actions should @auth.requires_login() the other problem is it is not a idea to "denormalize" by storing the user first_name into db.addmaterial.teacher. You should re

Re: [web2py] Re: Help for creating template

2011-10-07 Thread Miroslav Gojic
this is my controller from gluon.tools import Crud crud = Crud(db) def index(): form=SQLFORM(db.poruke,fields=['poruka','post_author']) if form.accepts(request.vars,session): session.flash="new post accepted!" redirect(URL(r=request)) poruke=db().select(db.poruke.ALL)

[web2py] Re: Windows + Apache + mod_proxy

2011-10-07 Thread Omi Chiba
Paolo, You gave me a hope because it looks you tried it recently and it's very similar to my environment. (Is your OS Windows 7, XP, or Windows Server ??) My environment: OS: Windows 7 SP1 - 32bit Python: 2.7.2 Apache: httpd-2.2.21-win32-x86-openssl-0.9.8r.msi mod_wsgi: mod_wsgi-win32-ap22py27-3.

[web2py] Flash message: You are being redirected here

2011-10-07 Thread Ross Peoples
Whenever I use redirect after a form submission, the flash message is always: You are being redirected here" I have tried setting response.flash and session.flash, but this message always pops up after the page is refreshed. This is really annoying. At the end of http.py, I see that the redir

[web2py] Re: manual file upload using SQLFORM.factory

2011-10-07 Thread TheSweetlink
I'm happy the upload works for you Alex. > do I have to take care about directory traversals and other security > risks? What's the easiest way to do this? As I understand it the store() renaming of the file is what takes care of the dir traversal protection. I'm not a web2py dev so don't quote

Re: [web2py] Re: Help for creating template

2011-10-07 Thread Anthony
See http://web2py.com/book/default/chapter/05#Custom-Helpers for details on using the MENU helper. You can see an example of using it in conjunction with Superfish (which is a Javascript library that turns the list structure generated by MENU into a dynamic menu) in the 'welcome' app: http://c

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
More and more bizarre... In the last post I mentioned the difference in behavior between Firefox and chromium. Well that difference is only occurring when using webfaction. On a local server, it all works perfectly fine, chromium or not!? I am getting a bit desperate here. I am a newbie when

[web2py] Re: Google Cloud SQL

2011-10-07 Thread RAMKRISHAN BHATT BACK IN ACTION in bangalore
Even I am also exited for that, You have already told me regarding GAE +SQL(tested) but i could not understand. Day before yesterday i got this information and i found my solution for ERP. Also along with that Hangout API also i found good that also i want to use in my system. Massimo shell we hav

[web2py] Re: Sharing a database between apps

2011-10-07 Thread MidGe
:)

[web2py] html comments within conditional comments

2011-10-07 Thread Bob St John
Using 1.99.2 'layout.html' has the following conditional comment...

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread Anthony
To help isolate the problem, maybe start looking at whether the session cookies is getting passed back and forth, if the session file is being saved/updated in the /sessions folder, and if the /private/hosts.deny file is being created. You might also do some debugging in /admin/models/access.py

[web2py] Re: html comments within conditional comments

2011-10-07 Thread Massimo Di Pierro
I agree. Uploading to trunk. On Oct 7, 8:55 pm, Bob St John wrote: > Using 1.99.2 > 'layout.html' has the following conditional comment... > >     >       >     >       >    

[web2py] Mail credentials, recaptcha keys, and privacy/security

2011-10-07 Thread monotasker
It struck me that my recaptcha keys and mail password are stored in db.py as plain text. At least under fluxflex hosting this file is stored in public_html. Am I right that this poses a privacy and security problem, or am I missing a safety feature? I'm also wondering about this kind of informa

[web2py] Re: Mail credentials, recaptcha keys, and privacy/security

2011-10-07 Thread pbreit
Without elaborate security schemes, it's probably going to be in plain text somewhere. The first alternative is to put it in a file with limited permissions.

[web2py] Re: Schema Changes in GAE

2011-10-07 Thread howesc
yes, i import the GAE libraries into a web2py controller and run my migrations as web2py controllers (so i can use a mix of DAL and GAE). your method below is also valid.

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
Anthony, I do not find it very re-assuring that I have to get to that level of understanding of the framework in order to be able to complete an evaluation of the product. I am not sure if I can really afford the amount of time and effort for an evaluation stage only, with no more to proceed w

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread pbreit
I understand your concern but will note that in a year and a half, Ive never seen this problem mentioned. It sounds like either your sessions are not getting written to disk. As Anthony suggested, double check /sessions to make sure you see some files there. Try deleting all of them and then ac

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread Anthony
Well, maybe try a different host and/or different web server. On Saturday, October 8, 2011 12:37:30 AM UTC-4, MidGe wrote: > > Anthony, > > I do not find it very re-assuring that I have to get to that level of > understanding of the framework in order to be able to complete an evaluation > of t

[web2py] Re: Flash message: You are being redirected here

2011-10-07 Thread pbreit
That should not happen as far as I know. What does your code look like?

[web2py] Re: Cannot serve any pages after fresh install of Python2.5

2011-10-07 Thread Peter G.
Thanks for the advice, pbreit and Christopher! I will give a fresh Ubuntu 10.04 install a spin :)!

[web2py] Re: Google Cloud SQL

2011-10-07 Thread Kurt Fehlhauer
Massimo, I am creating a photo gallery application and have questions in regard to Google Cloud SQL. Do you have any best-practice advice on storing images in GAE when using SQL? Should it go in the database as a blob or should it be stored as a blob property in the Google datastore? Thanks, Kurt

[web2py] remove "login" from navbar

2011-10-07 Thread lucas
hello one and all, how do i direct auth to remove the "login" link from the navbar? i already tried auth.settings.actions_disabled.append('login') like you would to remove register, but that didn't seem to work. ideas? thank you in advance. lucas

[web2py] Re: remove "login" from navbar

2011-10-07 Thread Anthony
auth.navbar() automatically includes login as the first item, and that is not configurable. However, auth.navbar() simply returns a SPAN helper object, so you can use the server-side DOM to edit it. This should remove the login link: nav = auth.navbar() del nav[1:3] # deletes the login link an

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
Anthony, As I have said before on this forum on this an another topic trying to solve this problem. The problem is dependent on having webfaction as a host, web2py as application framework and using uwsgi. That is the only problem I am trying to solve. I have no problem with using Apache inste

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
"Unfortunately, Python deployment remains tricky, especially on shared hosting." Interesting. pbreit, as Python is pretty much new for me too. I find this tethering on the edge of an abyss a very strange stance in software development deployment and very different from anything I have ever