Re: [web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-23 Thread Kenneth Lundström
I´d say that warning messing in your log is not your problem. It should work even if you get those warnings. At least for me it does. Your are receiving that warning because your certifcate is for domain pypy.domain.com but in your configuration your are talking about an ip-address. What

Re: [web2py] Re: web2py 1.89.5 is OUT

2010-11-23 Thread Kenneth Lundström
Not for me, I just tested to create a new application with the wizard, I selected the layout and submitted. I can see on the left that the layout has been selected. Then I just to be sure clicked submit on the next two steps. After that I selected go! in Generate but no layout is applied. I

Re: [web2py] Re: web2py 1.89.5 is OUT

2010-11-23 Thread Branko Vukelic
2010/11/23 Kenneth Lundström kenneth.t.lundst...@gmail.com: I found the problem, I had no deposit folder in my web2py root folder. I don´t know when it should have been created but I created it now by hand and not it works. Could be, I already had the deposit dir. -- Branko Vukelić

Re: [web2py] Re: web2py 1.89.5 is OUT

2010-11-23 Thread Branko Vukelic
On Tue, Nov 23, 2010 at 10:04 AM, Branko Vukelic bg.bra...@gmail.com wrote: Could be, I already had the deposit dir. Ok, checked now. Removing the deposit dir just before the submit in the first step successfully replicated the bug. -- Branko Vukelić bg.bra...@gmail.com

Re: [web2py] To map view to function's name

2010-11-23 Thread Phyo Arkar
I think i need to rephrase. I want default function and view to be same name as controller without need to define @ response.view everytime , automatically , can that be done at routes.py? On Tue, Nov 23, 2010 at 7:40 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: is there a way to map the

[web2py] auth_permission in multiple db configuration

2010-11-23 Thread kralin
Hi, I've got a sistem with multiple db, some are SQLlite, some are postgresql and one in MSSQL. is there a way to use auth authorization within tables that do not belongs to the db where auth data is specified? in the auth_permission table, I'm only required to add a table name, but what if the

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

2010-11-23 Thread Kuba Kucharski
does the following work for you? def onlogin_add_permission():  if not auth.has_permission(auth.user_group(form.vars.id), 'create', 'my_table'):      auth.add_permission(auth.user_group(form.vars.id),'create','my_table') auth.settings.login_onaccept = onlogin_add_permission very

[web2py] Re: To map view to function's name

2010-11-23 Thread villas
Just in case you didn't already see this... http://groups.google.com/group/web2py/browse_thread/thread/f0ac5c1d34480565/96224e6cf78d615a?lnk=gstq=routes#96224e6cf78d615a On Nov 23, 11:46 am, Phyo Arkar phyo.arkarl...@gmail.com wrote: I think i need to rephrase. I want default function and

[web2py] Re: Delay to load images on webfaction

2010-11-23 Thread villas
I will use PIL to create small thumbs (just have to figure out how to process every image on /uploads, create the thumb and insert this path do db) Hi Bruno, With regards the above, some code here may help you forward a little... http://www.web2pyslices.com/main/slices/take_slice/62

[web2py] Beginner Auth problem

2010-11-23 Thread appydev
Greetings. I have a problem, I hope you can help me. I have two models: Teacher, Student. Each with different attributes. It occurred to me to implement them, linking tables: db.define_table('teacher', Field('person', length=64), requires=IS_IN_DB(db,

[web2py] Re: auth_permission in multiple db configuration

2010-11-23 Thread mdipierro
You just need to remove the validator: db.auth_permission.table_name.requires = None On Nov 23, 6:19 am, kralin andrea.pierle...@gmail.com wrote: Hi, I've got a sistem with multiple db, some are SQLlite, some are postgresql and one in MSSQL. is there a way to use auth authorization within

Re: [web2py] Re: Delay to load images on webfaction

2010-11-23 Thread Bruno Rocha
Thank you Villas 2010/11/23 villas villa...@gmail.com I will use PIL to create small thumbs (just have to figure out how to process every image on /uploads, create the thumb and insert this path do db) Hi Bruno, With regards the above, some code here may help you forward a little...

[web2py] where to place sizes (and other properties) ?

2010-11-23 Thread Stef Mientki
hello, I just downloaded one of the layouts, and I stumbled about the huge amounts of size / color definitions. I realize that this is not a typical web2py question, but with web2py and it's layout inheritance the problem becomes even bigger. I wonder what's the best place to organize size (and

[web2py] plugin_wiki.widget:dealing with variables

2010-11-23 Thread shubham
how to use variables inside plugin_wiki.widget('pie_chart',data='1,2,3',names='a,b,c',width=300,height=150,align='center') syntax?? i want to replace 1,2,3 inside data attribute with variables..can anyone suggest a way??

[web2py] [BUG] Inserting custom field types broken

2010-11-23 Thread Ishbir
Hey there, There seems to be a bug in the latest version of web2py. Steps: 1. Create a table with a custom field 2. Try inserting the record 3. You'll notice that the custom field evaluates to None 4. Try updating the record, the custom field will show this time. Workaround: 1. Insert the

[web2py] Re: where to place sizes (and other properties) ?

2010-11-23 Thread mdipierro
Talking about the default layout.html or one of those from http://.../layouts? Nobody is maintaining the latter. They were generated automatically from free templates found online. On Nov 23, 7:48 am, Stef Mientki stef.mien...@gmail.com wrote: hello, I just downloaded one of the layouts, and

[web2py] Re: plugin_wiki.widget:dealing with variables

2010-11-23 Thread mdipierro
You should be able to pass a list. On Nov 23, 2:29 am, shubham saksha...@gmail.com wrote: how to use variables inside plugin_wiki.widget('pie_chart',data='1,2,3',names='a,b,c',width=300,height=150,align='center') syntax?? i want to replace 1,2,3 inside data attribute with variables..can

Re: [web2py] plugin_wiki.widget:dealing with variables

2010-11-23 Thread Bruno Rocha
mydata = '1,2,3' or mydata = [1,2,3] plugin_wiki.widget('pie_chart',data=mydata,names='a,b,c',width=300,height=150,align='center') 2010/11/23 shubham saksha...@gmail.com how to use variables inside

[web2py] Re: ERP projects

2010-11-23 Thread newnomad
It's really great that there are 3 ERP's in the works, I'd love to switch from tryton to a web2py based system; http://code.google.com/p/gestionlibre/ https://bitbucket.org/yamandu/yamachine-erp/ and a number 3 which I cannot find... However will any of those ever work without a relational

[web2py] Re: ERP projects

2010-11-23 Thread mdipierro
I think a relational database for an ERP is a must and those ERPs all support them. At the university we have peoplesoft+oracle and ~30,000 users. Turns out the ERP is not a high traffic app and it runs on one VPS (with replication for high availability). I am sure any web2py ERP will be just fine

[web2py] [BUG] Inserting custom field types broken

2010-11-23 Thread Ishbir
Hey there, There seems to be a bug in web2py which pops up while inserting a record to a table with a custom field type. How to reproduce: - Make a table with a custom field - Try inserting a record - The record would come out as None - Try updating the record with the custom value. It shows

[web2py] Re: Inserting custom field types broken

2010-11-23 Thread mdipierro
Can you post code to reproduce this. It will save some time and we can fix it sooner. On Nov 23, 7:53 am, Ishbir ishbi...@gmail.com wrote: Hey there, There seems to be a bug in web2py which pops up while inserting a record to a table with a custom field type. How to reproduce: - Make a

[web2py] 'this or that' request with a url

2010-11-23 Thread Lorin Rivers
How can I perform an 'OR' request with a url? Or pass a list using a url? I have 'AND' figured out… -- Lorin Rivers Mosasaur: Killer Technical Marketing http://www.mosasaur.com mailto:lriv...@mosasaur.com 512/203.3198 (m)

[web2py] Re: auth_permission in multiple db configuration

2010-11-23 Thread kralin
Thanks Massimo, this works, but will behave erratic if multiple dbs have two table with the same name. better than nothing... I think I can resolve this by giving db1.table1 and db2.table1 instead of just the table name. It looks like a simple string match is performed in the has_permittion method

Re: [web2py] where to place sizes (and other properties) ?

2010-11-23 Thread Branko Vukelic
This looks like a CSS question, rather than web2py. Any level of cascade is acceptable, and the best place can be anywhere depending on what you want. Personally, I'd move everything into an external CSS and link from the layout.html (the way you'd usually link it). I think web2py layouts are not

[web2py] Re: auth_permission in multiple db configuration

2010-11-23 Thread mdipierro
On Nov 23, 8:31 am, kralin andrea.pierle...@gmail.com wrote: Thanks Massimo, this works, but will behave erratic if multiple dbs have two table with the same name. better than nothing... I think I can resolve this by giving db1.table1 and db2.table1 instead of just the table name. Yes you

[web2py] Re: auth_permission in multiple db configuration

2010-11-23 Thread kralin
yes, my db objects are unfortunately too complex to be used with CRUD. so no prob. it worked well! thanks a lot, again ;) hope this helps someone else... On 23 Nov, 15:37, mdipierro mdipie...@cs.depaul.edu wrote: On Nov 23, 8:31 am, kralin andrea.pierle...@gmail.com wrote: Thanks Massimo,

Re: [web2py] Re: ERP projects

2010-11-23 Thread Michele Comitini
IMHO the question is not about having a database, the question is that the ERP must use only DAL for data management and must run on any supported database not only relational ones. mic 2010/11/23 mdipierro mdipie...@cs.depaul.edu: I think a relational database for an ERP is a must and those

Re: [web2py] Re: ERP projects

2010-11-23 Thread Richard Vézina
My preference go to postgresql... I think it is not a matter anyway since web2py can work with many differents dbms. But if we have to speed up as point in a thread last week we will have to work at the db layer to improve the schema and then a particular dbms will emerge... Richard On Tue, Nov

[web2py] Re: ERP projects

2010-11-23 Thread mdipierro
yes it should use dal and work with all supported databases, yet I would not run an ERP on a system without transactions. On Nov 23, 9:07 am, Michele Comitini michele.comit...@gmail.com wrote: IMHO the question is not about having a database, the question is that the ERP must use only DAL for

Re: [web2py] Re: ERP projects

2010-11-23 Thread Michele Comitini
I agree, it is true that in many little environments, there is only one person writing and a few reading so sqlite would be more than enough. 2010/11/23 mdipierro mdipie...@cs.depaul.edu: yes it should use dal and work with all supported databases, yet I would not run an ERP on a system

Re: [web2py] Re: ERP projects

2010-11-23 Thread Vinicius Assef
+1 If we just use DAL, we can count on web2py's transaction management to make the app portable among supported databases. So, Sqlite may be used in development and testing environments. If you want to run in a really small business, Sqlite could be acceptable, too. I know some systems

Re: [web2py] 'this or that' request with a url

2010-11-23 Thread Jonathan Lundell
On Nov 23, 2010, at 6:28 AM, Lorin Rivers wrote: How can I perform an 'OR' request with a url? Or pass a list using a url? I have 'AND' figured out… I'm not quite sure what you're asking here, but I'm guessing that you're interpreting the '' in a query string as 'and'. But it's not; it's

Re: [web2py] Re: ERP projects

2010-11-23 Thread Bruno Rocha
Our system is called SATLite (Simple Agile Tool - Lite), this is a work in progress and is being developed by 4 people, we did't decide yet if we are going to serve the app (free for use) or opening the source. This is a really tiny and simple tool for keeping track of agile projects and its

Re: [web2py] Re: list:string thoughts

2010-11-23 Thread Bruno Rocha
HI, I am taking advantage of this thread to solve a doubt about list:string, How can I get the values from list:string field rendered as a Python 'list' ? Is there a ready way in DAL, or I need to use .split() and .join() ? look: row = db(db.doacao.user_id==23).select()[0] row Row {'user_id':

[web2py] Jqgrid via plugin_wiki and reference

2010-11-23 Thread JmiXIII
Hello, I'm happy with the plugin_wiki jqgrid widget. Yet consider(genrated from wizard): db.define_table('t_piece', Field('id','id', represent=lambda id:SPAN(id,' ',A('view',_href=URL('piece_read',args=id, Field('f_code', type='string', unique=True,

[web2py] Re: list:string thoughts

2010-11-23 Thread mdipierro
No it does not. This is what I get: db.define_table('name',Field('value','list:string')) db.name.insert(value=['hello','world']) 1 db.name(1).value ['hello', 'world'] for row in db(db.name).select(): print row Row {'update_record': function lambda at 0x1698f70, 'value': ['hello', 'world'],

Re: [web2py] Re: list:string thoughts

2010-11-23 Thread Bruno Rocha
This is what I have: order = [] for product_id, qty, val in session.cart: order.append(( product_id, qty, val )) store.define_table('doacao', Field('user_id',db.auth_user,requires=IS_IN_DB(db, db.auth_user.id)), Field('animais','list:string'),

[web2py] Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-23 Thread Josh Jaques
Rendering SQLFORMs with a custom template, any hidden fields I create, as well as the hidden ID field are not displayed in the form until a call to accepts. I think this might be a bug because the same form rendered without a custom template will have the ID and hidden fields without calling

[web2py] Re: list:string thoughts

2010-11-23 Thread mdipierro
This is what I get from shell: db.define_table('doacao', ...Field('animais','list:string'), ...Field('valores','list:string')) order = [(12,1,21.4),(15,1,45.3)] doacao = dict( ... animais=[ord[0] for ord in order], ... valores=[ord[2] for ord in order], )

[web2py] Potential site trust abuse with default web2py setting?

2010-11-23 Thread Richard G
Howdy all, In web2py I've noticed a number of methods in gluon/tools.py that utilize client input to determine site flow: if next == DEFAULT: next = request.get_vars._next \ or request.post_vars._next \ or self.settings.login_next and subsequent if

[web2py] Re: Potential site trust abuse with default web2py setting?

2010-11-23 Thread mdipierro
What you suggest is indeed possible but... This is not an example of CRSF. CRSF is when a malicous site redirects the user to a site where the user is already authenticated (a web2py site) and forces the user to perform action (for example submit a form). web2py prevents this by hiding a formkey

[web2py] output

2010-11-23 Thread pftpft
I'm new to the MVC structure and am trying to figure out where things go. Let's say I've got a group of items. The index page lists them with a link to each. On the item page, it runs a detailed calculation and prints various output. For example, Item 1 Built in 2007. Initial value $1,000

Re: [web2py] Re: list:string thoughts

2010-11-23 Thread Bruno Rocha
I deleted my database, redefined the tables and now it works. I found the problem. First defined Field('valores') After some values inserted, and some deletions, I changed to Field('valores','list:string') But this still renders pure strings '|x|x|' changing fields from 'string' to

[web2py] Re: Potential site trust abuse with default web2py setting?

2010-11-23 Thread Richard G
Sorry, I am not saying that a web2py site is susceptible to CSRF. I meant that a web2py site could be used 'in the process' to perform a request that match these criteria on another site. I find it weird to click on a link that is going to a legitimate web2py site, and loads this legitimate

[web2py] Re: Suggested patch to DAL

2010-11-23 Thread brad
My mistake, Massimo. Sorry. On Nov 22, 10:40 pm, mdipierro mdipie...@cs.depaul.edu wrote: Talking about sql.py or dal.py. dal.py is an experimental rewrite of sql.py. dal.py is not used in web2py. dal.py has not been updated in long time. Massimo On Nov 22, 8:48 pm, Mariano Reingart

[web2py] Re: Potential site trust abuse with default web2py setting?

2010-11-23 Thread mdipierro
Actually I appreciate you raising this issue and this is a healthy discussion. Security issues are very important for everybody here so thank you for bringing this up. Although I do not think this is a major issue I agree that it should be avoided. One way to void is by adding this in one of your

[web2py] Re: output

2010-11-23 Thread mdipierro
My guess is that you have a python data structure that contains the items and the interest. I would extend this data structure to contain the result of the computation, pass it to the view, render it as you did in PHP. If you choose to compute the current value in the view, I would not see

Re: [web2py] Re: Potential site trust abuse with default web2py setting?

2010-11-23 Thread Bruno Rocha
I think this can to be default (security matters), but needs to be configurable. def avoid_external_next(): if request.controller=='default' and request.function=='user': if request.vars._next and request.vars._next.startswith('http'): del request.vars._next at the models

[web2py] Re: Potential site trust abuse with default web2py setting?

2010-11-23 Thread mdipierro
checked the code and I do not see any counter-indication in adding this check but one: If a user were to implement something like OpenID or CAS on top of Auth, it would not work. What an OpenID provider does (redirect to another side after login) is exactly what you are trying to prevent. So

[web2py] Re: how do I load a database CSV dump into GAE?

2010-11-23 Thread howesc
correct. actually the original bulkloader was deprecated a while ago, and unless i missed something my link above is to the latest documentation about the bulkloader. i use it with the automatic configuration so i have not written the transformers. cfh On Nov 22, 4:08 pm, Richard

Re: [web2py] 'this or that' request with a url

2010-11-23 Thread Lorin Rivers
Jonathan, Sweet! That set me on the right path! ../?foo=somethingbar=something_elseother=thisother=that gives me what I want, which is: request.var['foo']: something request.var['bar']: something_else request.var['bar']: [this, that] On Nov 23, 2010, at 9:34 , Jonathan Lundell wrote: On

[web2py] How do I submit a patch or addition to Web2Py?

2010-11-23 Thread NuclearDragon
I have a small change I implemented in the requires_login decorator of Auth, that I wanted to submit for folks to check out, and potentially be added to Web2Py. How do I go about creating a patch? What format should it be in? Do I just commit to trunk? Thanks!

[web2py] Re: How do I submit a patch or addition to Web2Py?

2010-11-23 Thread mdipierro
email me. ;-) On Nov 23, 2:13 pm, NuclearDragon nucleardragon...@gmail.com wrote: I have a small change I implemented in the requires_login decorator of Auth, that I wanted to submit for folks to check out, and potentially be added to Web2Py. How do I go about creating a patch? What format

[web2py] jqgrid question

2010-11-23 Thread William
I want to display a jqgrid table on the web, I set that the table shows 20 records as default. And right now I have 23 records in total. Therefore, its page number should be 2. However, If I don't click the bottom-right, its page number is always 3, how can I do to correct it? Thank you for your

[web2py] Re: jqgrid question

2010-11-23 Thread mdipierro
are you using plugin_wiki? On Nov 23, 2:16 pm, William angsen2...@gmail.com wrote: I want to display a jqgrid table on the web, I set that the table shows 20 records as default. And right now I have 23 records in total. Therefore, its page number should be 2. However, If I don't click the

[web2py] Re: Beginner Auth problem

2010-11-23 Thread mdipierro
On Nov 23, 7:40 am, appydev appy...@gmail.com wrote: Greetings. I have a problem, I hope you can help me. I have two models: Teacher, Student. Each with different attributes. It occurred to me to implement them, linking tables: db.define_table('teacher',                        

Re: [web2py] Re: Suggested patch to DAL

2010-11-23 Thread Phyo Arkar
if you like , you can work onto DAL.py brad. new design of DAL.py is gonna be more powerful, and will be a lot more modular but it will take some chunk of time so we regard it as low priority. On Wed, Nov 24, 2010 at 12:26 AM, brad brado...@gmail.com wrote: My mistake, Massimo. Sorry. On Nov

[web2py] How could I send a email to every members?

2010-11-23 Thread David Liu
Hi everyone, Hope this email finds you well. I have a question about how to send a email to every members? For example, I have a table named meeting like follows: db.define_table('meeting', Field('title', 'string'), Field('time', 'datetime'), Field('description', 'text'),

[web2py] Re: jqgrid question

2010-11-23 Thread William
yes On Nov 23, 3:41 pm, mdipierro mdipie...@cs.depaul.edu wrote: are you using plugin_wiki? On Nov 23, 2:16 pm, William angsen2...@gmail.com wrote: I want to display a jqgrid table on the web, I set that the table shows 20 records as default. And right now I have 23 records in total.

Re: [web2py] Re: Potential site trust abuse with default web2py setting?

2010-11-23 Thread Phyo Arkar
No it will break other stuff too , which already use redirection inplace. Just Let developer know that doing so will cause minor trust issue , and there is way to prevent it. On Wed, Nov 24, 2010 at 1:40 AM, mdipierro mdipie...@cs.depaul.edu wrote: checked the code and I do not see any

Re: [web2py] How could I send a email to every members?

2010-11-23 Thread Phyo Arkar
select all memebers , loop throught them and send , it will be very simple. On Wed, Nov 24, 2010 at 3:58 AM, David Liu mingchang...@gmail.com wrote: Hi everyone, Hope this email finds you well. I have a question about how to send a email to every members? For example, I have a table named

[web2py] TOP10 list

2010-11-23 Thread Kenneth Lundström
Hello list, I´m trying to make a TOP10 list but don´t know how :=( First I select the partners: partners = db(db.partners.id 0).select() for partner in partners: sales = db(db.sales.partner == partner).select() make some calculations and get a value for the customer.

[web2py] is_in_db error message translation

2010-11-23 Thread Richard Vézina
Hello, I try this : db.table1.field1.requires=\ IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value not available')) But not working... How may I translate the IS_IN_DB error message? Should we have an other attribute for IS_IN_DB function? Richard

Re: [web2py] Re: Beginner Auth problem

2010-11-23 Thread appydev
Thank you very much for your response. But I still have a doubt: Is it possible to modify the registration form to insert data into two tables? where one of the tables is auth_user. 2010/11/23 mdipierro mdipie...@cs.depaul.edu On Nov 23, 7:40 am, appydev appy...@gmail.com wrote:

[web2py] Re: TOP10 list

2010-11-23 Thread GoldenTiger
I need a bit more information show me your define_table from models, and write an example of TOP10 list On 23 nov, 22:35, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Hello list, I m trying to make a TOP10 list but don t know how :=( First I select the partners:      partners =

[web2py] Re: Beginner Auth problem

2010-11-23 Thread mdipierro
No. You can make a SQLFORM.factory(table1,table2) but it would no DB IO so after accepts you would have to do some manual work On Nov 23, 3:46 pm, appydev appy...@gmail.com wrote: Thank you very much for your response. But I still have a doubt: Is it possible to modify the registration form

Re: [web2py] TOP10 list

2010-11-23 Thread Bruno Rocha
I think you are in need of limitby=(start,end) partners = db(db,partners.id0)select(limitby=(0,10)) 2010/11/23 Kenneth Lundström kenneth.t.lundst...@gmail.com Hello list, I惴 trying to make a TOP10 list but don愒 know how :=( First I select the partners: partners = db(db.partners.id

[web2py] Re: Beginner Auth problem

2010-11-23 Thread mr.freeze
This may help: http://www.web2pyslices.com/main/slices/take_slice/102 On Nov 23, 3:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: No. You can make a SQLFORM.factory(table1,table2) but it would no DB IO so after accepts you would have to do some manual work On Nov 23, 3:46 pm, appydev

[web2py] Re: TOP10 list

2010-11-23 Thread Alex
Depending on how complicated the calculation is, you can *may* be able to do the calculation in the DAL. If it's just a simple sum, you can use SUM(), then then orderby descending the SUM() amount and limitby=(0,10). Otherwise, you could always create a sorted List and as you iterate through

Re: [web2py] Re: TOP10 list

2010-11-23 Thread Kenneth Lundström
Calculation is a lot more complicated then just a sum. I have to select data from 3-4 tables and then do the calculations. Maybe your second suggestion is the solution. How would you maintain the list so ten biggest rows is on the list and the list stays in correct order? Kenneth

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

2010-11-23 Thread Michele Comitini
Kuba, you are right, sadly it does not... ;-) a solution can be putting a new action similar to the following in the controller: @auth.requires_login() def onlogin_add_permission(): if not auth.has_permission(auth.user_group(auth.user.id), 'create', 'my_table'):

[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-23 Thread Hybride
What kind of a problems do you have? It's the standard You don't have permission to access /admin/default/ index on this server. I know it's silly, and I've went through most of the files available on how to supposedly fix this, but I can't seem to get it to work. Your are receiving that

Re: [web2py] Beginner Auth problem

2010-11-23 Thread appydev
Thank you very much for the help. 2010/11/23 appydev appy...@gmail.com Greetings. I have a problem, I hope you can help me. I have two models: Teacher, Student. Each with different attributes. It occurred to me to implement them, linking tables: db.define_table('teacher',

[web2py] trying to make auth.settings.login_next more dynamic

2010-11-23 Thread Michele Comitini
Massimo, to make the auth.settings.login_next more dynamic could be this a solution? in the model: class FunctorFactory(object): def __init__(self, f=lambda:None): self.function = f def __call__(self): return self.function() def __str__(self): return

Re: [web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-23 Thread Kenneth Lundström
It's the standard You don't have permission to access /admin/default/ index on this server. I know it's silly, and I've went through most of the files available on how to supposedly fix this, but I can't seem to get it to work. You seem to have two different problems. I tried to access

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

2010-11-23 Thread Kuba Kucharski
a solution can be putting a new action similar to the following in the controller: @auth.requires_login() def onlogin_add_permission():  if not auth.has_permission(auth.user_group(auth.user.id), 'create',  'my_table'):      

Re: [web2py] about cron tasks

2010-11-23 Thread António Ramos
Print in a script called by cron does not print to web2py console. At least in my windows machine. Also i read the book and the examples of cron points to files in the file system forgetting the application folder. I think cron tasks should be in the application path and inside cron folder or

[web2py] Development Partnership

2010-11-23 Thread Steve Shepherd
I am looking for a Web2Py developer or team that can work with me on a new project. The application is a Saas service that charges customers monthly so I am happy to give a % of ownership for working on the project. Would also look at hourly rate but this will depend on your experience and

[web2py] Re: trying to make auth.settings.login_next more dynamic

2010-11-23 Thread mdipierro
what is the problem you are trying to solve? On Nov 23, 4:41 pm, Michele Comitini michele.comit...@gmail.com wrote: Massimo, to make  the auth.settings.login_next more dynamic could be this a solution? in the model: class FunctorFactory(object):     def __init__(self, f=lambda:None):      

[web2py] Re: Development Partnership

2010-11-23 Thread mdipierro
You may want to look among people who signed up on experts4solutions.com On Nov 23, 6:26 pm, Steve Shepherd sargs...@gmail.com wrote: I am looking for a Web2Py developer or team that can work with me on a new project. The application is a Saas service that charges customers monthly so I am

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Timbo
Rocket is not dead but I did take several months off due to injury and a job change. I'm actually working on 1.2 which should see some performance improvements on Windows. I'll go download a copy of web2py and report back. -tim On Nov 22, 5:25 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote:

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Timbo
Set numthreads=0 in your options.py. See if you still see this behavior. -tim On Nov 23, 7:03 pm, Timbo tfarr...@owassobible.org wrote: Rocket is not dead but I did take several months off due to injury and a job change.  I'm actually working on 1.2 which should see some performance

Re: [web2py] Re: trying to make auth.settings.login_next more dynamic

2010-11-23 Thread Michele Comitini
for one multiple login types, without using RXP 2010/11/24 mdipierro mdipie...@cs.depaul.edu: what is the problem you are trying to solve? On Nov 23, 4:41 pm, Michele Comitini michele.comit...@gmail.com wrote: Massimo, to make  the auth.settings.login_next more dynamic could be this a

Re: [web2py] Re: Development Partnership

2010-11-23 Thread Steve Shepherd
Thanks Massimo... by the way I haven't been back to web2py for a while as I had a role that didn't require development. You and the team have made amazing advances. This is a stellar product with support beyond belief compared to the old days of Borland and Microsoft. I am a closet Foxpro

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Anthony
On Nov 23, 8:10 pm, Timbo tfarr...@owassobible.org wrote: Set numthreads=0 in your options.py.  See if you still see this behavior. options.py is just for running web2py as a Windows service, no? I'm not running web2py as a Windows service when I observe the problem. Anthony

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Jonathan Lundell
On Nov 23, 2010, at 5:26 PM, Anthony wrote: On Nov 23, 8:10 pm, Timbo tfarr...@owassobible.org wrote: Set numthreads=0 in your options.py. See if you still see this behavior. options.py is just for running web2py as a Windows service, no? I'm not running web2py as a Windows service when

[web2py] Re: Creating vars in a URL

2010-11-23 Thread DenesL
Massimo, I have emailed you a patch for this and another smaller problem. On Nov 22, 8:23 pm, DenesL denes1...@yahoo.ca wrote: To get a url you should use URL as explained inhttp://web2py.com/book/default/chapter/04#URL and it should look something like

[web2py] Re: Development Partnership

2010-11-23 Thread vihang
Steve, Can you email me the project details. I have a team of web2py developers at my end. Vihang On Nov 24, 6:16 am, Steve Shepherd sargs...@gmail.com wrote: Thanks Massimo... by the way I haven't been back to web2py for a while as I had a role that didn't require development. You and the

[web2py] Re: Upgrade web2py on webfaction

2010-11-23 Thread JoeCodeswell
Here's how I just upgraded to Version 1.89.5 on webfaction. It seemed to work. 'wp' is the name of my webFaction-application-directory which contains: $ tree -L 2 . |-- apache2 | |-- bin | |-- conf | |-- lib | |-- logs | `-- modules |-- bin |-- htdocs | `-- index.py |-- lib | `--

[web2py] Re: your assignment freelancer.org

2010-11-23 Thread Richard
Is this appropriate for the web2py mailing list? Many students cheat on assignments. On Nov 19, 6:50 pm, mdipierro mdipie...@cs.depaul.edu wrote: This looks like somebody's homework assignment http://www.i-freelancer.org/php/python-expert-for-a-small-assignment-... Massimo

Re: [web2py] Re: Development Partnership

2010-11-23 Thread Steve Shepherd
Vihang I need to see some examples of work? Are you interested in % share type of development? I will need an NDA signed before showing you all the details. Steve On 24 November 2010 16:13, vihang vihan...@gmail.com wrote: Steve, Can you email me the project details. I have a team of

[web2py] Re: Upgrade web2py on webfaction

2010-11-23 Thread GoldenTiger
On 19 nov, 15:18, Bruno Rocha rochacbr...@gmail.com wrote: I did the upgrade by admin 2 times and that broke my system. Bruno Rochahttp://about.me/rochacbruno/bio do you remember versions that broke it?

Re: [web2py] is_in_db error message translation

2010-11-23 Thread Vinicius Assef
Are you getting some error message? On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello, I try this : db.table1.field1.requires=\  IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value not available')) But not working... How may I

[web2py] Re: Creating vars in a URL

2010-11-23 Thread mdipierro
uploading to trunk. thanks On Nov 23, 8:54 pm, DenesL denes1...@yahoo.ca wrote: Massimo, I have emailed you a patch for this and another smaller problem. On Nov 22, 8:23 pm, DenesL denes1...@yahoo.ca wrote: To get a url you should use URL as explained

[web2py] CRUD json/xml/etc not using format

2010-11-23 Thread Kurt Grutzmacher
I'm wondering if this is expected behavior or not with CRUD. Given two tables: db.define_table('hash_types', Field('htype', 'string', requires=IS_NOT_EMPTY()), format='%(htype)s', ) db.define_table('hashes', Field('enchash', required=True, unique=True, label=Encrypted hash),

[web2py] Re: CRUD json/xml/etc not using format

2010-11-23 Thread mdipierro
Yes. On Nov 23, 10:29 pm, Kurt Grutzmacher gr...@jingojango.net wrote: I'm wondering if this is expected behavior or not with CRUD. Given two tables: db.define_table('hash_types',     Field('htype', 'string', requires=IS_NOT_EMPTY()),     format='%(htype)s', ) db.define_table('hashes',  

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Anthony
On Nov 23, 9:26 pm, Jonathan Lundell jlund...@pobox.com wrote: On Nov 23, 8:10 pm, Timbo tfarr...@owassobible.org wrote: Set numthreads=0 in your options.py.  See if you still see this behavior. options.py is just for running web2py as a Windows service, no? I'm not running web2py as a

[web2py] Getting AttributeError:EXISTS instance has no __call__ method when deploying to AppEngine from Admin Console

2010-11-23 Thread Narendran
Hello Web2Py, I'm now just trying out Web2py 1.85.1, and learning to deploy my apps on Google AppEngine. I'm able to deploy my web2py app successfully by running appcfg.py from command prompt, but if I try to do the same from admin console using Deploy on Google App Engine feature, I keep getting

[web2py] web2py.gluon.html.XML allowing relative urls

2010-11-23 Thread Jlew
I noticed that the XML module does not allow relative URL's when sanitize is set to true. I would think that local urls would be helpful to allow as the web2py URL function produces relative urls. It would only make sense to allow relative links. I found a case where html links generated from url

  1   2   >