[web2py] [OT] Stress testing a web2py deployment

2010-11-12 Thread Luther Goh Lu Feng
My colleague did a deployment of web2py using today using apache as a reverse proxy. The demo setup performed quite badly. And was resolved by using nginx in place of apache. Quick question: is there a way to simulate a stress test to find the upper limits of performance without using real users?

Re: [web2py] Re: PostgreSQL replication

2010-11-12 Thread Michele Comitini
This is probably what you need. What scared me away is that it is a query based system, there are some potential drawbacks depending on the type of query, but you have advantages too, such as extreme parallel execution, so I suggest to take a look! http://wiki.postgresql.org/wiki/Pgpool-II mic 2

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-12 Thread Stefan Scholl
That's how I do it with multilingual sites: The browser language determines the first page you reach. Every language has its own directory in the URL. Then you can choose between the other languages (not by country flag if I can prevent it ;-). (All my web2py projects so far were monolingual. But

[web2py] Re: PostgreSQL replication

2010-11-12 Thread shem p
Maybe any of this would help: http://www.haroonidrees.com/2009/04/open-sour.html On Nov 12, 2:07 pm, ron_m wrote: > Thanks for the pointers from both of you, I appreciate that. It would > be best to have multiple master but that will be very difficult. > Bucardo has multiple master but only for 2

[web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread Paul Gerrard
Here are my comments on the Guidelines page. Some of these are duplicates with other peoples' comments - but what the heck. ---> is my suggestion ...Our choice of technologies is motivated but a belief in Rapid Application Development(RAD) --->by ...applic

Re: [web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread Albert Abril
http://experts4solutions.com/e4s/default/companies Local conacts --> Local contacts! xD On Fri, Nov 12, 2010 at 11:06 AM, Paul Gerrard wrote: > Here are my comments on the Guidelines page. Some of these are > duplicates with other peoples' comments - but what the heck. ---> is > my suggestion >

[web2py] ValueError: need more than 1 value to unpack

2010-11-12 Thread Kostas M
I am trying to reproduce the "What is going on with web2py?" video (http://vimeo.com/13485916). At the 'friend' section, when I try to enter a new friend eg. "Max" I am getting this error: Traceback (most recent call last): File "C:\Temp\web2py\applications\myplayepedvm/models/ plugin_wiki.py",

[web2py] ReportLab and AppEngine

2010-11-12 Thread Tiago Rosa
Hi folks, I need to generate PDF reports from my GAE-deployed application. The question is: how? Obviously the example in the web2py book won't work because AppEngine does not allow access to the filesystem. I've found this is possible in Django because Django's HttpResponse is a file- like object

[web2py] Creating debug.html

2010-11-12 Thread demetrio
Hi, I've realized that it might be helpful, to include a template called "debug.html" with the same code found in "generic.html." but without the {{extend}} statement. I am using in my development and saves me some time to write several "BEAUTIFY" calls. When I want to be in "development mode", I

[web2py] is it possible to delete from a rows object

2010-11-12 Thread apple
items=db(db.dataitems.templatename==session.templatename).select(db.dataitems.ALL) item=filter(lambda item: item.id==r.itemid, items)[0] item.delete_record() This deletes the record from the database but not from the local Rows object. If I try to delete the item it says the Rows object does not s

[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-11-12 Thread selecta
How do I submit? Should I just send you (NetAdmin) the code by email? I am working on the project constantly, will you accept updates after the first submission? Or should I wait till the deadline and submit what I got until then? On Nov 11, 9:21 pm, GoldenTiger wrote: > I'll be there, actually I

[web2py] Re: DAL() unusable ?

2010-11-12 Thread Mirek Zvolský
>> Thadeus Burgess >> WRong. cr2 is a really really bad design. >> Database 101, any many to many relationship must be defined through a link >> table. I'm sorry, but you missunderstand the term "many to many relationship" and the term "relation" at all. Because, of course, "one relation" means e

[web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-11-12 Thread NetAdmin
You should wait for the the deadline, then submit by email. Good Luck! Mr.NetAdmin

[web2py] crud settings

2010-11-12 Thread leone
Hi, peraphs a bias in def mycontroller(): crud.settings.update_next = URL(c=request,f='select') return dict(crud=crud.update(db.balance, request.args(0))) that redirect to: http://.../../,%20'wsgi':%20%20at%200x9f890d4>,%20'middleware':%20%20at%200x9f8910c>,%20'environ':%20{'wsgi.mul

[web2py] Re: DAL() unusable ?

2010-11-12 Thread Mirek Zvolský
>> Mariano Reingart Thanks for your response and practical experience with large system. I think the problem is clear: In current web2py philosophy the same data model becames valid or invalid based on the order of table definition commands. And if a model is complex, then there is no possibility

Re: [web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread Kenneth Lundström
Very nice site, the disappearing lightbulb is nice. One bad thing with the disappearing lightbulb is if you reload the frontpage and scroll down immediately, after a couple of seconds the page shakes like an earthquake. the Experts page looks a little bit odd, you have the texts Filter by cou

Re: [web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread Kenneth Lundström
One more thing, I went through all experts but one experts Internal error http://experts4solutions.com/e4s/default/expert/7 Internal error Ticket issued: e4s/81.17.193.228.2010-11-12.13-29-46.5651ebc2-31b8-43df-94f0-44b48c2d4647

Re: [web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread Bruno Rocha
Note that profile page accepts MARKMIN for bio content: http://experts4solutions.com/e4s/default/expert/2 This is usefull to include aditional information. Would be very nice to have something like a badge to include in our blogs / companies websites.

[web2py] Re: Stress testing a web2py deployment

2010-11-12 Thread mdipierro
Can you share some data? On Nov 12, 2:01 am, Luther Goh Lu Feng wrote: > My colleague did a deployment of web2py using today using apache as a > reverse proxy. The demo setup performed quite badly. And was resolved > by using nginx in place of apache. > > Quick question: is there a way to simulat

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-12 Thread mdipierro
The admin (admin) has a selector at the bottom, it uses cookies to keep the preferred selected language. On Nov 12, 3:10 am, Stefan Scholl wrote: > That's how I do it with multilingual sites: The browser language > determines the first page you reach. Every language has its own > directory in the

[web2py] Re: ValueError: need more than 1 value to unpack

2010-11-12 Thread mdipierro
IS_NOT_IN_DB(db,'friend_name') should be IS_NOT_IN_DB(db,'friend.name') On Nov 12, 5:29 am, Kostas M wrote: > I am trying to reproduce the "What is going on with web2py?" video > (http://vimeo.com/13485916). At the 'friend' section, when I try to > enter a new friend eg. "Max" I am getting this

[web2py] Re: ReportLab and AppEngine

2010-11-12 Thread mdipierro
You can use pyfpdf or reportlab. I let Mariano explain how to use pyfpdf. To use reportlab just unzip the pure python implementation in web2py/ site-packages import it in any of your actions. call if from your controller actions and/or view. (p.s. web2py actions also can return a file-like obje

[web2py] Re: is it possible to delete from a rows object

2010-11-12 Thread mdipierro
http://www.web2py.com/book/default/chapter/06#find,-exclude,-sort On Nov 12, 6:19 am, apple wrote: > items=db(db.dataitems.templatename==session.templatename).select(db.dataitems.ALL) > item=filter(lambda item: item.id==r.itemid, items)[0] > item.delete_record() > > This deletes the record from t

[web2py] Re: crud settings

2010-11-12 Thread mdipierro
crud.settings.update_next = URL(c=request,f='select') should be crud.settings.update_next = URL(r=request,f='select') or crud.settings.update_next = URL('select') On Nov 12, 6:52 am, leone wrote: > Hi, > peraphs a bias in > > def mycontroller(): >       crud.settings.update

[web2py] Re: how to use ExtendedLoginForm ?

2010-11-12 Thread Bruno Rocha
Well, ExtendedLoginForm is not working, but I am trying to fix it and send a patch. By now, I am using another solution, If someone else needs the same. to have both auth modes [built-in and RPX] just like in: http://natalanimal.com.br/init/default/user/login and web2pyslices.com At models afte

[web2py] Re: Authentication and multiple logon sessions

2010-11-12 Thread Paul Gerrard
Two machines with FF would be more reliable :O) I have a related question. Is there are way of stopping a user account being used by more than one person simultaneously? Is there anything in Web2p to help with thsi or would I need to have some form of DB/ session solution? Thanks. On Nov 11, 5:2

[web2py] web2py 1.89.1 is OUT

2010-11-12 Thread mdipierro
Please give it a try and report any bug. 1.89.1 - new admin layout (thanks Branko Vukelic) - new admin search - new admin language selector (thanks Yair) - new Welcome app (thanks Martin Mulone) - beter wizard - admin support for DEMO_MODE=True - admin exposes GAE deployment button (always) - MENU

[web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread mdipierro
Thank you for all the reported corrections. I think I have incorporated them all. Please check. Branko is already at work for a better layout. Massimo On Nov 12, 4:06 am, Paul Gerrard wrote: > Here are my comments on the Guidelines page. Some of these are > duplicates with other peoples' comme

[web2py] Re: Authentication and multiple logon sessions

2010-11-12 Thread mdipierro
You can add field auth_user (client with default to request.client) then in db.py if auth.user and auth.user.client!=request.client: session.flash="oops" redirect(URL('user/logout')) On Nov 12, 8:39 am, Paul Gerrard wrote: > Two machines with FF would be more reliable :O) > > I have a r

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread mdipierro
Congratulations to all those how contributed (whose names are in the hg logs) because this is a beautiful version. If your name is not mentioned in the who.html page and you think it should be please assume this is an oversight on my site (I try to keep track but I can do mistakes) so please do no

[web2py] Re: Help with "No such file or directory" error

2010-11-12 Thread CesarBustios
Wow it worked that way! Thanks for your patience and time Mr. DiPierro On 11 nov, 17:42, mdipierro wrote: > Now I get it > > source=os.path.join(request.folder,'uploads/Image.image.a278723.jpg') > dest=os.path.join(request.folder,'uploads/advertisement.jpg') > shutil.copy(source,dist) > > On Nov

Re: [web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread Lorin Rivers
Sorry I wasn't clear. I'm using a select multiple element in my form. When more than one (in my example, it's a MAC address) item is chosen, I need to return a result set for each choice and display them together. I could do it with a query like: "choice 1 OR choice 2" or I could do it by

Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Manu
It s absolutely beautiful on windows. On Fri, Nov 12, 2010 at 4:46 PM, mdipierro wrote: > Congratulations to all those how contributed (whose names are in the > hg logs) because this is a beautiful version. > > If your name is not mentioned in the who.html page and you think it > should be please

[web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread mdipierro
options=[str(my_macaddr[i].MacAddr) for i in range(len(my_macaddr))] form=SQLFORM.factory(Field('macs',requires=IS_IN_SET(options,multiple='multiple'))) dbset=db4((db4.data_table.ReqTime>='2010-11-08T21:00')&(db4.data_table.ReqTime<='2010-11-08T22:00')) if form.accepts(request) and form.var

[web2py] many to many inline form

2010-11-12 Thread Joe Wakefield
So I'm trying to migrate an old rails app that broke a while back, and I came across a rather difficult situation. I boiled the problem down to this simplified mockup: http://yfrog.com/ghbeanjarsp The real app has nothing to do with jelly beans, but this is the issue at hand. Basically there are t

[web2py] Re: Can´t do redirect [SOLVED]

2010-11-12 Thread yamandu
I found I had put a import to redirect that was causing the crash. Strange thing is that it looks like it was neeed in past (I don´t remember why) and now it crashes but removing ti everything is normal. On Nov 11, 4:19 pm, yamandu wrote: > One thing that could have to do with this is that I down

[web2py] Re: many to many inline form

2010-11-12 Thread mdipierro
We do not have a widget for that but it is time to make one. It is not difficult. If I have time I will do this over the week-end. Other users may have already something working. On Nov 12, 10:17 am, Joe Wakefield wrote: > So I'm trying to migrate an old rails app that broke a while back, and > I

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-12 Thread Andrew Evans
Hey Thadeus! where would you like me to submit it? I can upload it here to this news group. The only thing I changed was what you suggested ;) adding self.r.args to the generate links function ;) def generate_links(self): self.backward = A('<< previous()', _href=URL(r=self.r, args=self.r

[web2py] get representation to show up in command line

2010-11-12 Thread Richard Vézina
Hello, I would know how I can get a print out of my field.represent=lambda something in command line web2py environnement. Hope I am clear. For example if I do print (db().select(db.TABLENAME.FIELDNAME)) I get the values of the field. In case I have create a representation of the field can I g

[web2py] Re: get representation to show up in command line

2010-11-12 Thread mdipierro
this is not possible (because it is a DAL not an ORM) You can do: db.TABLENAME.FIELDNAME.represent=lambda value: value for row in db().select(db.TABLENAME.FIELDNAME): print db.TABLENAME.FIELDNAME.represent(row.FIELDNAME) This would be the closest thing On Nov 12, 10:27 am, Richard Vézina w

Re: [web2py] Re: get representation to show up in command line

2010-11-12 Thread Richard Vézina
Ok thanks! I wondering about an other thing : I have this : db['table1'].nottableidfield_id.represent=\ lambda nottableidfield_id: A("%(someotherfield)s" %db.table1[nottableidfield_id],\ _href=URL(r=request,f='read',args='someothertable'+'/'+str(nottableidfield_id))) And I get format ma

Re: [web2py] Re: get representation to show up in command line

2010-11-12 Thread Richard Vézina
Ok I think I found... Is it because I am referring to the same table?? Richard On Fri, Nov 12, 2010 at 11:43 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok thanks! > > I wondering about an other thing : > > I have this : > > db['table1'].nottableidfield_id.represent=\ > lambd

Re: [web2py] web2py 1.89.1 is OUT

2010-11-12 Thread appydev
Really beautiful!

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-12 Thread Thadeus Burgess
Thanks. I uploaded a new version to pypi. -- Thadeus On Fri, Nov 12, 2010 at 10:27 AM, Andrew Evans wrote: > Hey Thadeus! > > where would you like me to submit it? I can upload it here to this news > group. The only thing I changed was what you suggested ;) adding self.r.args > to the genera

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Thadeus Burgess
Right. I get it now. Is there a reason for not sticking the record creation inside of its own table? -- Thadeus 2010/11/12 Mirek Zvolský > hich person is an employee of which company, > 2) which person has created the company record, > 3) which person has created the person records, > all 3

Re: [web2py] Re: get representation to show up in command line

2010-11-12 Thread Richard Vézina
I got it. I had a type mutation. Richard On Fri, Nov 12, 2010 at 11:50 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok I think I found... > > Is it because I am referring to the same table?? > > Richard > > > On Fri, Nov 12, 2010 at 11:43 AM, Richard Vézina < > ml.richard.vez...@gm

[web2py] User Login/Logout authentication event

2010-11-12 Thread Alex
Hello, I have a question regarding authentication. I would like to find a way to do certain events (ie. store stuff in the cache, update a last login time in the DB, etc.) when a user logs in and logs out. I'm currently just using the built in "auth" object and was wondering if there was a simp

[web2py] Re: User Login/Logout authentication event

2010-11-12 Thread mdipierro
auth.settings.login_onaccept=lambda form: do_something(form) same with logout, etc. On Nov 12, 11:50 am, Alex wrote: > Hello, > > I have a question regarding authentication.  I would like to find a > way to do certain events (ie.  store stuff in the cache, update a last > login time in the DB, e

[web2py] pt-br for admin

2010-11-12 Thread Bruno Rocha
Here is attached the pt-br.py file for translating /admin application into portuguese. I hope this can be useful for someone who speaks portuguese, and this needs a review before being integrated into web2py /admin any portuguese speakers could help reviewing the translation strings? Note: Some

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread DJ
Love the file search function! Nice work! -S On Nov 12, 12:09 pm, appydev wrote: > Really beautiful!

Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Bruno Rocha
Great! each day I like web2py more! 2010/11/12 mdipierro > Congratulations to all those how contributed (whose names are in the > hg logs) because this is a beautiful version. > > If your name is not mentioned in the who.html page and you think it > should be please assume this is an oversight

[web2py] serving subdomain hosted outside web2py application

2010-11-12 Thread vaibhav
Hi, I have a web2py application which have a link in it's index.html which is something like this http://blog.example.com";>blog the application is itself hosted in http://example.com, the subdomain is external application which maps to a blog hosted by blogger.com, I figured there should be a

[web2py] Re: DAL() unusable ?

2010-11-12 Thread Mirek Zvolský
> Is there a reason for not sticking the record creation inside of its own > table? Hi Tadeus, This is just an example. I have used it to show Massimo and others, that the simplest part of CRM application model, if you change "created_by" from type "string" to type "reference..", then there is no

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Mariano Reingart
2010/11/12 Mirek Zvolský : >>> Mariano Reingart > > Thanks for your response and practical experience with large system. > > I think the problem is clear: > In current web2py philosophy the same data model becames valid or > invalid based on the order of table definition commands. And if a > model

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Branko Vukelic
2010/11/12 Mirek Zvolský : > That's not the case of > http://zvolsky.alwaysdata.net/crm2.jpg DISCLAIMER: I'm not experienced with large-scale database designs. Now that I've gotten that out of the way... What's the meaning of 'created_by' in this set-up? If it's meant to be taken as 'record crea

Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Albert Abril
new admin, new welcome, and gae deploy button are, wizard... each day prettier and easier. thanks to you, the community. On Fri, Nov 12, 2010 at 7:04 PM, Bruno Rocha wrote: > Great! > > each day I like web2py more! > > 2010/11/12 mdipierro > > Congratulations to all those how contributed (whose

Re: [web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread Lorin Rivers
Massimo, Thanks, that works great! What do I do to get it to only run on submit instead of load? BTW, one of the things that's most awesome about web2py is your activity on the list and how helpful you are. I for one really appreciate that! On Nov 12, 2010, at 10:12 , mdipierro wrote: > opti

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread ra3don
This is a fantastic update. web2py has been improving very quickly. Love the new web2py website, love the new admin look! Great work everybody! On Nov 12, 9:22 am, mdipierro wrote: > Please give it a try and report any bug. > > 1.89.1 > - new admin layout (thanks Branko Vukelic) > - new admin se

[web2py] Re: Clockpick

2010-11-12 Thread villas
Hi All, The latest upgrade seems to have broken Clockpick. The times now appear in the top teft corner of the screen instead of adjacent to the input. I've played around with it, but I couldn't see what's wrong. To test it, just add a DB table to the Welcome app containing a time field and the

[web2py] Welcome not translate any more...

2010-11-12 Thread Richard Vézina
Hello, I observed that the "Welcome" in the navbar not translate anymore. I try to solve by adding a T() at line 1051 of tool.py, but it didn't works. Richard

[web2py] Re: Clockpick

2010-11-12 Thread winti
for me as well, since 1.89.1 clockpick appears as villas describes. On Nov 12, 9:23 pm, villas wrote: > Hi All, > > The latest upgrade seems to have broken Clockpick.  The times now > appear in the top teft corner of the screen instead of adjacent to the > input.  I've played around with it,  but

[web2py] Field update attribute broken?

2010-11-12 Thread baloan
Hi, I have defined a table: username = auth.user and auth.user.username db.define_table('email', Field('email', 'string', length=40, notnull=False, unique=True, represent=lambda s: s), Field('active', 'boolean', default=True), Field('expires', 'dat

Re: [web2py] web2py 1.89.1 is OUT... update?

2010-11-12 Thread Andrew Thompson
On 11/12/2010 10:22 AM, mdipierro wrote: Please give it a try and report any bug. 1.89.1 - new admin layout (thanks Branko Vukelic) - new admin search - new admin language selector (thanks Yair) - new Welcome app (thanks Martin Mulone) I've been recently just updating with the link in the admi

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread dspiteself
there was a problem loading my static files in the designer I would push it but our project uses git here is a patch. /*** fix web2py bug when static path matches ex: filepath =/test/dojox path = /test/dojo passes '/'.join(file_path).startswith

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Anthony
This looks great! Amazing work, everyone. The language selection in admin isn't working for me in IE on Windows (works fine in FF). When I select a language other than en, it does reload the page, but the language remains in English (and en remains selected in the drop-down). Also, I'm still havi

[web2py] postgresql error ... (relation "auth_user" already exists)

2010-11-12 Thread Carlos
Hi, I'm getting the following error in my local installation with postgresql when using auth.define_tables(migrate=True): (relation "auth_user" already exists) web2py™ Version 1.89.1 (2010-11-12 15:14:36) Python Python 2.6.4: C:\Python26\python.exe Traceback (most recent call last): File "C:

[web2py] Re: Pyodbc error with web2py under Apache and mod_wsgi

2010-11-12 Thread azarkowsky
A few more days of debug yielded a rather simple solution in the end. Compiling pyodbc with mingw32 was actually the correct answer. I had tried building pyodbc on a different system and then just copying over the *.pyd & *.egg-info. That's not good enough. You have to actually install mingw on

[web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread mdipierro
options=[str(my_macaddr[i].MacAddr) for i in range(len(my_macaddr))] form=SQLFORM.factory(Field('macs',requires=IS_IN_SET(options,multiple='multiple'))) if form.accepts(request): dbset=db4((db4.data_table.ReqTime>='2010-11-08T21:00')&(db4.data_table.ReqTime<='2010-11-08T22:00')) if form.var

[web2py] Re: Field update attribute broken?

2010-11-12 Thread mdipierro
In the latest version 1.89.1 ti does what you say if you set default=None On Nov 12, 3:10 pm, baloan wrote: > Hi, > > I have defined a table: > > username = auth.user and auth.user.username > > db.define_table('email', >                 Field('email', 'string', length=40, notnull=False, > unique=

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
yes On Nov 12, 3:11 pm, Andrew Thompson wrote: > On 11/12/2010 10:22 AM, mdipierro wrote: > > > Please give it a try and report any bug. > > > 1.89.1 > > - new admin layout (thanks Branko Vukelic) > > - new admin search > > - new admin language selector (thanks Yair) > > - new Welcome app (thanks

[web2py] Re: User Login/Logout authentication event

2010-11-12 Thread Alex
Excellent! Thanks! On Nov 12, 11:51 am, mdipierro wrote: > auth.settings.login_onaccept=lambda form: do_something(form) > > same with logout, etc. > > On Nov 12, 11:50 am, Alex wrote: > > > > > Hello, > > > I have a question regarding authentication.  I would like to find a > > way to do certai

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
ps. may not work on windows On Nov 12, 3:11 pm, Andrew Thompson wrote: > On 11/12/2010 10:22 AM, mdipierro wrote: > > > Please give it a try and report any bug. > > > 1.89.1 > > - new admin layout (thanks Branko Vukelic) > > - new admin search > > - new admin language selector (thanks Yair) > > -

[web2py] Cookie stealing attack

2010-11-12 Thread guruyaya
I've inspected web2py cookies, and I think I'm on to a problem. Say, I'm going into a public internet cafe. I'm getting into a web2py websute, that use the default auth. I'm looking at the cookie data, saving it then, I'm sitting in the next chair, and some other guy goes to the same website, and l

[web2py] bug in the book or in the code? linkedin instruction

2010-11-12 Thread Kuba Kucharski
Hi, long time no see, guys I did exact thing like in the book from gluon.contrib.login_methods.linkedin_account import LinkedInAccount auth.settings.login_form=LinkedInAccount(request,KEY,SECRET,RETURN_URL) (yeap I had inserted key etc, and yes, I haven't sent it in my ticket to all the public, I

[web2py] Error when using new wizard

2010-11-12 Thread Kenneth Lundström
Just installed the newest version of web2py (1.89.1) and tested the wizard to create a new appl. I came to step 6 when I got a error. Version web2py™ Version 1.89.1 (2010-11-12 15:14:36) Python Traceback Traceback (most recent call last): File "/data/domains/web2py/gluon/restricted.py", line 1

[web2py] Re: Cookie stealing attack

2010-11-12 Thread mdipierro
There are two things you can do. 1) session.secure() # will force session over https 2) call auth.logout() to delete all auth information from the session (this will not change the session cookie) 3) auth.settings.logout_onlogout=lambda user: os.unlink(response.session_filename) This will delete

[web2py] Re: Error when using new wizard

2010-11-12 Thread mdipierro
Can you check if this folder was created? /data/domains/web2py/applications/Boatintra if not it is a file permission issue. What os? was it a binary distribution of web2py? On Nov 12, 5:30 pm, Kenneth Lundström wrote: > Just installed the newest version of web2py (1.89.1) and tested the > wiz

Re: [web2py] Re: Error when using new wizard

2010-11-12 Thread Kenneth Lundström
> Can you check if this folder was created? > /data/domains/web2py/applications/Boatintra No it was not created. > if not it is a file permission issue. What os? was it a binary distribution of web2py? Linux, source. All files permissions apache:web2py. I tried to change file permissions of

[web2py] Re: Creating debug.html

2010-11-12 Thread cjrh
On Nov 12, 2:14 pm, demetrio wrote: > I hope you find this something useful. Thank you.

[web2py] Translations within the URL method

2010-11-12 Thread Branko Vukelic
I'm using the URL method as a src attribute for an image like so: IMG(_src=URL('static', 'images/someimage.jpg')) This image contains some text that must be translated, so there could be someimage_pt-br.jpg, someimage_sr-rs.jpg, etc. I thought this would be a good idea: IMG(_src=URL('static', T(

[web2py] Re: Translations within the URL method

2010-11-12 Thread Martin.Mulone
Did you try? IMG(_src=URL('static', str(T('images/someimage.jpg' On 12 nov, 20:59, Branko Vukelic wrote: > I'm using the URL method as a src attribute for an image like so: > > IMG(_src=URL('static', 'images/someimage.jpg')) > > This image contains some text that must be translated, so there

Re: [web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Andrew Thompson
On 11/12/2010 4:58 PM, mdipierro wrote: ps. may not work on windows I doubt this is what you meant, but I seem to have hit a snag with the upgrade. web2py is running on ubuntu, but I'm managing it from chrome on win7. After upgrading, the redirect back failed. Attempting to reload the admin

Re: [web2py] Re: Translations within the URL method

2010-11-12 Thread Branko Vukelic
Thanks, that seems to be working. :) On Sat, Nov 13, 2010 at 1:15 AM, Martin.Mulone wrote: > Did you try? > > IMG(_src=URL('static', str(T('images/someimage.jpg' > > On 12 nov, 20:59, Branko Vukelic wrote: >> I'm using the URL method as a src attribute for an image like so: >> >> IMG(_src=UR

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Anthony
I had the same exact experience on Windows (in IE). Here's the traceback I got: Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 188, in restricted exec ccode in environment File "C:\web2py\applications\admin/views\default/site.html", line 182, in AttributeErr

[web2py] Crud.select

2010-11-12 Thread mr.freeze
Should Crud.select honor record level auth permissions when returning records? Right now it only filters by table.

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Brian M
Probably typo in wizard at step 2 The Instructions say: If you need authentication remove the table "auth_user". Shouldn't that be: If you DO NOT need authentication remove the table "auth_user" On Nov 12, 9:22 am, mdipierro wrote: > Please give it a try and report any bug. > > 1.89.1 >

[web2py] internal error trying to connect to a mssql db

2010-11-12 Thread Crim
so this is all the code i really have for this right now db = DAL('mssql//s...@localhost/master') just trying to connect to my localhost ms sql db that i set up using the newest version of ms sql server im just trying to use the default account sa to connect ... which doesnt require a passw

[web2py] Use DAL() to connect to a local MS Sql db

2010-11-12 Thread Crim
Ok so i have been reading the web2py book and it says to use this sort of command to connect db = DAL('mssql://account_name:passwo...@localhost/master') # the databases name is master and i want to print the tables print db.tables #so i can check if its working by looking at my properties

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Can you post the traceback of the error? On Nov 12, 5:27 pm, Crim wrote: > so this is all the code i really have for this right now > > db = DAL('mssql//s...@localhost/master') > > just trying to connect to my localhost ms sql db that i set up using > the newest version of ms sql server > >

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i wasnt able to figure out the meaning of the error... On Nov 12, 10:32 pm, "mr.freeze" wrote: > Can you post the traceback of the error? > > On Nov 12, 5:27 pm, Crim wrote: > > > > > > > > > so this is all the code i really have for this right now > > > db = DAL('mssql//s...@localhost/master')

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mdipierro
Can you post the exact error? There is not nothing working with your URI string and the password is indeed optional. Massimo On Nov 12, 10:36 pm, Crim wrote: > i wasnt able to figure out the meaning of the error... > > On Nov 12, 10:32 pm, "mr.freeze" wrote: > > > Can you post the traceback of

[web2py] Re: Error when using new wizard

2010-11-12 Thread mdipierro
What is your setup? apache?mod_wsgi? On Nov 12, 5:48 pm, Kenneth Lundström wrote: >  > Can you check if this folder was created? >  >  /data/domains/web2py/applications/Boatintra > > No it was not created. > >  > if not it is a file permission issue. What os? was it a binary > distribution of we

[web2py] Re: Crud.select

2010-11-12 Thread mdipierro
No it does not. On Nov 12, 8:41 pm, "mr.freeze" wrote: > Should Crud.select honor record level auth permissions when returning > records? Right now it only filters by table.

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
If that is the actual URI, then it is missing a colon after mssql. On Nov 12, 10:40 pm, mdipierro wrote: > Can you post the exact error? > There is not nothing working with your URI string and the password is > indeed optional. > > Massimo > > On Nov 12, 10:36 pm, Crim wrote: > > > i wasnt able

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
it gives me this in the error snapshot: (global name 'pyodbc' is not defined (tried 5 times)) On Nov 12, 10:40 pm, mdipierro wrote: > Can you post the exact error? > There is not nothing working with your URI string and the password is > indeed optional. > > Massimo > > On Nov 12, 10:36 pm, Crim

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
sry about that no i had fixed that part :( On Nov 12, 10:42 pm, "mr.freeze" wrote: > If that is the actual URI, then it is missing a colon after mssql. > > On Nov 12, 10:40 pm, mdipierro wrote: > > > > > > > > > Can you post the exact error? > > There is not nothing working with your URI string

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
The fact is after you upgrade you get the new admin which uses a new API function. Unless you restart the server that API function is not available. This is a one time event since we never made such a big change in admin. On Nov 12, 7:26 pm, Anthony wrote: > I had the same exact experience on Win

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Do you have the pyodbc driver installed? http://code.google.com/p/pyodbc/ On Nov 12, 10:43 pm, Crim wrote: > it gives me this in the error snapshot: > (global name 'pyodbc' is not defined > (tried 5 times)) > > On Nov 12, 10:40 pm, mdipierro wrote: > > > Can you post the exact error? > > There i

[web2py] Re: Crud.select

2010-11-12 Thread mr.freeze
I know. I'm asking if it should. Would you take a patch? On Nov 12, 10:42 pm, mdipierro wrote: > No it does not. > > On Nov 12, 8:41 pm, "mr.freeze" wrote: > > > Should Crud.select honor record level auth permissions when returning > > records? Right now it only filters by table. > >

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i do if it makes a difference im on a 64bit system On Nov 12, 10:46 pm, "mr.freeze" wrote: > Do you have the pyodbc driver installed?http://code.google.com/p/pyodbc/ > > On Nov 12, 10:43 pm, Crim wrote: > > > > > > > > > it gives me this in the error snapshot: > > (global name 'pyodbc' is not d

  1   2   >