[web2py] Re: problem with TAG in module

2013-04-04 Thread Ivan Gazzola
Ok Il giorno giovedì 4 aprile 2013 00:10:02 UTC+2, Massimo Di Pierro ha scritto: import gluon should be from gluon import * On Wednesday, 3 April 2013 16:06:24 UTC-5, Ivan Gazzola wrote: I wrote this module my_util.py: #!/usr/bin/env python # coding: utf8 import gluon def

Re: [web2py] Re: scheduler sincronization

2013-04-04 Thread paolo.vall...@gmail.com
Unfortunately I can't install any dbms on that machine, I will make a test on an other 'similar' machine where I have postgres installed. Paolo 2013/4/3 Niphlod niph...@gmail.com ok, at least it seems consistent: there's: - no send_heartbeat(), do_assign_tasks=True line - no Inside If,

[web2py] Re: web2py custom reset password urls

2013-04-04 Thread Sebastian Cambeo
thank you, that helped. I now send a custom link which directs to my url. Also I defined the _next variable of the request_reset_password page manually to point to my login page. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] keyword can't be an expression

2013-04-04 Thread Annet
In a function I have the following code: form.element('input[id=what3]').update(_data-content=My text, _data-toggle=popover, _title=, _data-original-title=My title) This code cannot be saved, it result in a keyword can't be an expression error. data-content, data-toggle and

[web2py] .sum() and .count() in grid?

2013-04-04 Thread Johann Spies
How would I be able to use a query like this (or the DAL equivalent) to show the result in a grid? select so as Journal, SUM(aantal) as Articles from isi.nr_arts_per_journal group by Journal order by Journal Regars Johann -- Because experiencing your loyal love is better than life itself, my

[web2py] web2py Talk

2013-04-04 Thread Francisco Costa
Hi, I'm going to give a briefly presentation about web2py this Saturday: https://tymr.com/event/encontro-python-pt-6-abril-2013-porto/515c6f2a03d36d409716741e Are there any great slides/presentations out there that I can use or get inspiration from? Francisco Costa https://tymr.com -- ---

Re: [web2py] web2py Talk

2013-04-04 Thread António Ramos
like this one http://pt.scribd.com/doc/58040260/apostila-web2py-basico and this one http://pt.scribd.com/doc/12288297/Web2py-vs-Others Abraço António 2013/4/4 Francisco Costa m...@franciscocosta.com Hi, I'm going to give a briefly presentation about web2py this Saturday:

[web2py] Re: Using a recursive select but encountered a broken reference

2013-04-04 Thread Tamas
Hello Marin, sorry for the late reply. I don't have your e-mail (this list doesn't show e-mails), but I am also not sure I can provide a lot more extra info on this. Did you manage to look into it? Did you find anything? Thanks! Tamas On Friday, March 8, 2013 4:00:24 PM UTC+1, Marin Pranjić

[web2py] Re: keyword can't be an expression

2013-04-04 Thread Anthony
See the end of this section in the book: http://web2py.com/books/default/chapter/29/05#HTML-helpers Notice that helper attributes are passed as keyword arguments to the helper. In some cases, however, attribute names include special characters that are not allowed in Python identifiers (e.g.,

[web2py] Re: .sum() and .count() in grid?

2013-04-04 Thread Niphlod
I'm guessing it will be hard. You'll better code a view and access it as a fake table. PS: you show it in a grid then what record do you want to add/edit/delete ? I'm guessing that this time you want to use the grid just to search, orderby and paginate, but there's a LOT of logic inside it

[web2py] Re: SmartGrid Add Mode to Call a Function

2013-04-04 Thread Niphlod
the grid exposes several callbacks that you can use to attach your own counters .oncreate, onupdate and ondelete On Thursday, April 4, 2013 4:55:49 AM UTC+2, Dan Kozlowski wrote: I have a smartgird that is being used for adds, updates, and deletes and wondering how I can call a function

Re: [web2py] StopForumSpam: new plugin available

2013-04-04 Thread Niphlod
good. your bayesian watches the body, while stopforumspam inspects usernames, emails and ips. Don't know how much use can it have to instruct your filter with the terms present in username and emails of stopforumspam, but I'm happy that at least someone will use the plugin :P On Thursday,

[web2py] Re: auth.settings.extra_fields['auth_user']

2013-04-04 Thread Domagoj Kovač
Thanks guys, i solved it other way. On Thursday, April 4, 2013 3:17:49 AM UTC+2, 黄祥 wrote: please try this in your db.py: db.define_table('company', Field('company_name'), Field('website'), format='%(company_name)s') auth.settings.extra_fields['auth_user']=[

[web2py] Multi-tenany and url routing

2013-04-04 Thread Domagoj Kovač
Hi Guys, i am new to web2py. I have a problem and i am not sure how to approach it. I am working on a multitenant application. I have two tables: Tenants - id - name - url_sufix - active - deleted Tenans_users - tenant_id - user_id in tenants table url_sufix is a

[web2py] Matching iterations of a for loop to field names in a table

2013-04-04 Thread David S
I'm very new to web2py and python in general but have a bit of knowledge when it comes to C/C++. I've got a db setup which needs to pull data from a row in a .csv file and put each column in the .csv into the corresponding column in the db. Rather than doing this explicitly (there's ~40

[web2py] Re: Matching iterations of a for loop to field names in a table

2013-04-04 Thread Massimo Di Pierro
This is automatic: db[csv_data].import_from_csv_file(open('filename.csv')) On Wednesday, 3 April 2013 16:40:01 UTC-5, David S wrote: I'm very new to web2py and python in general but have a bit of knowledge when it comes to C/C++. I've got a db setup which needs to pull data from a row

[web2py] any good open courses with web2py?

2013-04-04 Thread jjg0
Are there any good self paced learning courses on webdev with web2py? So far I am enjoying learning how to make websites with web2py. I don't mind spending a little money on courses or learning material, but I really only do this as a hobby so I'm not interested in shelling out several grand

[web2py] REF: Pie/bar Charts

2013-04-04 Thread Teddy Nyambe
whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with cairo/pycairo libraries with very little success, failed to install pycairo on the mac all the googled exmaples not working. Any ideas? --

Re: [web2py] REF: Pie/bar Charts

2013-04-04 Thread Javier Pepe
Hello I am use http://pygooglechart.slowchop.com/ Is very simple, create a file, a use then in the view. On Thu, Apr 4, 2013 at 10:37 AM, Teddy Nyambe software@gmail.comwrote: whats the easiest way to create a pie/bar chart using web2py/python, i was attempting to use pycha with

Re: [web2py] REF: Pie/bar Charts

2013-04-04 Thread António Ramos
D3js is the way to go. Its javascript but hey, its the way to go also. The best part, and matplotlib is behind this, is interactivity in the browser. Apart from other cool stuff Best 2013/4/4 Javier Pepe javierp...@gmail.com Hello I am use http://pygooglechart.slowchop.com/ Is very

Re: [web2py] REF: Pie/bar Charts

2013-04-04 Thread Teddy Nyambe
pygooglechart looks easy, but have a small issue with web2py. I did: easy_install pygooglechart on the python prompt the module is being imported: Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or

[web2py] Re: .sum() and .count() in grid?

2013-04-04 Thread Cliff Kachinske
It would be really sweet to do something like mycrumbtrail = SQLFORM.smartgrid.do_crumbtrail(... or myconsole = SQLFORM.smartgrid.do_console(... On Thursday, April 4, 2013 9:17:11 AM UTC-4, Niphlod wrote: I'm guessing it will be hard. You'll better code a view and access it as a fake

[web2py] Re: keyword can't be an expression

2013-04-04 Thread Annet
Hi Anthony, Thanks for the reference and for your extensive explanation how to solve my problem. The popover works! Best regards, Annet -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving

Re: [web2py] REF: Pie/bar Charts

2013-04-04 Thread Teddy Nyambe
Ok looks like i needed to restart web2py!! its ok now. On Thu, Apr 4, 2013 at 4:07 PM, Teddy Nyambe software@gmail.com wrote: pygooglechart looks easy, but have a small issue with web2py. I did: easy_install pygooglechart on the python prompt the module is being imported: Python

Re: [web2py] REF: Pie/bar Charts

2013-04-04 Thread Teddy Nyambe
The image is generated at google.com, what if there is no internet? this is not good will be operating also in off-line modesbut like the simplicity. On Thu, Apr 4, 2013 at 4:16 PM, Teddy Nyambe software@gmail.com wrote: Ok looks like i needed to restart web2py!! its ok now. On Thu,

[web2py] Re: SmartGrid Add Mode to Call a Function

2013-04-04 Thread Anthony
Another option is to use the DAL callbacks: http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks Anthony On Thursday, April 4, 2013 9:21:14 AM UTC-4, Niphlod wrote: the grid exposes several callbacks that you can use to attach your own counters .oncreate, onupdate

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-04 Thread Richard Vézina
Alec, I think you are on a rigth spot about javascript web2py validator that something that are missing when someone want to transfert some stuff to client side... Now it requires that we reinvent the wheel... If there were a way we could reuse the web2py validators definition and use them in a

Re: [web2py] REF: Pie/bar Charts

2013-04-04 Thread Richard Vézina
better pip install next time... http://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install Mainly because you can delete the package... Richard On Thu, Apr 4, 2013 at 10:07 AM, Teddy Nyambe software@gmail.comwrote: pygooglechart looks easy, but have a small issue with

[web2py] SQLFORM.GRID delete not deleting

2013-04-04 Thread António Ramos
I´m having the same problem reported here https://code.google.com/p/web2py/issues/detail?id=1234 my grid mytable = SQLFORM.grid( db.t_docs.f_trab_ref==query , csv=False, searchable=False,

[web2py] running a web2py application on different os

2013-04-04 Thread Luis
- Hello web2py users, Out of convenience, I was copying a web2py application created in Windows to my home computer (a mac and a debian vm). When I try to run it, it does start well but images cached from openlayers, mainly the background map, render with tiles far apart from each

[web2py] call delete() on row

2013-04-04 Thread Annet
I have the following function: rows=db(db.nodeNavbar.nodeID==id).select() if rows: for r in rows: if r.navbarID==VIEWNAVBARID: view_navbar_delete(id) if r.navbarID==TEXTNAVBARID: text_navbar_delete(id) if

[web2py] Re: running a web2py application on different os

2013-04-04 Thread Niphlod
I doubt it's a web2py problem ... you should check for users hitting the same behaviour using openlayers on different OSes ... probably it's a matter of css . On Thursday, April 4, 2013 5:03:37 PM UTC+2, Luis wrote: - Hello web2py users, Out of convenience, I was copying a web2py

[web2py] Re: web2py dropbox integration

2013-04-04 Thread Yassine Elouri
bump. On Tuesday, April 2, 2013 4:45:08 PM UTC-7, Yassine Elouri wrote: Thanks for the link, but I am not able to get it to work. Maybe I'm doing some thing wrong. Would you please verify this: I create the private/dropbox.key file with APP_KEY:APP_SECRET:dropbox in models/db.py I have

[web2py] Re: web2py dropbox integration

2013-04-04 Thread Yassine Elouri
bump. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

[web2py] Re: Matching iterations of a for loop to field names in a table

2013-04-04 Thread David S
I initially tried using that function however import_from_csv_file() doesn't work with this file. I also tried using a few lines of code to manipulate the data into something import_from_csv_file would like and write that to a .csv then try importing it, but had no luck. Below are the contents

[web2py] Web2py youtube videos - better title?

2013-04-04 Thread António Ramos
hello can i suggest a more descriptive title for these videos? http://www.youtube.com/playlist?list=PL5E2E223FE3777851 I dont want to see all the videos to discover if its contents are interesting. best regards -- --- You received this message because you are subscribed to the Google

[web2py] Re: web2py Talk

2013-04-04 Thread Alan Etkin
Are there any great slides/presentations out there that I can use or get inspiration from? Great presentation in spanish although slightly outdated http://www.slideshare.net/martinpm/web2py-pensando-en-grande-9448110 This is even older, but I would rename it as How do you make a

[web2py] Re: running a web2py application on different os

2013-04-04 Thread Luis
Thanks. I checked my web2py versions and they are the same. I'll take a more careful look at the js within applications. On Thursday, April 4, 2013 11:23:25 AM UTC-4, Niphlod wrote: I doubt it's a web2py problem ... you should check for users hitting the same behaviour using openlayers on

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-04 Thread Derek
I read that metawidget thing and it seems interesting, can you write more about how to get metawidget working with web2py? On Wednesday, April 3, 2013 10:31:36 PM UTC-7, Alec Taylor wrote: On Thu, Apr 4, 2013 at 7:05 AM, Arnon Marcus a.m.m...@gmail.comjavascript: wrote: I agree that it

[web2py] Re: Matching iterations of a for loop to field names in a table

2013-04-04 Thread Massimo Di Pierro
Ok you can do: colnames = ['field1','field2',etc.] for lines in import_data: items = lines.split(',') db[csv_data].insert(**dict((colnames[i],v) for i,v in enumerate(items))) It may still fail of the data is not in the right format but you can find out why. On Wednesday, 3 April 2013

[web2py] Re: SQLFORM.GRID delete not deleting

2013-04-04 Thread Massimo Di Pierro
Can you please try web2py 2.4.* I believe this was fixed. On Thursday, 4 April 2013 09:57:35 UTC-5, Ramos wrote: I´m having the same problem reported here https://code.google.com/p/web2py/issues/detail?id=1234 my grid mytable = SQLFORM.grid( db.t_docs.f_trab_ref==query ,

[web2py] Re: Matching iterations of a for loop to field names in a table

2013-04-04 Thread David S
The data isn't formatted quite right. It's looking like I'll have to format the file a little. As a test, I tried adding the column names to the top of the .csv file and import_from_csv_file works. I'm going to make a function to add the column names to the first line of the file. Thanks for

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-04 Thread Niphlod
just to clarify on the Not a bad argument Arnon, but you shouldn't discount search scrapers so easily. I think Google's Search Bot has support AJAX for a good 5 years now. part . have you actually tried it ?? search bots (google included) have some ajax support in the sense

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-04 Thread Niphlod
PS: ajax is not quite the same as javascript, but the underlying core concept of the previous post is valid for both. On Thursday, April 4, 2013 11:27:02 PM UTC+2, Niphlod wrote: just to clarify on the Not a bad argument Arnon, but you shouldn't discount search scrapers so easily. I

[web2py] response.menu links title tag

2013-04-04 Thread BlueShadow
Hi, when I add normal links to a site I use the A() helper where I can add a title tag (_title=) is there a way to add those to my links in the response menu? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group

[web2py] scheduler init script

2013-04-04 Thread Yoel Benítez Fonseca
i have found this script in the web: /etc/init/web2py-scheluder.conf description web2py task scheduler start on (local-filesystems and net-device-up IFACE=eth0) stop on shutdown respawn exec sudo -u www-data python /home/www-data/web2py/web2py.py -K myapp

[web2py] Do delete of a record appearing in a list:reference cascade?

2013-04-04 Thread Luca
Suppose I have: db.define_table('table_a', Field('name'), ) db.define_table('table_b', Field('my_a', 'list:reference table_a'), ) I create a row_a in table a, and I put its id as member of the list my_a in row_b of table_b. Suppose I then delete row_a. What happens?

[web2py] Re: any good open courses with web2py?

2013-04-04 Thread Luca
I am considering teaching one such class in connection with UCSC in the Fall of this year. Luca On Thursday, April 4, 2013 6:37:15 AM UTC-7, jjg0 wrote: Are there any good self paced learning courses on webdev with web2py? So far I am enjoying learning how to make websites with web2py. I

[web2py] Re: any good open courses with web2py?

2013-04-04 Thread Arnon Marcus
http://www.youtube.com/playlist?list=PL978B2CE2D788F745 nJoy! :) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-04 Thread Derek
After writing this, I realized that it's not beyond my grasp to write my own wsgi web app, so I'm going that route. I've been at it a few days, and I do miss the automatic CSRF and double submit that W2P provides. It's also very easy to just add plugins. Still, I am having fun writing my own

[web2py] Re: Web2py youtube videos - better title?

2013-04-04 Thread Arnon Marcus
It is by a guy who runs this site: http://codeschool.org/ I've watched all his lectures - they are SUPERB (!) Each module is an extremely well organised course. He speaks very clearly, uses very clear slides, and the whole experience is of a highly-structured top-quality course. This

[web2py] Re: web2py Talk

2013-04-04 Thread Arnon Marcus
This is by far the best course I've seen about web2py : http://www.youtube.com/playlist?list=PL5E2E223FE3777851 I couldn't find his slides, but you can try to contact the guy who made it through his website: http://codeschool.org/ -- --- You received this message because you are subscribed

[web2py] Re: Do delete of a record appearing in a list:reference cascade?

2013-04-04 Thread Massimo Di Pierro
In your example when row_a is deleted row_b is unaffected BUT when the form is next visualized the link that no longer exists will disappear. For normal reference the default is ON DELETE CASCADE and linked records are deleted. For list:references the linked records are NOT deleted On

[web2py] Re: Just knew about Server-Sent Events and want to share it with you

2013-04-04 Thread Arnon Marcus
Can you post the actual files? The w2p can't be imported to the latest web2py... Also, some questions: 1. The way I understand this, an implementation would be via a controller-action that receives the event-stream-request, then responds with a 200 OK and that MIME thing, to affirm the

[web2py] Re: any good open courses with web2py?

2013-04-04 Thread Massimo Di Pierro
I was supposed to teach one spring but I did not advertise and was canceled. If there are at least 7 people committed it can still be offered: http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx On Thursday, 4 April 2013 18:30:19 UTC-5, Arnon Marcus wrote:

[web2py] Server-Sent Events

2013-04-04 Thread Arnon Marcus
The only thread on this in this group has been deleted. I have a few questions: 1. The way I understand this, an implementation would be via a controller-action that receives the event-stream-request, then responds with a 200 OK and that MIME thing, to affirm the connection. But from that

[web2py] Re: Server-Sent Events

2013-04-04 Thread Derek
1. How? Usually by a yield somewhere. Where? The already existing open connection knows where. 2. Slow down there, you're overthinking it. Web2py comes with this. Look at web2py/gluon*/contrib/*comet_messaging.py And... watch this video by Bruno Rocha http://vimeo.com/18399381 On Thursday,

[web2py] list:string type field is empty value on edit page

2013-04-04 Thread 黄祥
hi, is it normal for list:string type field is empty when on editing page? e.g. db.define_table('contact', *Field('salutation'),* Field('first_name'), Field('last_name'), *Field('gender', 'list:string'),* Field('birthday', 'date'), Field('job_title'), Field('address',

[web2py] another scheduler Q

2013-04-04 Thread Yoel Benítez Fonseca
i have this setup: 2 severs with the same web2py app installed, each of then run a scheluder worker the problem is that only one of then get jobs, and in db.scheluder_worker the one with do all the work is the only with true in is_ticker field, i just the 2 of em cooperate and pickup the

[web2py] Re: running a web2py application on different os

2013-04-04 Thread Luis
It turned out that the 2.12 version of openlayers was giving me issues with rendering default base map tiles. I switched to 2.11 and problem solved. On Thursday, April 4, 2013 1:27:21 PM UTC-4, Luis wrote: Thanks. I checked my web2py versions and they are the same. I'll take a more careful