Re: [web2py] How I can use tag with Markmin?

2013-01-21 Thread Ignacio Ocampo
use extra render. >> >> >> {{text = "`` here is my code ``:pre_with_code"}} >> {{=MARKMIN(text, extra={"pre_with_code": lambda text: >> "{0}".**format(text)})}} >> >> Tested on shell >> >> In [4]: text = "``

Re: [web2py] How I can use tag with Markmin?

2013-01-21 Thread Ignacio Ocampo
Thank you Bruno, and anything :) ? On Mon, Jan 21, 2013 at 10:09 PM, Bruno Rocha wrote: > > `` > Your code here > `` > > for testing: http://web2py.com/markmin > > -- > > > > -- Ignacio Ocampo Millán --

Re: [web2py] How I can use tag with Markmin?

2013-01-21 Thread Ignacio Ocampo
Bruno, thank you. But if I only need the simple ? anything How I can do it? On Monday, January 21, 2013 9:56:35 PM UTC-6, rochacbruno wrote: > > `` > Hello World > ``:code_html > > > `` > print "hello world" > ``:code_python > > On Tue, Jan 22,

[web2py] How I can use tag with Markmin?

2013-01-21 Thread Ignacio Ocampo
How I can use tag with Markmin? Thank you. --

[web2py] Re: Bug: Query with Expression that contains comma and space within

2013-01-20 Thread Ignacio Ocampo
7;s solve the problem? I have web2py version: (2, 2, 1, datetime.datetime(2012, 10, 21, 16, 57, 4), 'stable') Regards. On Sunday, January 20, 2013 3:09:59 PM UTC-6, Massimo Di Pierro wrote: > > I cannot reproduce. Can you post the model? > > On Sunday, 20 January 2013 14:43:58 UTC

[web2py] Bug: Query with Expression that contains space within

2013-01-20 Thread Ignacio Ocampo
When I use custom expression, that contains comma within, it fails if I use an space after comma. *Example 1* --- WORKS --- query = ac(tickets.id>0).select(tickets.name, tickets.created_on, "DATEDIFF(tickets.created_*on,N*OW())") colnames=['tickets.name', 'tickets.created_on', 'DATEDIFF(tickets.

[web2py] Re: Query, COUNT and SUM with custom Expression

2013-01-20 Thread Ignacio Ocampo
Thank you Massimo! Regards. On Sunday, January 20, 2013 2:22:34 PM UTC-6, Massimo Di Pierro wrote: > > Doh! Fixed in trunk. Thanks for reporting this was a serious issue. > > On Sunday, 20 January 2013 12:27:41 UTC-6, Ignacio Ocampo wrote: >> >> I'm working with a cus

[web2py] Query, COUNT and SUM with custom Expression

2013-01-20 Thread Ignacio Ocampo
I'm working with a custom Query, I need use SUM and COUNT together, when I use: select(db.field.count(), db.field.sum()) works OK But when I use: select('COUNT(*)', 'SUM(DATEDIFF(table.field,NOW()))') raise an error I see that I can't combine more that 1 custom expressions. Any idea? --

[web2py] Re: Custom authentication provider

2013-01-08 Thread Ignacio Ocampo
problem automatically but it may break something. Not > sure. > > Please open a ticket: http://code.google.com/p/web2py/issues/list > but let's discuss it some more. > > Massimo > > > > > On Tuesday, 8 January 2013 12:09:09 UTC-6, Ignacio Ocampo wrote: >> &

[web2py] Re: Custom authentication provider

2013-01-08 Thread Ignacio Ocampo
auth.settings.update_fields configuration. Is viable? To open a new ticket. Ignacio Ocampo On Tuesday, January 8, 2013 1:23:45 PM UTC-6, Massimo Di Pierro wrote: > > Perhaps I misunderstand the workflow. The solution cannot be to change an > Auth function to handle a specific custom field. >

[web2py] Re: Custom authentication provider

2013-01-08 Thread Ignacio Ocampo
ternal fields. On Tuesday, January 8, 2013 11:43:44 AM UTC-6, Anthony wrote: > > On Tuesday, January 8, 2013 12:08:34 PM UTC-5, Ignacio Ocampo wrote: > >> I only return a dict in the get_user, web2py does all the work. >> >> web2py call the get_user method, and web2py up

[web2py] Re: Custom authentication provider

2013-01-08 Thread Ignacio Ocampo
I see that only the first time that user login, web2py saves the employee_id. If I logout and login, and I change the employee_id value (I write this in external file to see the value), web2py does not update the field. On Tuesday, January 8, 2013 11:08:34 AM UTC-6, Ignacio Ocampo wrote: >

[web2py] Re: Custom authentication provider

2013-01-08 Thread Ignacio Ocampo
hypothesis 2 is off the table > > BTW: saying that you have a method that returns a dict and stating that > that method doesn't update a field lacks of the key point.. > *Who*writes/updates the auth_user table in your custom class ? > > On Tuesday, January 8, 2013 5:36

[web2py] Custom authentication provider

2013-01-08 Thread Ignacio Ocampo
Hi, I'm working with my own authentication provider as: * auth.settings.login_form=MyAuth()*, all *works correctly*. I need an additional field from default auth_user table definition, I used: *auth.settings.extra_fields['auth_user'] = [Field('**employee_id**', 'text')]*, works correctly (the v

[web2py] Re: error when logging in using site domain

2013-01-04 Thread Ignacio Ocampo
Darry, I had the same problem, I post my solution at: http://nafiux.com/blog/2013/01/04/web2py-deploy-specific-app-with-apache-webserver/ In my case, the problem was caused by a bad RewriteRule configuration at my httpd.conf file. The correct configuration that I used is: DocumentRoot /

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

2013-01-04 Thread Ignacio Ocampo
/wsgihandler.py* Best regards. On Friday, January 4, 2013 6:55:30 PM UTC-6, Massimo Di Pierro wrote: > > Looking into this... > > On Friday, 4 January 2013 15:53:05 UTC-6, Ignacio Ocampo wrote: >> >> I've an app, I register and user and it's ok. >> >> I have

[web2py] Re: error when logging in using site domain

2013-01-04 Thread Ignacio Ocampo
I have the same problem, do you have resolved it? Thanks. On Wednesday, January 2, 2013 7:38:47 PM UTC-6, dr_eeves wrote: > > Hi, > > I have been developing a web application using web2py. Most of the > development has been done using the included development text editor (which > has been great

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

2013-01-04 Thread Ignacio Ocampo
I've an app, I register and user and it's ok. I have 1 instance running with "python web2py.py" at port 8080 (for admin console) ... and I have my httpd.conf configured with WSGI. Both work correctly, but when I try to login in the normal instance (at port 80), I get an error "RuntimeError: Usi

[web2py] web2py don't create or update tables and fields

2013-01-04 Thread Ignacio Ocampo
I have a weird problem with web2py. It can't create or update tables in MySql. Although I'm using auth.define_tables(username=False, signature=False). I only need to refresh my web browser for changes take effect, right? What am I doing wrong? Thank you. --

[web2py] Facebook auth plugin (Basic HTTP Authentication code improvement)

2013-01-01 Thread Ignacio Ocampo
Currently the function __build_url_opener is: def __build_url_opener(self, uri): """ Build the url opener for managing HTTP Basic Athentication """ # Create an OpenerDirector with support # for Basic HTTP Authentication... auth_handler = urllib2