[web2py] Fail codification RSS feed when special characters

2015-01-23 Thread damufo
Hi: What string type pass for this work? file: gluon/serializers.py (from 25 Sep 2014) line: 182 def safestr(obj, key, default=''): return str(obj[key]).encode('utf-8', 'replace') if key in obj else default This code fail for me if have special characters. Example: if: obj[key]

[web2py] Re: RSS is an error! What to do?

2014-11-18 Thread damufo
on web2py 2.9.5 obj[key] I pass a unicode Solution now pass obj[key] a string and on gluon/serializers.py line 167 I changed (encode for decode) return str(obj[key]).encode('utf-8', 'replace') if key in obj else default for return str(obj[key]).decode('utf-8', 'replace') if key in obj else def

[web2py] Re: RSS is an error! What to do?

2014-11-17 Thread damufo
Hi: This patch broke my rss. When update web2py 2.9.5 to 2.9.11 the RSS produces an encoding error. Ticket ID > > 192.168.0.109.2014-11-18.08-43-24.a4e11dac-b0ab-49b8-83b7-105ea1ba5ad2 > 'ascii' codec can't encode > character u'\xf3' in position 23: ordinal not in range(128) Version > web2py

[web2py] Some dms (documental management system) on web2py?

2014-10-01 Thread damufo
Hi: I search an dms (documental management system) as http://mayan.readthedocs.org/en/latest/contents.html than is in django. I search some write on web2py, but not found anything. Does anyone know any? Any idea? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

Re: [web2py] Re: Occasionally getting this error

2013-10-09 Thread damufo
I have same problem (occasionally) SO Debian 7 VPS 83.37.153.54.2013-10-09.08-47-01.c139aa5f-0503-4642-933c-a4b3460c70a0 Version web2py™ Version 2.6.4-stable+timestamp.2013.09.22.01.43.37 Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last): File

[web2py] web2py welcome Performance

2013-09-30 Thread damufo
Hi, Gmetrix set a performance for welcome app of 57%. http://gtmetrix.com/reports/www.web2py.com/bS32Abg0 how optimize? how performance "Leverage browser caching" Thanks -- Dani -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

[web2py] Re: SQLFORM.grid and count field (web2py 2.6.0. test)

2013-09-11 Thread damufo
Now work!! the code is: submenus = db.menus.with_alias('menusoptions') query = (db.menus.parent_id == 0) count = submenus.id.count() # bad hack count.tablename = 'menus' count.readable = True count.represent = False count.formatter

[web2py] Re: SQLFORM.grid and count field (web2py 2.6.0. test)

2013-09-11 Thread damufo
Hi, I followed this example with your answer. https://groups.google.com/forum/#!topic/web2py/FwWJGn6LGH8 I add (your "bad hack"): submenus = db.menus.with_alias('menusoptions') query = (db.menus.parent_id == 0) count = submenus.id.count() # bad hack

[web2py] SQLFORM.grid and count field (web2py 2.6.0. test)

2013-09-09 Thread damufo
Hi, I'm using web2py 2.6.0. test. on line sqlhtml 1916 columns = [f for f in fields if f.tablename in tablenames] AttributeError: 'Expression' object has no attribute 'tablename' when field count, count not attribute 'tablename' My code: submenus = db.menus.with_alias('menusopt

Re: [web2py] redirect root folder site another subfolder (thal not is any app)

2013-09-04 Thread damufo
Hi: this solution, work for me: file: routes.py add: routes_in = ( ('./', '303->http://www.domain.org/folder'), ('.', '303->http://www.domain.org/folder'), ) En 04/09/2013 12:46, dam...@gmail.com escribiu: SO debian, apache2 with wsgy and mod_rewrite load Is posible redirect to subfolder

[web2py] redirect root folder site another subfolder (thal not is any app)

2013-09-04 Thread damufo
SO debian, apache2 with wsgy and mod_rewrite load Is posible redirect to subfolder when app is not specified on url? example: http://www.mysite.com/ -> http://www.mysite.com/wordpress/index.php in case http://www.mysite.com/welcome/ (normal work, no redirect anything) I test on /etc/apache2/

[web2py] Re: Check if exist table (dal)

2013-04-17 Thread damufo
Hi, Thanks. My solution was: if self.table_name not in db._migrated: self.install() Best regards. On Tuesday, April 16, 2013 3:31:12 PM UTC+2, dam...@gmail.com wrote: > > > Hi, > In my init class have a install() with create table. > When creates second instance, fail. > >

[web2py] Check if exist table (dal)

2013-04-16 Thread damufo
Hi, In my init class have a install() with create table. When creates second instance, fail. table already defined: mytable Version web2py™ Version 2.4.6-stable+timestamp.2013.04.06.17.37.38 Python Python 2.7.4: C:\Python27\python.exe (prefix: C:\Python27) How check is this exists this table?

[web2py] flash style proposal

2013-04-16 Thread damufo
(For developers) Hi, now, when flash message, this is show Example web2py upgraded; please restart it× This is viewed web2py upgraded; please restart it× web2py upgraded; please restart itx I think that is more beautiful with a space before "" added space in web2py.js line 61 if(flash)

Re: [web2py] Re: web2py 2.1.1 web2py-component-flash breaks backward compatibility

2013-04-16 Thread damufo
Hi, Very thanks!, now work fine! En 16/04/2013 0:59, Massimo Di Pierro escribiu: You need to upgrade web2py.js in your applications copy it from welcome. On Monday, 15 April 2013 11:32:16 UTC-5, dam...@gmail.com wrote: Hi, I have same problem: response.flash = T('Thank you for

[web2py] Re: web2py 2.1.1 web2py-component-flash breaks backward compatibility

2013-04-15 Thread damufo
Hi, I have same problem: response.flash = T('Thank you for your reply!') return Thank%20you%20for%20your%20reply%21 gluon/main.py if request.cid: if response.flash: http_response.headers['web2py-component-flash'] = \

[web2py] Re: web2py 2.1.1 web2py-component-flash breaks backward compatibility

2013-04-15 Thread damufo
Hi, I have same problem: response.flash = T('Thank you for your reply!') return Thank%20you%20for%20your%20reply%21 gluon/main.py if request.cid: if response.flash: http_response.headers['web2py-component-flash'] = \

[web2py] Re: web2py 2.1.1 web2py-component-flash breaks backward compatibility

2013-04-15 Thread damufo
On Monday, October 22, 2012 4:59:15 AM UTC+2, weheh wrote: > > There appears to be some new code in gluon/main.py to handle component > flash. > > # @line 564 in gluon/main.py > if response.flash: > http_response.headers['web2py-component-flash'] = urllib2.quote( > xmlescape(response.flash).

[web2py] Re: A Web2py CMS like Joomla ?

2013-04-02 Thread damufo
Hi: I´m sorry if this isn´t the place for this question. I am looking a project to build anything similar to joomla (a cms) for contribute to development (if I a can/know). I´d like learn web2py while contribute with programing (I know a little). I can start from zero but I prefer join a open sour

[web2py] Re: A Web2py CMS like Joomla ?

2013-04-01 Thread damufo
Thanks. I search anything as joomla CMS, with backend and with plugins. I think instantpress seem more complete. All is discontinued. Exist any project with development active in this moment? On Friday, March 29, 2013 10:08:47 PM UTC+1, samuel bonilla wrote: > > look > > https://github.com/

[web2py] Re: A Web2py CMS like Joomla ?

2013-03-28 Thread damufo
Hi: Wanted to start a project and wanted to know what you recommend for me. >From what I've seen there are several options http://stackoverflow.com/questions/8161644/what-are-the-mature-cmss-and-blogs-built-on-web2py What do you think of instantpress 2.0? Another? None? Thanks! On Friday, May