[web2py] Re: recaptcha in custom forms

2014-03-05 Thread Tim Richardson


On Wednesday, 5 March 2014 18:57:56 UTC+11, Tim Richardson wrote:
>
>
> I also don't get recpatcha working with auth login at the moment (trunk) 
> That is, the recpatcha doesn't show although the Verify: label does, and 
> login gets the invalid error message for a failed recaptcha input
>
> No, my problem may be different. I'll start a new thread 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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] recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
I have a form in a component. 
I add recaptcha like so:

form.element('table').insert(-1,TR('',form_captcha,''))


loading the component via a URL for its controller function works
but the component when loaded via LOAD doesn't display
I get this message in Firefox's web console:

"Invalid App Id: Must be a number or numeric string representing the 
application id."

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson


>
> "Invalid App Id: Must be a number or numeric string representing the 
> application id."
>
> That message is relating to a facebook plugin, it's not the problem with 
recpatcha 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
I get the recaptacha rendered if I use ajax=False


{{=LOAD('default','newsletter_signup.load',ajax=False,ajax_trap=False)}}

but form processing doesn't work. 
that is, form.process().accpeted is never true and neither is form.errors

ajax_true does mean that form processing works, but after an error, the 
recaptcha is not visible. 
book says ajax=False, ajax_trap=False means a normal form submission, but 
that's not what I'm seeing.
this is on trunk.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
Hi,
Is it working without placing it in a component?
have you tried to disable the facebook plugin? I'm just wondering if there 
is a correlation between the two.

Paolo

On Wednesday, March 5, 2014 10:42:13 AM UTC+1, Tim Richardson wrote:
>
>
>
>> "Invalid App Id: Must be a number or numeric string representing the 
>> application id."
>>
>> That message is relating to a facebook plugin, it's not the problem with 
> recpatcha 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: Date format and date picker

2014-03-05 Thread mcamel
Very strange. This works for me at Chromium Version 32.0.1700.107 Ubuntu 
12.04:

def test_date():
T.force('it')

db = DAL('sqlite:memory:')
db.define_table('test', Field('d', 'date'))

form = SQLFORM(db.test)
form.validate()

return dict(form=form)

At it.py (you can also translate 'enter date as %(format)s'):

'%Y-%m-%d': '%d/%m/%Y',

If i mispelled date intentionally i get:
enter date as 28/08/1963

Does this code work for you?.

By the way i've noticed you've mispelled the format in your post (one 
percent symbol is missing at %d/m/%Y). Check it at your languege file just 
in case...

Regards.


El martes, 4 de marzo de 2014 22:50:17 UTC+1, Gael Princivalle escribió:
>
> Ok so like that:
> Field('concert_date', type='date', requires = IS_DATE(format='%Y-%m-%d'))
> And on Chrome problem still the same.
> I think the problem is more global about language detection with Chrome.
>
> If I use web2py on Firefox I've got no problems.
>
> On Chrome it's a disaster. For example when I go on the welcome app, it's 
> always in English, not in Italian.
>
> Here is my routes.py :
> routers = dict(
>  BASE = dict(
>  domains = { 
>'domain1.it' : 'myapp1',
>'domain2.it':  'myapp2',
>},
>  default_application='welcome', 
> ),
>  myapp1 = dict(languages=['en', 'it'], default_language='it'),
>  myapp2 = dict(languages=['en', 'it'], default_language='it'),
> )
>
> Do you know what's the problem ?
>
> Regards
>
> Il giorno martedì 4 marzo 2014 22:26:37 UTC+1, Anthony ha scritto:
>>
>> Here is my field in db.py:
>>> Field('concert_date', type='date', requires = IS_DATE(format=T(
>>> '%Y-%m-%d')))
>>>
>>
>> Do not wrap the "format" argument to IS_DATE() in T() -- it will be 
>> translated automatically.
>>
>> Also, if desired, note that you can alter the date format for the 
>> Javascript widget universally here: 
>> https://github.com/web2py/web2py/blob/master/applications/welcome/views/web2py_ajax.html#L5
>> .
>>
>> Anthony
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson


On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote:
>
> Hi,
> Is it working without placing it in a component?
> have you tried to disable the facebook plugin? I'm just wondering if there 
> is a correlation between the two.
>

I removed the facebook plugin but it made no difference.
Yes, it works when not in a plugin. 
The generated code is very different between the working example and the 
LOAD. It seems that the Google javascript for recapture is not being 
executed when LOAD is used. 
When it works (no LOAD) there is a quite of lot of injected code which is 
not present in the LOADed component. In Firebug, I'm told to "reload the 
page to get source for http:..www.google.com/recpatcha/..." so the 

[web2py] Re: ticket2db is not working

2014-03-05 Thread Rémy Reche
Thanks for your help. But it is strange that this script expects .table 
files because, in the case of multiple web2py instances (with multiple 
servers), you do not have these files on each instance.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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] Nested SQLform.factory

2014-03-05 Thread xgp . latino
Hi all,

I have a Nested SQLform.factory inside a custom fields form.

My code:

form = FORM(TABLE(TR("Numero de 
documento:",INPUT(_type="text",_name="noid",requires=IS_NOT_EMPTY()),requires=IS_NOT_IN_DB(db,
 
'tabla1.noid')),
TR("Tipo de documento:" , SQLFORM.factory(Field('tid', 
label='', requires=IS_IN_DB(db,'tabla2.tipoid',orderby=db.tabla2.tipoid)) , 
buttons = [''] ,requires=IS_NOT_EMPTY())),

TR("Nombre:",INPUT(_type="text",_name="nombre",requires=IS_NOT_EMPTY())),
TR("Seleccione Tipo RH:" , SQLFORM.factory(Field('trh', 
label='', requires=IS_IN_DB(db,'tabla2.tiporh',orderby=db.tabla2.tiporh)) , 
buttons = [''] ,requires=IS_NOT_EMPTY())),
TR("",INPUT(_type="submit",_value="Guardar"

if form.accepts(request,session):

db.tabla1.insert(noid=form.vars.noid,tid=form.vars.tid,nombre=form.vars.nombre,trh=form.vars.trh)
 

Problem is, I only can get the 1st dropdown list option. Second i dont get 
it pass from form.vars.


Can someone let me know what im doing wrong. Thnx. 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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] Form with multiple choice parts

2014-03-05 Thread Brian Jimenez
Dear all,
I've been playing for a while with web2py and read the major part of the 
book, but still I don't get with the correct answer for my problem. Here it 
goes:
I want to display a form in some view. That form contains a common part (a 
field 'contact_email') and then three different 'subforms' enabled by three 
radio buttons (see attached picture).


 For the moment, I'm rendering it using a Form object in the controller:

FORM(TABLE(
  TR(
 TD('Contact email:'),
 TD(
INPUT(_name='email', _placeholder=
'cont...@research.edu', 
  _class='input-medium', 
_value=(session.contact_email 
or ''),
  requires=IS_EMAIL(error_message='Please, 
enter a valid email address'))
)
 ),
  TR(TD(BR())),
  TR(
 TD(LABEL(INPUT(_type='radio', _name='operation', 
_value=USER_PDB,
_checked=(not session.job_option 
orsession
.job_option == USER_PDB),
_onclick='toggle_input_option(this)'
),
' Upload PDB structures'))
 ),
  TR(
 TD('Receptor PDB:'),
 TD(INPUT(_name='pdb_receptor', _type='file')),
 _name='user_pdb_panel'
 ),
  TR(
 TD('Ligand PDB:'),
 TD(INPUT(_name='pdb_ligand', _type='file')),
 _name='user_pdb_panel'
 ),
  TR(TD(BR())),
etc.

Is there any other option of rendering this kind of form you could 
recommend me?

Best regards,
Brian


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: ticket2db is not working

2014-03-05 Thread Niphlod
agreed that it's a PITA, but if you copy table files over all the servers, 
no harm will be done to your app. It's just your "distribution" process 
that needs to accomodate for .table files instead of leaving the folder 
empty.

On Wednesday, March 5, 2014 11:49:26 AM UTC+1, Rémy Reche wrote:
>
> Thanks for your help. But it is strange that this script expects .table 
> files because, in the case of multiple web2py instances (with multiple 
> servers), you do not have these files on each instance.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.


Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
I run a couple of tests and I got the same issues, I am try to figure out
why the js library (recaptcha_canary.js) is not loaded at all

 Paolo


2014-03-05 12:17 GMT+01:00 Tim Richardson :

>
>
> On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote:
>>
>> Hi,
>> Is it working without placing it in a component?
>> have you tried to disable the facebook plugin? I'm just wondering if
>> there is a correlation between the two.
>>
>
> I removed the facebook plugin but it made no difference.
> Yes, it works when not in a plugin.
> The generated code is very different between the working example and the
> LOAD. It seems that the Google javascript for recapture is not being
> executed when LOAD is used.
> When it works (no LOAD) there is a quite of lot of injected code which is
> not present in the LOADed component. In Firebug, I'm told to "reload the
> page to get source for http:..www.google.com/recpatcha/..." so the
> 

[web2py] Re: Nested SQLform.factory

2014-03-05 Thread Anthony
I don't think HTML allows nested forms.

On Wednesday, March 5, 2014 1:29:57 AM UTC-5, xgp.l...@gmail.com wrote:
>
> Hi all,
>
> I have a Nested SQLform.factory inside a custom fields form.
>
> My code:
>
> form = FORM(TABLE(TR("Numero de 
> documento:",INPUT(_type="text",_name="noid",requires=IS_NOT_EMPTY()),requires=IS_NOT_IN_DB(db,
>  
> 'tabla1.noid')),
> TR("Tipo de documento:" , SQLFORM.factory(Field('tid', 
> label='', requires=IS_IN_DB(db,'tabla2.tipoid',orderby=db.tabla2.tipoid)) , 
> buttons = [''] ,requires=IS_NOT_EMPTY())),
> 
> TR("Nombre:",INPUT(_type="text",_name="nombre",requires=IS_NOT_EMPTY())),
> TR("Seleccione Tipo RH:" , 
> SQLFORM.factory(Field('trh', label='', 
> requires=IS_IN_DB(db,'tabla2.tiporh',orderby=db.tabla2.tiporh)) , buttons = 
> [''] ,requires=IS_NOT_EMPTY())),
> TR("",INPUT(_type="submit",_value="Guardar"
> 
> if form.accepts(request,session):
> 
> db.tabla1.insert(noid=form.vars.noid,tid=form.vars.tid,nombre=form.vars.nombre,trh=form.vars.trh)
>  
>
> Problem is, I only can get the 1st dropdown list option. Second i dont get 
> it pass from form.vars.
>
>
> Can someone let me know what im doing wrong. Thnx. 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.


Re: [web2py] Re: Date format and date picker

2014-03-05 Thread Gael Princivalle
Sorry for that. My language Chrome setting was with "English" as first. Now
with Italian that's ok.


2014-03-05 12:08 GMT+01:00 mcamel :

> Very strange. This works for me at Chromium Version 32.0.1700.107 Ubuntu
> 12.04:
>
> def test_date():
> T.force('it')
>
> db = DAL('sqlite:memory:')
> db.define_table('test', Field('d', 'date'))
>
> form = SQLFORM(db.test)
> form.validate()
>
> return dict(form=form)
>
> At it.py (you can also translate 'enter date as %(format)s'):
>
> '%Y-%m-%d': '%d/%m/%Y',
>
> If i mispelled date intentionally i get:
> enter date as 28/08/1963
>
> Does this code work for you?.
>
> By the way i've noticed you've mispelled the format in your post (one
> percent symbol is missing at %d/m/%Y). Check it at your languege file just
> in case...
>
> Regards.
>
>
> El martes, 4 de marzo de 2014 22:50:17 UTC+1, Gael Princivalle escribió:
>
>> Ok so like that:
>> Field('concert_date', type='date', requires = IS_DATE(format='%Y-%m-%d'))
>> And on Chrome problem still the same.
>> I think the problem is more global about language detection with Chrome.
>>
>> If I use web2py on Firefox I've got no problems.
>>
>> On Chrome it's a disaster. For example when I go on the welcome app, it's
>> always in English, not in Italian.
>>
>> Here is my routes.py :
>> routers = dict(
>>  BASE = dict(
>>  domains = {
>>'domain1.it' : 'myapp1',
>>'domain2.it':  'myapp2',
>>},
>>  default_application='welcome',
>> ),
>>  myapp1 = dict(languages=['en', 'it'], default_language='it'),
>>  myapp2 = dict(languages=['en', 'it'], default_language='it'),
>> )
>>
>> Do you know what's the problem ?
>>
>> Regards
>>
>> Il giorno martedì 4 marzo 2014 22:26:37 UTC+1, Anthony ha scritto:
>>>
>>> Here is my field in db.py:
 Field('concert_date', type='date', requires = IS_DATE(format=T(
 '%Y-%m-%d')))

>>>
>>> Do not wrap the "format" argument to IS_DATE() in T() -- it will be
>>> translated automatically.
>>>
>>> Also, if desired, note that you can alter the date format for the
>>> Javascript widget universally here: https://github.com/
>>> web2py/web2py/blob/master/applications/welcome/views/web2py_ajax.html#L5
>>> .
>>>
>>> Anthony
>>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/VzOWqWhWKWQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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] how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Andrey K
Greetings,
I am using web2py scheduler and looking the way to get 
scheduler_run.traceback and scheduler_run.run_result for reporting.
Any idea how I can get it?
After I setting up the task by: 
task=scheduler.queue_task(test_js_task,pvars=dict(x))
I can get only task.id and task.uuid.

What is the way  to get scheduler_run.id in order to get mentioned 
parameters?

In addition I would like to add several extra fields to scheduler_task 
table - is it possible? If yes can you please tell me the way?

Thank you in advance.



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: appadmin redirects to admin on first try?

2014-03-05 Thread User
No I am not being redirected to admin login page first.  I have edited 
admin/models/0.py:

EXPIRATION = 48 * 60 * 60  # logout after 48 hours of inactivity

A while could be 24 hours.


On Tuesday, March 4, 2014 4:28:38 PM UTC-5, Anthony wrote:

> On Tuesday, March 4, 2014 4:06:58 PM UTC-5, User wrote:
>>
>> I am already logged in, but haven't visited the site in a while.
>>
>
> How long is "a while"? By default, I believe the admin login lasts for 
> only 60 minutes. When you go to appadmin, you say you first get redirected 
> to admin. My question is are you being redirected to the admin login page 
> prior to seeing the admin interface?
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: Great summary of web2py

2014-03-05 Thread Jorge Pereira
VP  writes:

> 
> 

> 
> Specifically, to attract newbies, I would recommend making Chapter 3
> of the book to be better than it currently is.   Right now, it's very
> good.  But I think there are places that can be improved.  This
> chapter is where web2py can be/should be showcased to attract the
> newbies.   This comes from my experience when I first learned about
> web2py.
> 
> 


I agree with VP about making chapter 3 and the rest of the book better than
it is now, I'm learning Python and Web2Py coming from PHP/Symfony2... I
would recomend taking a look at Symfony's 2 documentantion its well
organized and looks great for programmers like me who want to learn a new
language and framework. 

Greetings to everybody.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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] wildcard for grid=SQLFORM(db.tablename)??

2014-03-05 Thread Austin Taylor
I've looked through the book and forum and can't seem to find any reference 
to a wildcard search when using the SQLFORM layout that web2py provides. 
Does anyone know of a wildcard search you can use like %?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: wildcard for grid=SQLFORM(db.tablename)??

2014-03-05 Thread Anthony
Assuming you mean SQLFORM.grid, you should be able to use the standard SQL 
% and _ wildcard characters.

Anthony

On Wednesday, March 5, 2014 12:21:16 PM UTC-5, Austin Taylor wrote:
>
> I've looked through the book and forum and can't seem to find any 
> reference to a wildcard search when using the SQLFORM layout that web2py 
> provides. Does anyone know of a wildcard search you can use like %?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: appadmin redirects to admin on first try?

2014-03-05 Thread Anthony
Changing the admin login expiration only affects the admin app itself, not 
appadmin, which delegates access to admin. If you want to change the 
expiration for appadmin, then you'll have to edit appadmin.py 
at 
https://github.com/web2py/web2py/blob/master/applications/welcome/controllers/appadmin.py#L55:

gluon.fileutils.check_credentials(request, expiration=48 * 60 * 60)

Anthony

On Wednesday, March 5, 2014 11:07:05 AM UTC-5, User wrote:
>
> No I am not being redirected to admin login page first.  I have edited 
> admin/models/0.py:
>
> EXPIRATION = 48 * 60 * 60  # logout after 48 hours of inactivity
>
> A while could be 24 hours.
>
>
> On Tuesday, March 4, 2014 4:28:38 PM UTC-5, Anthony wrote:
>
>> On Tuesday, March 4, 2014 4:06:58 PM UTC-5, User wrote:
>>>
>>> I am already logged in, but haven't visited the site in a while.
>>>
>>
>> How long is "a while"? By default, I believe the admin login lasts for 
>> only 60 minutes. When you go to appadmin, you say you first get redirected 
>> to admin. My question is are you being redirected to the admin login page 
>> prior to seeing the admin interface?
>>
>> Anthony
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-03-05 Thread Donatas Burba
Nothing changed after v2.9.4 update. Any ideas or remarks?

2014 m. kovas 4 d., antradienis 19:46:44 UTC+2, Donatas Burba rašė:
>
>
> After upgrading to v2.9.3 (from 2.8.2), error is thrown:
>
> Traceback (most recent call last):
>   File "/vagrant/grand/web2py/gluon/restricted.py", line 217, in restricted
> exec ccode in environment
>   File "/vagrant/grand/web2py/applications/grand/models/db_contract.py", line 
> 13, in 
> Field('actual_date', 'date', readable=False, writable=False)
>   File "/vagrant/grand/web2py/gluon/dal.py", line 8223, in define_table
> table = self.lazy_define_table(tablename,*fields,**args)
>   File "/vagrant/grand/web2py/gluon/dal.py", line 8260, in lazy_define_table
> polymodel=polymodel)
>   File "/vagrant/grand/web2py/gluon/dal.py", line 925, in create_table
> raise KeyError('Cannot resolve reference %s in %s definition' % 
> (referenced, table._tablename))
> KeyError: 'Cannot resolve reference subject_subject in contract_contract 
> definition'
>
> With lazy_tables=True everything is ok, but in development environment I 
> don't want use True value. My table definitions are grouped in separate 
> files, so situation is next:
>
> models/db_contract.py:
>
> db.define_table('contract_contract'
>
> ...
>
> Field('subject_id', 'reference subject_subject')
>
> ...
>
> )
>
>
> models/db_subject.py
>
> db.define_table('subject_subject',
>
> ...
>
> )
>
> As I understand the problem occurs because db_contract.py is executed before 
> db_subject.py, Is it posible to revert back to executement like in v2.8.2 (it 
> means that such situation won't throw any error without setting lazy_tables 
> to True)? Or it is new feature?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: wildcard for grid=SQLFORM(db.tablename)??

2014-03-05 Thread Austin Taylor
Thanks, Anthony. That worked, but I had to remove the quotes around the 
search when you click new

On Wednesday, March 5, 2014 1:28:15 PM UTC-5, Anthony wrote:
>
> Assuming you mean SQLFORM.grid, you should be able to use the standard SQL 
> % and _ wildcard characters.
>
> Anthony
>
> On Wednesday, March 5, 2014 12:21:16 PM UTC-5, Austin Taylor wrote:
>>
>> I've looked through the book and forum and can't seem to find any 
>> reference to a wildcard search when using the SQLFORM layout that web2py 
>> provides. Does anyone know of a wildcard search you can use like %?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.


Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson


On Thursday, 6 March 2014 01:06:07 UTC+11, Paolo Valleri wrote:
>
> I run a couple of tests and I got the same issues, I am try to figure out 
> why the js library (recaptcha_canary.js) is not loaded at all
>
>  Paolo
>
>

I've opened issues 1888 and I've worked out how to fix it (see code on the 
issue page). I'll make a PR today/tongith 

>
> 2014-03-05 12:17 GMT+01:00 Tim Richardson 
> >:
>
>>
>>
>> On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote:
>>>
>>> Hi,
>>> Is it working without placing it in a component?
>>> have you tried to disable the facebook plugin? I'm just wondering if 
>>> there is a correlation between the two.
>>>
>>
>> I removed the facebook plugin but it made no difference.
>> Yes, it works when not in a plugin. 
>> The generated code is very different between the working example and the 
>> LOAD. It seems that the Google javascript for recapture is not being 
>> executed when LOAD is used. 
>> When it works (no LOAD) there is a quite of lot of injected code which is 
>> not present in the LOADed component. In Firebug, I'm told to "reload the 
>> page to get source for http:..www.google.com/recpatcha/..." so the 
>> 

[web2py] Re: Great summary of web2py

2014-03-05 Thread Avi A
I think that there on the features list, frameworks seekers would love to 
hear about the amazing web2py ajax and component functions and all the eco 
method as part of the awesome mvc system.

On Wednesday, March 5, 2014 6:23:14 PM UTC+2, Jorge Pereira wrote:
>
> VP  writes: 
>
> > 
> > 
>
> > 
> > Specifically, to attract newbies, I would recommend making Chapter 3 
> > of the book to be better than it currently is.   Right now, it's very 
> > good.  But I think there are places that can be improved.  This 
> > chapter is where web2py can be/should be showcased to attract the 
> > newbies.   This comes from my experience when I first learned about 
> > web2py. 
> > 
> > 
>
>
> I agree with VP about making chapter 3 and the rest of the book better 
> than 
> it is now, I'm learning Python and Web2Py coming from PHP/Symfony2... I 
> would recomend taking a look at Symfony's 2 documentantion its well 
> organized and looks great for programmers like me who want to learn a new 
> language and framework. 
>
> Greetings to everybody. 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: trying to help young son learn Python, and...

2014-03-05 Thread Carlos Zenteno
One more vote for PythonAnywhere.
Easy to setup and to use.

I can recommend to you a class at codecademy for the fundamentals:
http://www.codecademy.com/tracks/python

and then in coursera.org: An Introduction to Interactive Programming in 
Python
https://www.coursera.org/course/interactivepython
very fun class as it is all based on programming games...

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Niphlod


On Wednesday, March 5, 2014 3:49:22 PM UTC+1, Andrey K wrote:
>
> Greetings,
> I am using web2py scheduler and looking the way to get 
> scheduler_run.traceback and scheduler_run.run_result for reporting.
> Any idea how I can get it?
> After I setting up the task by: 
> task=scheduler.queue_task(test_js_task,pvars=dict(x))
> I can get only task.id and task.uuid.
>

That's because when you queue a task you don't have (yet) a scheduler_run 
record. Moreover returning the result of the task to a "queueing" operation 
is a tiddle bit a poor design (it's an async process!). However, there's 
mysched.task_status(ref, output=False)
Ok, it's not documented in the book, but there are docstrings :P

Shortcut for task status retrieval

:param ref: can be
- integer --> lookup will be done by scheduler_task.id
- string  --> lookup will be done by scheduler_task.uuid
- query   --> lookup as you wish (as in db.scheduler_task.task_name 
== 'test1')
:param output: fetch also the scheduler_run record

Returns a single Row object, for the last queued task
If output == True, returns also the last scheduler_run record
scheduler_run record is fetched by a left join, so it can
have all fields == None

 

>
> What is the way  to get scheduler_run.id in order to get mentioned 
> parameters?
>

assuming

task = mysched.queue_task(f, )
task_status = mysched.task_status(task.id, output=True)
traceback = task_status.scheduler_run.traceback
result = task_status.scheduler_run.run_result #or
result = task_status.result




> In addition I would like to add several extra fields to scheduler_task 
> table - is it possible? If yes can you please tell me the way?
>

No, you can't and it's "by design". Scheduler tables are "tailored" to 
contain only what's strictly needed to orchestrate web2py<-->worker 
communications and worker<-->worker communications. Use a table with an id 
referencing the task id or uuid  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: DAL ignoring accents

2014-03-05 Thread Wonton
Thank you Massimo, I'll do that.

On Monday, March 3, 2014 1:19:08 AM UTC+1, Massimo Di Pierro wrote:
>
> Not really. you have to create a computed filed that discards accents and 
> search the computed field instead of the original field.
>
>
> On Saturday, 1 March 2014 04:34:33 UTC-6, Wonton wrote:
>>
>> Hello!
>>
>> Is there any way to do searches with DAL (sqlite database) ignoring 
>> accents?
>>
>> Thank you very much in advance!
>>
>> Wonton.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.


Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
I've made the PR, but my knowledge of jquery/javascript is paleolithic so 
Paolo is would be great if you can look at it. 
It works. 
https://github.com/web2py/web2py/pull/389

On Thursday, 6 March 2014 07:12:11 UTC+11, Tim Richardson wrote:
>
>
>
> On Thursday, 6 March 2014 01:06:07 UTC+11, Paolo Valleri wrote:
>>
>> I run a couple of tests and I got the same issues, I am try to figure out 
>> why the js library (recaptcha_canary.js) is not loaded at all
>>
>>  Paolo
>>
>>
>
> I've opened issues 1888 and I've worked out how to fix it (see code on the 
> issue page). I'll make a PR today/tongith 
>
>>
>> 2014-03-05 12:17 GMT+01:00 Tim Richardson :
>>
>>>
>>>
>>> On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote:

 Hi,
 Is it working without placing it in a component?
 have you tried to disable the facebook plugin? I'm just wondering if 
 there is a correlation between the two.

>>>
>>> I removed the facebook plugin but it made no difference.
>>> Yes, it works when not in a plugin. 
>>> The generated code is very different between the working example and the 
>>> LOAD. It seems that the Google javascript for recapture is not being 
>>> executed when LOAD is used. 
>>> When it works (no LOAD) there is a quite of lot of injected code which 
>>> is not present in the LOADed component. In Firebug, I'm told to "reload the 
>>> page to get source for http:..www.google.com/recpatcha/..." so the 
>>> 

[web2py] I'm speaking at Melbourne PUG about web2py, 30 mins. Tips/e.g. slides?

2014-03-05 Thread Tim Richardson
I'm talking at the Melbourne PUG early April re web2py. Audience is quite 
academic (sciences), about 40 to 50 people usually. 
The talk is about  30 minutes. I plan to cover project history, DAL, 
execution model, web2py in practice (views, admin app, authentication, 
widgets and SQLFORM.grid, default views,...) and to be prepared for 
questions re deployment and scaling (and maybe python 3). I've said I won't 
be making any comparisons to other frameworks. 

Any tips or short presentations to help would be great. 

thanks
Tim


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-03-05 Thread Tim Richardson
Model files in the same directory execute alphabetically,  but in this case 
it seems that you are seeing correct behaviour. 
This behaviour predates v2.8.2 but quite some time as far as I know. 

the book says 
Models in the same folder/subfolder are executed in alphabetical order.

https://do.growthpath.com.au/book/default/chapter/29/04/the-core?search=alphabetical#Workflow

I think this means you can assume nothing will change. I think you should 
change your file names.

You can dynamically change load order as documented in the book, but it's 
tricky to use in my experience. 

On Wednesday, 5 March 2014 04:46:44 UTC+11, Donatas Burba wrote:
>
>
> After upgrading to v2.9.3 (from 2.8.2), error is thrown:
>
> Traceback (most recent call last):
>   File "/vagrant/grand/web2py/gluon/restricted.py", line 217, in restricted
> exec ccode in environment
>   File "/vagrant/grand/web2py/applications/grand/models/db_contract.py", line 
> 13, in 
> Field('actual_date', 'date', readable=False, writable=False)
>   File "/vagrant/grand/web2py/gluon/dal.py", line 8223, in define_table
> table = self.lazy_define_table(tablename,*fields,**args)
>   File "/vagrant/grand/web2py/gluon/dal.py", line 8260, in lazy_define_table
> polymodel=polymodel)
>   File "/vagrant/grand/web2py/gluon/dal.py", line 925, in create_table
> raise KeyError('Cannot resolve reference %s in %s definition' % 
> (referenced, table._tablename))
> KeyError: 'Cannot resolve reference subject_subject in contract_contract 
> definition'
>
> With lazy_tables=True everything is ok, but in development environment I 
> don't want use True value. My table definitions are grouped in separate 
> files, so situation is next:
>
> models/db_contract.py:
>
> db.define_table('contract_contract'
>
> ...
>
> Field('subject_id', 'reference subject_subject')
>
> ...
>
> )
>
>
> models/db_subject.py
>
> db.define_table('subject_subject',
>
> ...
>
> )
>
> As I understand the problem occurs because db_contract.py is executed before 
> db_subject.py, Is it posible to revert back to executement like in v2.8.2 (it 
> means that such situation won't throw any error without setting lazy_tables 
> to True)? Or it is new feature?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-03-05 Thread Anthony
But I believe you should be able to define tables out of order (i.e., 
define the referenced table after the referencing table).

On Wednesday, March 5, 2014 7:55:13 PM UTC-5, Tim Richardson wrote:
>
> Model files in the same directory execute alphabetically; it seems that 
> you are seeing correct behaviour. 
> This behaviour predates v2.8.2 by quite some time as far as I know. 
>
> the book says 
> Models in the same folder/subfolder are executed in alphabetical order.
>
>
> https://do.growthpath.com.au/book/default/chapter/29/04/the-core?search=alphabetical#Workflow
>
> I think this means you can assume nothing will change. I think you should 
> change your file names.
>
> You can dynamically change load order as documented in the book, but it's 
> tricky to use in my experience. 
>
> On Wednesday, 5 March 2014 04:46:44 UTC+11, Donatas Burba wrote:
>>
>>
>> After upgrading to v2.9.3 (from 2.8.2), error is thrown:
>>
>> Traceback (most recent call last):
>>   File "/vagrant/grand/web2py/gluon/restricted.py", line 217, in restricted
>> exec ccode in environment
>>   File "/vagrant/grand/web2py/applications/grand/models/db_contract.py", 
>> line 13, in 
>> Field('actual_date', 'date', readable=False, writable=False)
>>   File "/vagrant/grand/web2py/gluon/dal.py", line 8223, in define_table
>> table = self.lazy_define_table(tablename,*fields,**args)
>>   File "/vagrant/grand/web2py/gluon/dal.py", line 8260, in lazy_define_table
>> polymodel=polymodel)
>>   File "/vagrant/grand/web2py/gluon/dal.py", line 925, in create_table
>> raise KeyError('Cannot resolve reference %s in %s definition' % 
>> (referenced, table._tablename))
>> KeyError: 'Cannot resolve reference subject_subject in contract_contract 
>> definition'
>>
>> With lazy_tables=True everything is ok, but in development environment I 
>> don't want use True value. My table definitions are grouped in separate 
>> files, so situation is next:
>>
>> models/db_contract.py:
>>
>> db.define_table('contract_contract'
>>
>> ...
>>
>> Field('subject_id', 'reference subject_subject')
>>
>> ...
>>
>> )
>>
>>
>> models/db_subject.py
>>
>> db.define_table('subject_subject',
>>
>> ...
>>
>> )
>>
>> As I understand the problem occurs because db_contract.py is executed before 
>> db_subject.py, Is it posible to revert back to executement like in v2.8.2 
>> (it means that such situation won't throw any error without setting 
>> lazy_tables to True)? Or it is new feature?
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: trying to help young son learn Python, and...

2014-03-05 Thread Anthony

>
> 2. does, or will, web2py support python 3.x any time soon?
>

Not likely, due to the fact that it would break backward compatibility. 
There have been a couple of efforts to create a working Python 3 fork, but 
the fact is there isn't yet much demand for a Python 3 version, so these 
forks have not been maintained. Perhaps a tipping point will be reached 
when it will make sense to maintain a Python 3 version, but we may be on to 
web3py by then.

Note, you can backport many Python 3 features to Python 2.7.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: recaptcha in custom forms

2014-03-05 Thread Tim Richardson

I submitted a patch which allows us to use recaptcha's ajax API. This was 
the only way I could get it to work in a LOAD component. 
It may solve other problems. You add ajax=True to the Recaptcha 
constructor. It's not in trunk yet. The related issue is 
http://code.google.com/p/web2py/issues/detail?id=1888

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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: how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Tim Richardson



> That's because when you queue a task you don't have (yet) a scheduler_run 
> record. Moreover returning the result of the task to a "queueing" operation 
> is a tiddle bit a poor design (it's an async process!). However, there's 
> mysched.task_status(ref, output=False)
> Ok, it's not documented in the book, but there are docstrings :P
>
>
It is now, I've liberally copied from your answer here.  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.


Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
I haven't tested, just an idea, instead of adding a new parameter, what
about checking current.request.ajax ?

 Paolo


2014-03-06 0:59 GMT+01:00 Tim Richardson :

> I've made the PR, but my knowledge of jquery/javascript is paleolithic so
> Paolo is would be great if you can look at it.
> It works.
> https://github.com/web2py/web2py/pull/389
>
>
> On Thursday, 6 March 2014 07:12:11 UTC+11, Tim Richardson wrote:
>>
>>
>>
>> On Thursday, 6 March 2014 01:06:07 UTC+11, Paolo Valleri wrote:
>>>
>>> I run a couple of tests and I got the same issues, I am try to figure
>>> out why the js library (recaptcha_canary.js) is not loaded at all
>>>
>>>  Paolo
>>>
>>>
>>
>> I've opened issues 1888 and I've worked out how to fix it (see code on
>> the issue page). I'll make a PR today/tongith
>>
>>>
>>> 2014-03-05 12:17 GMT+01:00 Tim Richardson :
>>>


 On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote:
>
> Hi,
> Is it working without placing it in a component?
> have you tried to disable the facebook plugin? I'm just wondering if
> there is a correlation between the two.
>

 I removed the facebook plugin but it made no difference.
 Yes, it works when not in a plugin.
 The generated code is very different between the working example and
 the LOAD. It seems that the Google javascript for recapture is not being
 executed when LOAD is used.
 When it works (no LOAD) there is a quite of lot of injected code which
 is not present in the LOADed component. In Firebug, I'm told to "reload the
 page to get source for http:..www.google.com/recpatcha/..." so the