Re: [web2py] Re: WindowsError 2 and markmin2pdf

2011-07-27 Thread Martin Weissenboeck
2011/7/26 Massimo Di Pierro > It requires latex. Do you have pdflatex installed on windows? No. During the last hours I have tried to get a (small?) pdflatex package, but I have only found complete Latex packages (1GB and so on). Today I am at Crete/Greece and the data connection is very poor.

[web2py] Re: Strange form behaviour.

2011-07-27 Thread annet
Massimo, Thanks for your reply. > anyway, what is that line for? I based the solution on a reply in this thread: http://groups.google.com/group/web2py/browse_thread/thread/fb52f68d78e8f64e/67ef4e73e5b93e5e?lnk=gst&q=form+colon#67ef4e73e5b93e5e I simply wanted to get rid of the colon after eve

[web2py] Re: GAE and atomic inserts: DAL enhancement?

2011-07-27 Thread howesc
i opened ticket 350: http://code.google.com/p/web2py/issues/detail?id=350 i'm happy to do some work here and/or help test things.

[web2py] Re: WindowsError 2 and markmin2pdf

2011-07-27 Thread Massimo Di Pierro
You have to do it in two steps. - step one you call markmin2latex and save the output in a file (sample.tex) - step two: from gluon.contrib.markmin.markmin2pdf import latex2pdf latex = open('sample.tex','rb') latex2pdf(latex, pdflatex='pdflatex', passes=3) and replace the ;pdflatex' with the comm

[web2py] Edit record vs View record

2011-07-27 Thread António Ramos
hello * in my controller * form= SQLFORM(db.table.request.args[0]) return dict(form=form) *in my view* {{=form}} This is to edit the record How to code to only view the record? thank you António

[web2py] Re : Edit record vs View record

2011-07-27 Thread JmiXIII
You should maybe use CRUD : http://web2py.com/book/default/chapter/07?search=crud#CRUD crud.read(db.tablename, id) returns a readonly form for tablename and record id.

[web2py] Web2py anyserver.py with FAPWS

2011-07-27 Thread tejus pratap
HI, I tried to use anyserver.py with FAPWS, but I got an error - "Failed to parse the start parameters. Must be 2 strings."

[web2py] Re: Edit record vs View record

2011-07-27 Thread Massimo Di Pierro
form= SQLFORM(db.table.request.args[0],readonly=True) On Jul 27, 4:43 am, António Ramos wrote: > hello > > * in my controller * > >   form= SQLFORM(db.table.request.args[0]) > return dict(form=form) > > *in my view* > > {{=form}} > > This is to edit the record > > How to code to only view the re

[web2py] Re: Web2py anyserver.py with FAPWS

2011-07-27 Thread Massimo Di Pierro
Try replace evwsgi.start(*address[0]) with evwsgi.start(address[0],str(address[1])) in anyserver.py On Jul 27, 3:25 am, tejus pratap wrote: > HI, > I tried to use anyserver.py with FAPWS, but I got an error -  "Failed > to parse the start parameters. Must be 2 strings."

[web2py] Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Jagmal
Hi All, I have a view which includes a flash .swf file. The view has proper permissions using Auth but how do I make sure that noone can access .swf file directly? Thanks, Jagmal

[web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Jagmal
To be clear: Let us say I have a view app/default/view.html, which has a flash file (say FLASH.swf) embedded inside it. One can access this view only if s/he has proper permission. The flash file is supposed to be accessible only on permission too. But, what if someone tries to directly access

[web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Massimo Di Pierro
Can you move it? Put it under views, create a controller with the same name and link that. You can have the controller check for permissions. On Jul 27, 5:18 am, Jagmal wrote: > To be clear: > > Let us say I have a view app/default/view.html, which has a flash file (say > FLASH.swf) embedded ins

[web2py] How to one2many ?

2011-07-27 Thread François Le Gal
That's the code i try : db_system = SQLDB("sqlite://db_system.db") db_system.define_table("fields",Field("name")) db_system.define_table("objects",Field("name"),Field("fields",db_system.fields)) But when i execute this code, i got this error : File "/home/fanch/Logiciels/web2py/gluon/dal.py", l

Re: [web2py] How to one2many ?

2011-07-27 Thread Johann Spies
On 27 July 2011 13:07, François Le Gal wrote: > That's the code i try : > > db_system = SQLDB("sqlite://db_system.db") > > db_system.define_table("fields",Field("name")) > > db_system.define_table("objects",Field("name"),Field("fields",db_system.fields)) > > Try another name for 'fields' and see

Re: [web2py] How to one2many ?

2011-07-27 Thread François Le Gal
That's it ! I just change "fields" to "fields_tmp" and it works ! Thanks ! Regards François 2011/7/27 Johann Spies > On 27 July 2011 13:07, François Le Gal wrote: > >> That's the code i try : >> >> db_system = SQLDB("sqlite://db_system.db") >> >> db_system.define_table("fields",Field("name"))

[web2py] Re: How to one2many ?

2011-07-27 Thread Massimo Di Pierro
Johannes is right (try another name for the fields field) yet the line of the error does not exist in my copy of dal.py. Also try a newer web2py version, you may get no error, or a better description of the problem. Massimo On Jul 27, 6:07 am, François Le Gal wrote: > That's the code i try : > >

Re: [web2py] Re: multiselect with part of a table

2011-07-27 Thread Nicolas Palumbo
any ideas?

[web2py] Re: How to add a IS_NOT_EMPTY constrait to list:reference field?

2011-07-27 Thread Iceberg
Hi Massimo, will this issue be addressed in coming web2py 1.98.1? Thanks in advance. Ray On Jul 24, 10:29 pm, Iceberg wrote: > I prefer to use crud, but it is not qualified for your workaround I > think. > > On the other hand, you said that there is a "custom" widget which > interfere with valid

[web2py] Ubuntu pip install web2py in virtualenv

2011-07-27 Thread flebber
I installed web2py into a virtualenv in my ubuntu install. When reading the book it states to start web2py with "python web2py.py -S welcome" however I don't appear to have web2py in my directory. directory being /home/sayth/.virtualenvs/learnWeb2py/bin the most likely candidate is runweb2py Is

Re: [web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Bruno Rocha
You can put the flash file referenced in 'upload' field in database, then use download function + auth to check permissions to it. On Wed, Jul 27, 2011 at 7:18 AM, Jagmal wrote: > To be clear: > > Let us say I have a view app/default/view.html, which has a flash file (say > FLASH.swf) embedded i

[web2py] Re: How to add a IS_NOT_EMPTY constrait to list:reference field?

2011-07-27 Thread Massimo Di Pierro
Do not know. It is not addressed yet. On Jul 27, 8:08 am, Iceberg wrote: > Hi Massimo, will this issue be addressed in coming web2py 1.98.1? > Thanks in advance. > > Ray > > On Jul 24, 10:29 pm, Iceberg wrote: > > > > > > > > > I prefer to use crud, but it is not qualified for your workaround I

Re: [web2py] Re: How to one2many ?

2011-07-27 Thread François Le Gal
Strange, i have this version : Version 1.97.1 (2011-06-26 19:25:44) Is there a newer ? 2011/7/27 Massimo Di Pierro > Johannes is right (try another name for the fields field) yet the line > of the error does not exist in my copy of dal.py. Also try a newer > web2py version, you may get no error,

[web2py] Re: How to one2many ?

2011-07-27 Thread Massimo Di Pierro
try the one labeled as "nightly build" from the download page. On Jul 27, 8:22 am, François Le Gal wrote: > Strange, i have this version : > Version 1.97.1 (2011-06-26 19:25:44) Is there a newer ? > > 2011/7/27 Massimo Di Pierro > > > > > > > > > Johannes is right (try another name for the field

[web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
Hello, i have a table for clients and a field Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id ','auth_user.email')) this way in admin when i populate a record i can only select one user from auth_user. *What if i want to select multiple users at once?* thank you

Re: [web2py] Re: How to one2many ?

2011-07-27 Thread François Le Gal
I try with the last one as you say, and i have this error now : File "/home/fanch/Logiciels/web2py/gluon/dal.py", line 4305, in define_table t._create_references() File "/home/fanch/Logiciels/web2py/gluon/dal.py", line 4615, in _create_references field=self[fieldname] File "/home/fanch

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread Kenneth Lundström
Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id ','auth_user.email'), multiple=True) Kenneth this way in admin when i populate a record i can only select one user from auth_user. *What if i want to select multiple users at once?* thank you

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
File "D:/web2py10/web2py/applications/Vendas/models/db.py", line 101, in TypeError: __init__() *got an unexpected keyword argument 'multiple'*

[web2py] Re: How to one2many ?

2011-07-27 Thread Massimo Di Pierro
definitively the problem is the name "fields" for the objects table. This should be caught. Will fix it. "fields" is an invalid field name. Massimo On Jul 27, 8:32 am, François Le Gal wrote: > I try with the last one as you say, and i have this error now : > > File "/home/fanch/Logiciels/web2py/

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
Sorry, it works now instead of Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id','auth_user.email'), multiple=True) i write this and works Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id','auth_user.email', multiple=True)) Em 27 de julho de 2011 14:38, António Ramos e

Re: [web2py] Ubuntu pip install web2py in virtualenv

2011-07-27 Thread Johann Spies
On 27 July 2011 14:08, flebber wrote: > I installed web2py into a virtualenv in my ubuntu install. When > reading the book it states to start web2py with "python web2py.py -S > welcome" however I don't appear to have web2py in my directory. > Are you referring to web2py or web2py.py in that dire

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread Kenneth Lundström
Sorry my bad, pasted it on the wrong side of the ). Kenneth Sorry, it works now instead of Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id ','auth_user.email'), multiple=True) i write this and works Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user

[web2py] Relationship help

2011-07-27 Thread Web2Py Freak
hello , -am making a blog website and it has images but i get the same image for all the posts , please help me with the select , here is my code : db.py : db.define_table('blogpost',Field('title'),Field('post','text'),Field('author'),Field('datetime','datetime',default=request.now)) db.blogpo

[web2py] Re: Is the classic green and black layout still available?

2011-07-27 Thread John-Kim Murphy
Someone posted these earlier: http://groups.google.com/group/web2py/msg/954dfcfd1adeb440 I think you're looking for the second attachment, web2py.plugin.layout_blank_1_81_5 On Jul 26, 10:08 am, G wrote: > Hi, > I think the former green and black default layout looks very nice, so > I'd like to

Re: [web2py] How to one2many ?

2011-07-27 Thread Anthony
Note, db.[tablename].fields stores a list of the names of the table's fields -- that's why you don't want to use 'fields' itself as a field name. Anthony On Wednesday, July 27, 2011 9:03:36 AM UTC-4, François Le Gal wrote: > That's it ! I just change "fields" to "fields_tmp" and it works ! Tha

Re: [web2py] Relationship help

2011-07-27 Thread Kenneth Lundström
> images=db().select( db.image.ALL, db.blogpost.ALL, left=db.image.on(db.blogpost.id==db.image.blog_id)) As I understand that row, you are selecting all images you have i database, shouldn´t it be something like: images=db(db.image.blog_id == request.args[0]).select(..

[web2py] Re: How to one2many ?

2011-07-27 Thread Massimo Di Pierro
now web2py will "explain" the error. On Jul 27, 9:18 am, Anthony wrote: > Note, db.[tablename].fields stores a list of the names of the table's fields > -- that's why you don't want to use 'fields' itself as a field name. > > Anthony > > > > > > > > On Wednesday, July 27, 2011 9:03:36 AM UTC-4, F

Re: [web2py] Re: How to one2many ?

2011-07-27 Thread François Le Gal
Because i just wanna store object's fields which are not database fields :) 2011/7/27 Massimo Di Pierro > now web2py will "explain" the error. > > On Jul 27, 9:18 am, Anthony wrote: > > Note, db.[tablename].fields stores a list of the names of the table's > fields > > -- that's why you don't wa

[web2py] form.vars not working on new form

2011-07-27 Thread Kenneth Lundström
I have this controller function (simplified to make it easier to read): def testing(): statuses = db(db.t_status.f_company==1).select(orderby=db.t_status.f_status) form = SQLFORM(db.t_ticket) form.vars.f_status = statuses[0].id if form.accepts(request.vars, session): res

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
Another detail, and if i need to filter the requires=IS_IN_DB(db,'auth_user.id','auth_user.email') to show only some users base in some kind of criteria? 2011/7/27 Kenneth Lundström > Sorry my bad, pasted it on the wrong side of the ). > > Kenneth > > > Sorry, > it works now > > instead

[web2py] Re: Relationship help

2011-07-27 Thread Web2Py Freak
i tryed it , its the same it gets me all the images

Re: [web2py] form.vars not working on new form

2011-07-27 Thread Furqan Rauf
Just a conceptual question for forms, sorry Kenneth that I am asking further question instead of trying to answer your question. I am newbie as well. Lets say we have 2 functions that create forms on two different view pages or same page and in controller we have 2 functions returning form dictiona

Re: [web2py] Re: Relationship help

2011-07-27 Thread Richard Vézina
Your view take your image in your upload folder so it normal you will get all images : INDEX VIEW {{extend 'layout.html'}} {{=crud.create(db.blogpost)}} {{=crud.create(db.image)}} {{for blog in blogpost:}} {{=blog.title}} {{=blog.post}} {{for pic in images:}} {{pass}} {{=blog.author}} {{

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread Kenneth Lundström
Something like this, could be some typos, but you´ll get the idea. requires=IS_IN_DB(db(db.auth_user.id < 10),'auth_user.email') Kenneth Another detail, and if i need to filter the requires=IS_IN_DB(db,'auth_user.id ','auth_user.email') to show only some users base in

Re: [web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Jagmal
Does 'upload' field not just copy file over to a location and provide its link when asked? If so, I should be able to access the file directly anyhow by looking at the URL in the final HTML. Am I missing anything?

[web2py] SSO on active directory

2011-07-27 Thread Remco Boerma
Hello all, Here are my findings for enabling SSO via CAS using web2py, IIS and isapi-wsgi. My main question is a feature request, hopefully someone will come up with an even simpler or smarter solution. What i've done is creating a simple CAS server application. In a newly created application i'v

Re: [web2py] Upload File via HTTP

2011-07-27 Thread Ismael Serratos
Like this?? db.define_table('configfiles' Field('cfgfile','upload')) def getfiles(): form= SQLFORM(db.configfiles) if form.accepts(request.vars): db.configfiles.insert(cfgfile=db.configfiles.cfgfile.store(request.vars.Filedata.file, request.vars.Filedata.filename)) return dict

[web2py] Re: confused on routes.py

2011-07-27 Thread Wikus van de Merwe
Yes, if host.domain.tld/meetings/2011/ points to the MYAPP already, you don't need routes_in. Probably your outgoing routes mapping should look like this: routes_out = ( ("/MYAPP/(.*)", r"/meetings/2011/MYAPP/\1"), )

[web2py] Re: form.vars not working on new form

2011-07-27 Thread DenesL
Hi Kenneth, form.accepts will set the form.vars to the submitted values in the request, overwriting anything you put there. I think you want to use default: db.t_status.f_status.default = statuses[0].id form = SQLFORM(db.t_ticket) ... On Jul 27, 10:38 am, Kenneth Lundström wrote: > I ha

[web2py] Re: routes for crud

2011-07-27 Thread Wikus van de Merwe
Why not simply use /sr/action/id without any url remapping? What is the advantage of having an argument and function name order reversed? For viewing the record you still need to call a specific function, e.g. /sr/view/1. Anyway, if you want it your way, try this: routes_in = ( ("/sr/(\d+)/(

Re: [web2py] Upload File via HTTP

2011-07-27 Thread pbreit
The problem with SQLFORM is that I think it's going to be expecting a hidden field for security purposes. You might need to just write a controller that processes request.post_vars.myfile manually.

[web2py] Re: web2py GAE and memory usage

2011-07-27 Thread Wikus van de Merwe
The thing is that when you read from datastore you always read all properties of an entity. Each entity can take up to 1MB, so I can imagine reading 500 of them could hit the instance limit. The solution would be to use GAE cursor and cycle your task. In pseudo code: def request_handler(): ma

Re: [web2py] Re: Relationship help

2011-07-27 Thread pbreit
This brings up a question that I've had for awhile. If one page I want to show multiple blog posts each which has multiple comments, what is the best approach? Do I create one big left join and then try to loop through fors blog posts and then comments, checking if the comment belongs to the po

[web2py] Re: Web2py anyserver.py with FAPWS

2011-07-27 Thread pbreit
I see Fapws making some bold claims on performance but I don't really understand what it does. Is it a web server like Apache and Nginx?

Re: [web2py] Re: How to debug HTTP 500 error on GAE?

2011-07-27 Thread Wikus van de Merwe
Yes. There is no call to session.connect(). As I'm running the app on GAE I wanted to avoid the default file system based session. If this is not default any more and there is no session at all until explicitly created I can safely remove it. The bigger problem here are the logs though. Why woul

Re: [web2py] Re: How to debug HTTP 500 error on GAE?

2011-07-27 Thread Jonathan Lundell
On Jul 27, 2011, at 10:36 AM, Wikus van de Merwe wrote: > Yes. There is no call to session.connect(). As I'm running the app on GAE I > wanted to avoid the > default file system based session. If this is not default any more and there > is no session at all > until explicitly created I can safel

Re: [web2py] Re: form.vars not working on new form

2011-07-27 Thread Kenneth Lundström
Thanks, I looked through my code and found several use of default, but for some reason I used form.vars this time. Changing to default works perfect. Kenneth Hi Kenneth, form.accepts will set the form.vars to the submitted values in the request, overwriting anything you put there. I think

Re: [web2py] form.vars not working on new form

2011-07-27 Thread Kenneth Lundström
Hi Furqan, it´s much easier to create a new topic then use somebody elses topic to ask a new question. You´ll probably even get faster answers. I´m not 100% sure I understand your question, but is it so that you want to have two or more forms on one page? If so please read: http://web2py.com

[web2py] record id to 1!

2011-07-27 Thread António Ramos
hello, i deleted all record from a table the id stil mantains the last id when i create the first record again. it is not important but if i coud reset the id, it would stop me from going crazy Thank you António

Re: [web2py] Upload File via HTTP

2011-07-27 Thread Ismael Serratos
I found this for Django I need exactly the same but for web2py could you help me to translate??? or to give me a hint? # - upload_file.py # upload binary file with pycurl by http postc = pycurl.Curl()c.setopt(c.POST, 1)c.setopt(c.URL, "http://127.0.0.1:8000/receive/";)c.set

Re: [web2py] record id to 1!

2011-07-27 Thread Kenneth Lundström
This is a database "problem" not web2py. Depending on what database engine your are using there is different solutions. Google is your friend on this. Kenneth hello, i deleted all record from a table the id stil mantains the last id when i create the first record again. it is not important

[web2py] Implementing task queue model - need some help

2011-07-27 Thread John Duddy
I'd like to use a cron job running with @reboot to process a queue. What I want in the queue are the names of modules & functions to call, and a time to call them. Here's the catch - I'd like the functions in the queue to be in a controller. Here's where I execute (next is the row with the task q

Re: [web2py] record id to 1!

2011-07-27 Thread Ismael Serratos
Hi Antonio, check this out http://www.web2py.com/book/default/chapter/06?search=truncate#insert db.table.truncate() 2011/7/27 António Ramos > hello, i deleted all record from a table > > the id stil mantains the last id when i create the first record again. > > it is not important but if i cou

[web2py] Re: record id to 1!

2011-07-27 Thread Massimo Di Pierro
if you run it form the shell remember to db.commit() On Jul 27, 1:08 pm, Ismael Serratos wrote: > Hi Antonio, check this out > > http://www.web2py.com/book/default/chapter/06?search=truncate#insert > > db.table.truncate() > > 2011/7/27 António Ramos > > > > > > > > > hello, i deleted all record

[web2py] Postgres quoted identifiers

2011-07-27 Thread Álvaro J . Iradier
Hi, migrating my application to Postgres, I've been hit by the "user" reserved keyword problem previously commented on http://groups.google.com/group/web2py/browse_thread/thread/f23c03ff8143b55/15602d3158ae5e6c. According to PostgreSQL documentation, http://www.postgresql.org/docs/8.2/static/sql-

[web2py] Re: Postgres quoted identifiers

2011-07-27 Thread Massimo Di Pierro
Yes. The dal was rewritten to allow this. The reason it was never implemented fully is that I cannot find documentation about this for all supported db engines. Implementing this only for mysql and pgsql is a pain. On Jul 27, 2:34 pm, Álvaro J. Iradier wrote: > Hi, > > migrating my application to

[web2py] wiki.web2py.com seems pretty broken

2011-07-27 Thread Rufus
Is the wiki still actively supported in any way? I found a problem in a tutorial and wanted to make a correction, but I couldn't edit it (not being registered) I tried to register as a new user, and I kept getting "invalid" when entering a new user password. Also none of the links work on the fr

[web2py] Re: wiki.web2py.com seems pretty broken

2011-07-27 Thread Anthony
No, I think the old wiki has mostly been abandoned. That sort of stuff goes on http://www.web2pyslices.com/ now. Anthony On Wednesday, July 27, 2011 4:31:20 PM UTC-4, Rufus wrote: > Is the wiki still actively supported in any way? > > I found a problem in a tutorial and wanted to make a corre

[web2py] Re: web2py for freelance work

2011-07-27 Thread DJ
Hi there, I get this question all the time. End of the day, what matters most to clients is rapid deployment and low cost of software maintenance in addition to nailing their requirements. I have deployed Web2Py in companies and top hospitals across the US, within their corporate IT groups. Be

[web2py] Re: wiki.web2py.com seems pretty broken

2011-07-27 Thread Massimo Di Pierro
Is that linked somewhere? Massimo On Jul 27, 3:31 pm, Rufus wrote: > Is the wiki still actively supported in any way? > > I found a problem in a tutorial and wanted to make a correction, but I > couldn't edit > it (not being registered) > > I tried to register as a new user, and I kept getting "

Re: [web2py] Re: Freezes Ramdonly after 36 hrs of running.

2011-07-27 Thread Phyo Arkar
After disabling cron i dont experience freeze so far (now 3rd day) So why Cron causes freeze? On 7/24/11, Massimo Di Pierro wrote: > does it freeze without cron? > > On Jul 24, 4:29 am, Phyo Arkar wrote: >>    Web2py seems to be freezing (One CPU using 100%) Randomly. The >> pages are only no

[web2py] Re: please check out the nightly built

2011-07-27 Thread JorgeH
Is there a Changelog?

[web2py] DAL/SQL question

2011-07-27 Thread Kenneth Lundström
Hello, what would be the easiest way to find out how many items there is in a table grouped by a field. I have a table where tickets are stored. Every ticket has an status, he number of statuses can change (only a reference to the t_status table). How do I find out how many tickets there i

Re: [web2py] Re: please check out the nightly built

2011-07-27 Thread Richard Vézina
Not for the nightly build I think, just the current stable version... There : http://web2py.com/examples/default/changelog There is this for the nightly build : http://www.web2py.com/examples/static/nightly/tests.log All from this page : http://web2py.com/examples/default/download Richard

[web2py] Re: please check out the nightly built

2011-07-27 Thread Anthony
On Wednesday, July 27, 2011 5:19:57 PM UTC-4, JorgeH wrote: > > Is there a Changelog? > http://code.google.com/p/web2py/source/browse/README#1126

[web2py] Re: Freezes Ramdonly after 36 hrs of running.

2011-07-27 Thread Massimo Di Pierro
There are many things that can go bad with cron. The problem is that is a job locks a resource, the next jobs starts and finds the recource locked, etc etc. eventually you run out of memory with lots of locked processes. It may be a missing unlock, a missing commit, a race conditions, etc. My advic

[web2py] Re: DAL/SQL question

2011-07-27 Thread Massimo Di Pierro
rows = db().select(db.t_ticket.f_status,db.t_ticket.id.count(),groupby=db.t_ticket.f_status) for row in rows: print row.status, row(db.t_ticket.id.count()) On Jul 27, 4:24 pm, Kenneth Lundström wrote: > Hello, > > what would be the easiest way to find out how many items there is in a > table

[web2py] Any LDAP auth users out there?

2011-07-27 Thread Brian M
Anybody out there use the contributed ldap_auth? I've got a strange problem where it'll work just fine from my dev box on one subnet but not on the production server which is on another subnet (and the same subnet as the LDAP server). Anybody have any ideas about what could be going on? ~Bria

Re: [web2py] Any LDAP auth users out there?

2011-07-27 Thread Ismael Serratos
Subnets are in the same domain? On Wed, Jul 27, 2011 at 5:21 PM, Brian M wrote: > Anybody out there use the contributed ldap_auth? I've got a strange > problem where it'll work just fine from my dev box on one subnet but not on > the production server which is on another subnet (and the same su

[web2py] Introducing Grafpad!

2011-07-27 Thread Charles Law
Hi everyone, My friend and I have been using Pyjamas and web2py for over a year now, and we've decided to release our app. Our app is called Grafpad (http://www.grafpad.com) and it is a vector-based drawing application that allows users to hand-draw shapes then converts them to legible shapes on t

[web2py] Re: Fedora deployment script issues on Amazon (and fixes)

2011-07-27 Thread Charles Law
Here are the (very minor) differences: diff --git a/setup-web2py-fedora_ami.sh b/setup-web2py-fedora.sh index 7ce520c..8f2878e 100755 --- a/setup-web2py-fedora_ami.sh +++ b/setup-web2py-fedora.sh @@ -179,6 +179,8 @@ if [ ! ${RETV} -eq 0 ]; then # Create the SELinux policy cat > httpd.te

[web2py] Re: Implementing task queue model - need some help

2011-07-27 Thread pbreit
Not quite what you're looking for but since I had trouble with background processes and cron, I am now just wgetting a URL: */1 * * * * wget http://localhost/cron/mail_queue >/dev/null 2>&1 I'm sure this is probably not recommended.

[web2py] Re: Fedora deployment script issues on Amazon (and fixes)

2011-07-27 Thread Charles Law
Opps! I did the diff the wrong way. I just removed, not added, EOF from several places. On Jul 27, 6:48 pm, Charles Law wrote: > Here are the (very minor) differences: > > diff --git a/setup-web2py-fedora_ami.sh b/setup-web2py-fedora.sh > index 7ce520c..8f2878e 100755 > --- a/setup-web2py-fedora

[web2py] Re: Introducing Grafpad!

2011-07-27 Thread Massimo Di Pierro
really cool! On Jul 27, 5:40 pm, Charles Law wrote: > Hi everyone, > > My friend and I have been using Pyjamas and web2py for over a year > now, and we've decided to release our app. Our app is called Grafpad > (http://www.grafpad.com) and it is a vector-based drawing application > that allows us

[web2py] Re: Introducing Grafpad!

2011-07-27 Thread Anthony
Very nice. Congratulations. Just added it to http://web2py.com/poweredby. Anthony

[web2py] Re: web2py GAE and memory usage

2011-07-27 Thread howesc
thanks for the cursor tip - didn't think of that. i suspect my problem is some combination of the data being read in together with the references and de-referencing them - i probably end up with lots of memory usage. what i don't understand is, does GAE just flag a spike in ram usage and resta

[web2py] Re: web2py GAE and memory usage

2011-07-27 Thread Wikus van de Merwe
The exact behaviour of this instance memory control mechanism was not revealed (see http://code.google.com/p/googleappengine/issues/detail?id=1646 ). From your log message it looks like it was the first request that triggered the limit so the garbage collection can hardly be blamed here. And fr

Re: [web2py] Any LDAP auth users out there?

2011-07-27 Thread Brian M
Hmm not certain server is on 10.0.0.x ldap_auth works from 10.0.1.x but not from 10.0.0.x Unfortunately I'm not an expert on ActiveDirectory/LDAP so I don't know for sure how ours is setup.

Re: [web2py] Any LDAP auth users out there?

2011-07-27 Thread Ismael Serratos
So how do you know it's not working? Do you get any error? or just you can't login? On Wed, Jul 27, 2011 at 8:39 PM, Brian M wrote: > Hmm not certain server is on 10.0.0.x ldap_auth works from 10.0.1.x but not > from 10.0.0.x Unfortunately I'm not an expert on ActiveDirectory/LDAP so I > don't

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-27 Thread Christopher Steel
http://www.getskeleton.com/#theFuture

Re: [web2py] Re: Introducing Grafpad!

2011-07-27 Thread Furqan Rauf
amazing application congratulation guys On Wed, Jul 27, 2011 at 6:03 PM, Anthony wrote: > Very nice. Congratulations. > > Just added it to http://web2py.com/poweredby. > > Anthony > -- *-Furqan Rauf* *Do you love your creator? Love your fellow-beings first. -Prophet Muhammad * *http://www.am

[web2py] Re: Web2py anyserver.py with FAPWS

2011-07-27 Thread tejus pratap
I changed evwsgi.start(*address[0]) with evwsgi.start(address[0],str(address[1])), then I got another error that says "too much recursion", so I removed the following function from the fapws static metod: ## def app(environ, start_response): environ['wsgi.multiprocess'] = False ret

[web2py] Re: Web2py anyserver.py with FAPWS

2011-07-27 Thread tejus pratap
I replaced evwsgi.start(*address[0]) with evwsgi.start(address[0],str(address[1])), then when I tried to run web2py I got the error "too many recursions" so I removed the following function from the fapws static method ## def app(environ, start_response): environ['wsgi.multiprocess'] = False

[web2py] Re: Relationship help

2011-07-27 Thread Web2Py Freak
Thank you pbreit .. now it working for me . the standard blogs dosent have the comments in the same page that shows them , u need to make a show page and the you can pass the id of the post to it and then comment on it so the page with the blog posts stays clean . i did a comment link in every p

[web2py] web2py/python question

2011-07-27 Thread Kenneth Lundström
Hello, is it so that if I query a table and ask to get all rows where a fields value is != True then all "None" rows are also exluded, only "False" rows are included? Kenneth

[web2py] Re : Introducing Grafpad!

2011-07-27 Thread dederocks
Hi Charles, Great application! Some bugs, though -- or I haven't understood how to use Grafpad properly: - Using FF, I tried to fill a form with color -- but it doesn't work. Right click on the form, select properties & choose a color -- nothing happens. - Also, I can't send you a feedback! Is i