Re: [web2py] Re: Help with full text search plugin

2013-07-28 Thread Johann Spies
Postgresql has powerful full text indexing and searching capabilities which you can use. Here are a few links: http://es.scribd.com/doc/92440874/Schatten-SQL2012 http://www.espace.com.eg/blog/2009/03/15/postgresql-an-ultimate-strategy-for-full-text-search/ http://www.slideshare.net/billkarwin/ful

[web2py] Setting hidden fields with custom SQLFORMs

2013-07-28 Thread davedigerati
I've succeeded in using a custom SQLFORM to restrict how many fields of a table the user has to fill out, but now I am trying to set a hidden field value (status) and struggling. I tried in the model to use: form = SQLFORM(db.games) form.vars.status = 'active' but the field never gets w

[web2py] Re: Found solution! cgi.FieldStorage problem exposed

2013-07-28 Thread Joe Barnhart
Guess what?? I've found this bug again -- this time in the DAL module! Here is the affected code, it's a part of the Table class: def _attempt_upload(self, fields): for field in self: if field.type=='upload' and field.name in fields: value = fields[field.

[web2py] Re: How do I apply placeholder text to web2py forms?

2013-07-28 Thread Anthony
No difference between single and double quotes, though you typically use single quotes unless you are quoting something that contains single quotes, in which case you may use double quotes (or triple single/double quotes -- ''' or """). Parentheses are used when calling functions or methods, an

Re: [web2py] Web2py and WebRTC?

2013-07-28 Thread Vinicius Assef
WebRTC has nothing to do with web2py. It's a client specification, concerning basically audio and video capturing and transmission. It's accessed through javascript. On Sun, Jul 28, 2013 at 9:37 PM, Ovidio Marinho wrote: > you did this work in web2py?? you can publish the app? this is very good?

Re: [web2py] Web2py and WebRTC?

2013-07-28 Thread Ovidio Marinho
you did this work in web2py?? you can publish the app? this is very good? Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com 83 8826 9088 - Oi 83 9336 3782 - Claro Brasil 2013/7/28 Mika

[web2py] Re: SQLFORM won't accept after passing 'record' parameter

2013-07-28 Thread Brez Yl
You have right! Instead of: f1 = db.tab1.insert(field_gen='something') form = SQLFORM(db.tab1,record=db.tab1(f1),showid=False, \ fields=['field1','field_gen'], \ ) should be: if len(request.post_vars)==0: f1 = db.tab1.insert(field_gen='something') else: f1 = request.p

[web2py] Re: Scheduler task re-run

2013-07-28 Thread Niphlod
> Ok. Then I guess that for repeating a task on scheduler start it is better > to queue a new identical task when those that have been added are no longer > enqueued, instead of updating a single record, in order to preserve the > task execution information. > > yep, just because it would be e

[web2py] Re: Scheduler task re-run

2013-07-28 Thread Alan Etkin
> In a normal "one-time-only" task when you update the status column and the > times_run (and optionally the stop_time) there will be no problems from the > scheduler perspective, but can be a little bit "wrong" if you > analyze/process tasks (such as the cs_monitor_plugin) later, just becaus

[web2py] Re: How do I apply placeholder text to web2py forms?

2013-07-28 Thread davedigerati
Thank you Anthony- U nailed it. But can I say GR!? I had tried that but copy/pasted the lines so the placeholder still had an = to output and I'm guessing that was what it barfed on Is there a good, short/sweet reference for format of single vs double quotes, parentheses vs brackets? I

[web2py] Re: How do I apply placeholder text to web2py forms?

2013-07-28 Thread Anthony
Should be: {{form.custom.widget.tm_home["_placeholder"] = "Home Team Name"}} {{=form.custom.widget.tm_home}} You can move that first line into the controller if you like. Anthony On Sunday, July 28, 2013 1:41:22 PM UTC-4, davedigerati wrote: > > Been banging my head against the wall with this,

[web2py] Re: How do I apply placeholder text to web2py forms?

2013-07-28 Thread davedigerati
Been banging my head against the wall with this, trying to move from a simple form to a sqlform, and placeholder is not working: in my view this works fine: {{=form.custom.widget.tm_home}} but {{=form.custom.widget.tm_home["_placeholder"] = "Home Team Name"}} or {{=form.custom.widget.tm_home['_pla

[web2py] db._dbname

2013-07-28 Thread Jonathan Lundell
I'd like to make use of db._dbname in my application. I have a utility function that creates indexes on some of my tables, and it needs to distinguish between the production database (mysql) and the development database (sqlite). I've been remembering it separately, but I'm moving a collection o

[web2py] Re: Scheduler task re-run

2013-07-28 Thread Niphlod
you should update also the "counters" (times_run and/or times_failed), and maybe other fields depending on how you scheduled it in the first place (e.g. update stop_time)this never surfaced before as a need, but if we code a requeue_task() api, there will be a few situations where its hard t

[web2py] Re: SQLFORM won't accept after passing 'record' parameter

2013-07-28 Thread Alan Etkin
> > I can't solve problem with SQLFORM update. I need to compute some field > (`field_gen`), and be sure, that form filled by an user will be inserted in > the same record. > Can you show the actual controller (the action that processes the form)? Note that If you use a self submitted update f

[web2py] Re: need help testing app

2013-07-28 Thread greaneym
I don't know if it was a cache or timeout problem but the weather app is working ok now. I checked that the github version is the same as on my server node and local node and it is, so any more testing would be very appreciated. https://github.com/greaneym/weather/ On Thursday, July 25, 2013 8

[web2py] Scheduler task re-run

2013-07-28 Thread Alan Etkin
I have searched the manual and also in this group about re-runing an already queued task (i.e. one with completed status), but it seems there's no information available on this subject. I'm not sure it's a good practice anyway. Suppose I want to set a task to run every time the scheduler instan

[web2py] SQLFORM won't accept after passing 'record' parameter

2013-07-28 Thread Brez Yl
Repost . I can't solve problem with SQLFORM update. I need to compute some field (`field_gen`), and be sure, that form filled by an user will be inserted in the same record. This form; form = SQLFORM(db.tab1, \ fields=['field1','fie

[web2py] How to create a hyperlink from a display field in sqlForm?

2013-07-28 Thread Alex Glaros
How do I create a hyperlink back to parent record ObjectSuperType.id from displayed field db.TaxonomyDetail.objected below? The link would take user to the controller that displays parent table ObjectSuperType. How do I pass the parms to the other controller? Here is the controller for the det

[web2py] Re: apps

2013-07-28 Thread Massimo Di Pierro
The proper way is not to connect the database but use CAS and have one app delegate authentication to another. http://web2py.com/books/default/chapter/29/09/access-control?search=CAS#Central-Authentication-Service On Saturday, 27 July 2013 22:10:34 UTC-5, Oliver wrote: > > can i connect the sam

[web2py] Re: python 3.3.2

2013-07-28 Thread Massimo Di Pierro
About your first question you can read Anthony's answer here: http://stackoverflow.com/questions/17271938/web2py-is-not-starting-with-python-3-0-3-1 Regarding multiple apps/projects web2py is more flexible than Django but we using a different naming convention. We call "app" what they call "proje

[web2py] apps

2013-07-28 Thread Oliver
can i connect the same mysql db to my apps? for example, I have two apps and want to use the same username and login to the apps. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails fr

[web2py] python 3.3.2

2013-07-28 Thread Oliver
I'm new to python web framework and stumble upon web2py. Will web2py works with python 3.3.2. also, can I create multiple apps inside a project like in django? do I need some additional plugins to hook it up to my existing mysql db? -- --- You received this message because you are subscri

[web2py] Re: linked_list dict() - local variable 'fld' referenced before assignment

2013-07-28 Thread James Burke
Playing around with it again, seems to be working now. No idea why it wasn't showing up before. On Sunday, July 28, 2013 12:34:02 PM UTC+12, James Burke wrote: > > Ok i got the updated code. > > No error anymore, but the linked tables don't appear either when > linked_tables is a dict. > > -Jame