[web2py] Problem with rname?

2014-04-01 Thread Johann Spies
Database: Postgresql

I get this regularly when I modify a table's definition (tables using
rname):

ProgrammingError: relation "org_unit" does not exist

I either set 'migrate = False'  or drop the table, delete the entry in
databases and do it over - that is when the table is empty.

I suspect it is a problem with rname.

Here is an example definition (btw the fields with 'text' will be changed
to 'citext' in Postgresql)


db.define_table('org_unit',
Field('name', 'text'),
Field('city', 'text'),
Field('post_code', length=14),
Field('street', 'text'),
Field('country', 'text'),
Field('countrycode', length = 2),
rname = '"level1"."org_unit"',
migrate = True,
fake_migrate = False)

Regards
Johann
-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 
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/d/optout.


[web2py] citext field type

2014-04-01 Thread Johann Spies
I suspect databases like Oracle and other bigger ones might have similar
types. Citext is a case insensitive text field type (an extention to
Postgresql).

I am just wondering whether it will be possible to make use of citext from
web2py in future without having to change the table definition in the
backend as I am doing now.

Regards
Johann

-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 
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/d/optout.


[web2py] Re: Published my collection of plugins

2014-04-01 Thread Richard
Kenji,

I try to use the nice (modal) Dialog widget with a Web2py app. It starts 
but keeps ths status loading...

In the controller:
dlg_add_role = DIALOG(LOAD(f='add_role', ajax=True), title='Add role', 
close_button='close', renderstyle=True)

return dict(dlg_add_role=dlg_add_role,
s1s=s1s, entities=entities, assets=assets, parents=parents, 
sip=sip,
env_cat=env_cat, env_domains=env_domains,
channels=channels, supply_channels=supply_channels, 
im_labels=im_labels,
form_env=form_env, form_vpu=form_vpu,
data_list = data_list,
activities = activities,
roles = roles,
customers = customers
)

def add_role():
return DIV('OK!')



In the index.html view:
   .

 {{=A('Add role', _href='#dlg_add_role', 
_onclick='%s;return false' % dlg_add_role.show())}}

..


On Thursday, September 8, 2011 11:53:28 AM UTC+2, kenji4569 wrote:
>
> Thanks for the information. But it seems that I have to buy a licence 
> to get the full source code. I will look for other solutions. 
>
> Kenji 
>
> On 9月8日, 午前2:59, Richard Vézina  wrote: 
> > Hello Kenji, 
> > 
> > You will maybe find the code of the actual datepicker here :
> http://www.dynarch.com/projects/calendar/ 
> > 
> > If you clic on the "?" when the datepicker popup you will have the 
> > disclaimer of the author of the plugin... 
> > 
> > Richard 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Tue, Sep 6, 2011 at 8:59 PM, kenji4569  wrote: 
> > > > After i upload a file i get a icon in the text. 
> > > > How do i lauch the file that i just embedded in the text? 
> > > The elrte editor prevents the icon link from clicking to download the 
> > > file. 
> > > So you have to first submit the editing html, 
> > > and save the html in db, 
> > > and then display the html in the view (as {{=XML(record.text)}}). 
> > > But currently, the demo do not demonstrate this (so you need to 
> > > implement this on your app). 
> > > In the meantime, you can check the html source from the editor by 
> > > clicking the "source" tab at the bottom of the editor. 
> > 
> > > Kenji 
> > 
> > > On 9月7日, 午前1:02, António Ramos  wrote: 
> > > > After i upload a file i get a icon in the text. 
> > > > How do i lauch the file that i just embedded in the text? 
> > 
> > > > Thank you 
> > 
> > > > 2011/9/6 kenji4569  
> > 
> > > > > > web2py gives the file in the download 
> > > > > > directory for example 
> > 
> > > 
> 5e74c950-95b2-4843-b4c6-53bc8efca8fe > 
> > > 
> lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63 
> > > > > .doc> 
> > > > > The former random string is a display file name, and just for 
> demo. 
> > > > > The latter one is an actual file name generated by web2py. 
> > 
> > > > > Now, I remove the former, since it's confusing: 
> > > > >http://dev.s-cubism.com/plugin_elrte_widget 
> > 
> > > > > Changing the latter would require much work with deeper inspection 
> > > > > into the web2py upload mechanism. 
> > 
> > > > > Changing the look and feel such as replacing icons would be 
> easier, 
> > > > > and you should see the file_upload_or_choose() function in the 
> usage 
> > > > > code of the demo. 
> > 
> > > > > Note that I do not implement a ready-made image/file chooser, and 
> you 
> > > > > have to implement it for your own application, starting from the 
> usage 
> > > > > code, including setting up your db and defining your image and 
> file 
> > > > > tables. 
> > 
> > > > > Regards, 
> > > > > Kenji 
> > 
> > > > > On 9月6日, 午後6:01, António Ramos  wrote: 
> > > > > > Hello Kenji, 
> > > > > > Thank you for your fast work 
> > 
> > > > > > One problem! 
> > > > > > The form is not very friendly. 
> > 
> > > > > > In the submit form i choose a pdf for example myfile.pdf but in 
> the 
> > > name 
> > > > > > field you write the name that web2py gives the file in the 
> download 
> > > > > > directory for example 
> > 
> > > 
> 5e74c950-95b2-4843-b4c6-53bc8efca8fe > 
> > > 
> lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63 
> > > > > .doc> 
> > > > > > This has no meaning to the user! 
> > 
> > > > > > Please see attached file for what i think it would be really 
> > > helpfull. 
> > 
> > > > > > Thank you again 
> > 
> > > > > > António 
> > 
> > > > > > 2011/9/6 kenji4569  
> > 
> > > > > > > Hi António, 
> > 
> > > > > > > I implemented a file chooser for the elrte widget. 
> > > > > > > Please try it: 
> > > > > > >http://dev.s-cubism.com/plugin_elrte_widget 
> > 
> > > > > > > Since the file chooser is very primitive, you may need to 
> customize 
> > > > > > > it. 
> > > > > > > But, the customization would be easy with the expressive power 
> of 
> > > > > > > web2py (see the demo code). 
> > > > > > > (Notice: I applied a small patch for the original elrte.js to 
> make 
> > > the 
> > > > > > > fi

[web2py] Re: New Merchant service -- WePay.com

2014-04-01 Thread Gour
On Mon, 31 Mar 2014 14:31:57 -0700 (PDT)
Joe  Barnhart 
wrote:

> These guys look very much like Stripe.com as credit-card merchant
> service providers -- that is to say, VERY good!

Stripe was, last time I did check, US-only. What about WePay and EU
customers?


Sincerely,
Gour

-- 
A person who has given up all desires for sense gratification, 
who lives free from desires, who has given up all sense of 
proprietorship and is devoid of false ego — he alone can 
attain real peace.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


-- 
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/d/optout.


[web2py] after_update callback question

2014-04-01 Thread mcamel
Hello,

I'm trying to get a solid way of triggering an action, "after" an update, 
based on the data "before" the update.

One approach is building an SQLFORM, inject the old values as hidden 
fields, validate it and do the update and triggers manually, but then you 
are limited to use this FORM (it wouldn't work the same if you edit the 
record on a grid, e.g.).

Theoretically, the safer and "universal" way is with 'after_update' 
callback, as in:

http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks

I imagined the Set accesing these old values, but that's true only for 
'before_update' callback. These was a surprise because i cannot find any 
difference from the record of field values, except the id, but this could 
be passed explicitly as it is done in 'after_insert' callback.

So, what's the purpose of the Set in 'after_update', then?. And, is there 
another way to obtain the old values?.

Regards.

-- 
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/d/optout.


Re: [web2py] Re: Published my collection of plugins

2014-04-01 Thread Richard Vézina
The thing with Modal from bootstrap is that the form are embeded at the
same level, I mean they are both in the same page even if you build it with
a component... The way to workaround this issue is to give a name to your
form (form.process(formname=...).accepted:).

There is this ressource that can help :

http://linuxapuntes.blogspot.com.ar/2013/03/plugin-modal-bootstrap-web2py.html

Good luck.

Richard


On Tue, Apr 1, 2014 at 6:18 AM, Richard  wrote:

> Kenji,
>
> I try to use the nice (modal) Dialog widget with a Web2py app. It starts
> but keeps ths status loading...
>
> In the controller:
> dlg_add_role = DIALOG(LOAD(f='add_role', ajax=True), title='Add role',
> close_button='close', renderstyle=True)
>
> return dict(dlg_add_role=dlg_add_role,
> s1s=s1s, entities=entities, assets=assets,
> parents=parents, sip=sip,
> env_cat=env_cat, env_domains=env_domains,
> channels=channels, supply_channels=supply_channels,
> im_labels=im_labels,
> form_env=form_env, form_vpu=form_vpu,
> data_list = data_list,
> activities = activities,
> roles = roles,
> customers = customers
> )
>
> def add_role():
> return DIV('OK!')
>
>
>
> In the index.html view:
>.
> 
>  {{=A('Add role', _href='#dlg_add_role',
> _onclick='%s;return false' % dlg_add_role.show())}}
> 
> ..
>
>
> On Thursday, September 8, 2011 11:53:28 AM UTC+2, kenji4569 wrote:
>>
>> Thanks for the information. But it seems that I have to buy a licence
>> to get the full source code. I will look for other solutions.
>>
>> Kenji
>>
>> On 9月8日, 午前2:59, Richard Vézina  wrote:
>> > Hello Kenji,
>> >
>> > You will maybe find the code of the actual datepicker here :
>> http://www.dynarch.com/projects/calendar/
>> >
>> > If you clic on the "?" when the datepicker popup you will have the
>> > disclaimer of the author of the plugin...
>> >
>> > Richard
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Tue, Sep 6, 2011 at 8:59 PM, kenji4569  wrote:
>> > > > After i upload a file i get a icon in the text.
>> > > > How do i lauch the file that i just embedded in the text?
>> > > The elrte editor prevents the icon link from clicking to download the
>> > > file.
>> > > So you have to first submit the editing html,
>> > > and save the html in db,
>> > > and then display the html in the view (as {{=XML(record.text)}}).
>> > > But currently, the demo do not demonstrate this (so you need to
>> > > implement this on your app).
>> > > In the meantime, you can check the html source from the editor by
>> > > clicking the "source" tab at the bottom of the editor.
>> >
>> > > Kenji
>> >
>> > > On 9月7日, 午前1:02, António Ramos  wrote:
>> > > > After i upload a file i get a icon in the text.
>> > > > How do i lauch the file that i just embedded in the text?
>> >
>> > > > Thank you
>> >
>> > > > 2011/9/6 kenji4569 
>> >
>> > > > > > web2py gives the file in the download
>> > > > > > directory for example
>> >
>> > > 5e74c950-95b2-4843-b4c6-53bc8efca8fe>
>> >
>> > > lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63
>>
>> > > > > .doc>
>> > > > > The former random string is a display file name, and just for
>> demo.
>> > > > > The latter one is an actual file name generated by web2py.
>> >
>> > > > > Now, I remove the former, since it's confusing:
>> > > > >http://dev.s-cubism.com/plugin_elrte_widget
>> >
>> > > > > Changing the latter would require much work with deeper
>> inspection
>> > > > > into the web2py upload mechanism.
>> >
>> > > > > Changing the look and feel such as replacing icons would be
>> easier,
>> > > > > and you should see the file_upload_or_choose() function in the
>> usage
>> > > > > code of the demo.
>> >
>> > > > > Note that I do not implement a ready-made image/file chooser, and
>> you
>> > > > > have to implement it for your own application, starting from the
>> usage
>> > > > > code, including setting up your db and defining your image and
>> file
>> > > > > tables.
>> >
>> > > > > Regards,
>> > > > > Kenji
>> >
>> > > > > On 9月6日, 午後6:01, António Ramos  wrote:
>> > > > > > Hello Kenji,
>> > > > > > Thank you for your fast work
>> >
>> > > > > > One problem!
>> > > > > > The form is not very friendly.
>> >
>> > > > > > In the submit form i choose a pdf for example myfile.pdf but in
>> the
>> > > name
>> > > > > > field you write the name that web2py gives the file in the
>> download
>> > > > > > directory for example
>> >
>> > > 5e74c950-95b2-4843-b4c6-53bc8efca8fe>
>> >
>> > > lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63
>>
>> > > > > .doc>
>> > > > > > This has no meaning to the user!
>> >
>> > > > > > Please see attached file for what i think it would be really
>> > > helpfull.
>> >
>> > > > > > Thank you again
>> >
>> > > > > > António
>> >
>> > > > > > 2011/9/6 kenji4569 
>> >
>> > >

[web2py] web2py logo - need immediate help

2014-04-01 Thread Massimo Di Pierro
Any good designer on the list?
I need a web2py logo similar to this one 

   http://web2py.com/init/static/images/web2py_logo.png

but done in vectorial format, white on black. No shadows. It should also 
say below "Conference, 2014". It will be printed on mugs.
Some creativity allowed but not too much. I need it in 24hrs or I will have 
to make it my self and I know it will look ugly.

Massimo



-- 
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/d/optout.


[web2py] Re: New Merchant service -- WePay.com

2014-04-01 Thread villas
@Gour,  maybe this is of interest...

https://stripe.com/blog/open-betas-in-europe

-- 
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/d/optout.


[web2py] Re: New Merchant service -- WePay.com

2014-04-01 Thread Gour
On Tue, 1 Apr 2014 07:36:47 -0700 (PDT)
villas  wrote:

> @Gour,  maybe this is of interest...

Only partly 'cause I'm in Croatia. :-)


Sincerely,
Gour

-- 
Thus the wise living entity's pure consciousness becomes covered by 
his eternal enemy in the form of lust, which is never satisfied and 
which burns like fire.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


-- 
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/d/optout.


Re: [web2py] web2py logo - need immediate help

2014-04-01 Thread Adnan Smajlovic
Atar, my partner will do it. She'll send it as soon as it's ready...


On Tue, Apr 1, 2014 at 10:31 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Any good designer on the list?
> I need a web2py logo similar to this one
>
>http://web2py.com/init/static/images/web2py_logo.png
>
> but done in vectorial format, white on black. No shadows. It should also
> say below "Conference, 2014". It will be printed on mugs.
> Some creativity allowed but not too much. I need it in 24hrs or I will
> have to make it my self and I know it will look ugly.
>
> Massimo
>
>
>
>  --
> 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/d/optout.
>



-- 

Thanks,
Adnan

Blue Mint Solutions Inc.
bluemintsolutions.com
Mobile #: (647) 964 2674

-- 
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/d/optout.


[web2py] memory leak?

2014-04-01 Thread Rick Ree
Hi,

If I create a new app and put a single function in default.py:

def f():
return dict(a=list(range(10)))

and then repeatedly call this using wget, e.g. wget 
http://localhost:8000/default/f.html, then memory usage of web2py will 
creep higher with each call. Is this a memory leak, or will the memory 
eventually be reclaimed? Is there something I can do in f() to avoid this?

thanks,
-Rick

-- 
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/d/optout.


[web2py] Using Post mail in CentOS for Web2py

2014-04-01 Thread Austin Taylor
Hello,

I'm trying to setup web2py to use mail for linux.

I already have linux configured, so I don't need to use the configuration 
settings in db.py. For example, I could type 'mail -s "test email" 
u...@domain.com' and send an e-mail.

How could I incorporate web2py's register/lost password feature to use 
those settings instead?

Thank you so much.

Austin

-- 
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/d/optout.


Re: [web2py] Using Post mail in CentOS for Web2py

2014-04-01 Thread Austin Taylor
Solved it!
mail = auth.settings.mailer
mail.settings.server = '127.0.0.1:25'
mail.settings.sender = 'testu...@domain.com'
mail.settings.tls = False
mail.settings.login = None



On Tue, Apr 1, 2014 at 11:04 AM, Austin Taylor wrote:

> Hello,
>
> I'm trying to setup web2py to use mail for linux.
>
> I already have linux configured, so I don't need to use the configuration
> settings in db.py. For example, I could type 'mail -s "test email"
> u...@domain.com' and send an e-mail.
>
> How could I incorporate web2py's register/lost password feature to use
> those settings instead?
>
> Thank you so much.
>
> Austin
>
> --
> 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/bc5OIZwmA5o/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/d/optout.
>

-- 
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/d/optout.


[web2py] Re: after_update callback question

2014-04-01 Thread Anthony
_after_update of course runs *after* the records have been updated in the 
database, so if you use the Set to check those records in the _after_update 
callback, they will therefore now have the new values. How could it be any 
other way? Accessing the Set in the _after_update callback can still be 
useful, even though it does not enable you to access the old values.

Note, when records are updated, they are not first retrieved from the 
database, so the DAL does not even know the original values of the updated 
records.

Is it possible you could do what you need via the _before_update callbacks? 
If not, perhaps in the _before_update callback you could retrieve the 
records based on the Set and store them in an object in the global 
environment, and then have _after_update read the records you have stored.

Anthony

On Tuesday, April 1, 2014 9:39:57 AM UTC-4, mcamel wrote:

> Hello,
>
> I'm trying to get a solid way of triggering an action, "after" an update, 
> based on the data "before" the update.
>
> One approach is building an SQLFORM, inject the old values as hidden 
> fields, validate it and do the update and triggers manually, but then you 
> are limited to use this FORM (it wouldn't work the same if you edit the 
> record on a grid, e.g.).
>
> Theoretically, the safer and "universal" way is with 'after_update' 
> callback, as in:
>
>
> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks
>
> I imagined the Set accesing these old values, but that's true only for 
> 'before_update' callback. These was a surprise because i cannot find any 
> difference from the record of field values, except the id, but this could 
> be passed explicitly as it is done in 'after_insert' callback.
>
> So, what's the purpose of the Set in 'after_update', then?. And, is there 
> another way to obtain the old values?.
>
> Regards.
>

-- 
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/d/optout.


[web2py] [JOB] Looking for 1 web2py dev in Taipei

2014-04-01 Thread Michele Comitini
Is there anyone from Taipei (TW)?

I have a friend who needs 1 full time web2py developer in Taipei.

Experience with AWS and Social Datamining are a plus.
English language required.

Feel free to contact me for more info.

Thank you!

mic


-- 
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/d/optout.


[web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-01 Thread Richard
Hello,

I want to get rid of python entirely. As you probably know, I don't see 
great future in Python 3000 and since we can't fighting the Javascript 
dominance in webapp development world, I resign... I want to port web2py to 
javascript by rewriting all piece of it except the DAL because it too good 
and I like it!

Is there any volonteers?

Massimo

-- 
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/d/optout.


Re: [web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-01 Thread Mirko Scavazzin
April's fool ! :)

2014-04-01 17:44 UTC, Richard :
> Hello,
>
> I want to get rid of python entirely. As you probably know, I don't see
> great future in Python 3000 and since we can't fighting the Javascript
> dominance in webapp development world, I resign... I want to port web2py to
>
> javascript by rewriting all piece of it except the DAL because it too good
> and I like it!
>
> Is there any volonteers?
>
> Massimo
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-01 Thread Richard Vézina
:D

Richard


On Tue, Apr 1, 2014 at 1:45 PM, Mirko Scavazzin wrote:

> April's fool ! :)
>
> 2014-04-01 17:44 UTC, Richard :
> > Hello,
> >
> > I want to get rid of python entirely. As you probably know, I don't see
> > great future in Python 3000 and since we can't fighting the Javascript
> > dominance in webapp development world, I resign... I want to port web2py
> to
> >
> > javascript by rewriting all piece of it except the DAL because it too
> good
> > and I like it!
> >
> > Is there any volonteers?
> >
> > Massimo
> >
> > --
> > 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/d/optout.
> >
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


[web2py] Scheduler - clarification around heartbeat, and setting up tasks

2014-04-01 Thread Kiran Subbaraman
Hello,
I have setup the scheduler to execute on three different tasks
Task A, B, and C
Also, have setup the scheduler's heartbeat to 20seconds
There are no further specific configurations. It works well.

Have turned on the debug log, and notice that there is a constant output 
from the tasks there:
2014-04-01 23:36:16,642 - web2py.app.myapp - DEBUG -result: "Done: Task 
A"
2014-04-01 23:36:17,407 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:17,408 - web2py.app.myapp - DEBUG -result: "Done: Task 
B"
2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG -result: "Done: Task 
C"
2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG -result: "Done: Task 
A"
2014-04-01 23:36:19,719 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:19,719 - web2py.app.myapp - DEBUG -result: "Done: Task 
C"
2014-04-01 23:36:20,486 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:20,486 - web2py.app.myapp - DEBUG -result: "Done: Task 
A"
2014-04-01 23:36:21,260 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:21,260 - web2py.app.myapp - DEBUG -result: "Done: Task 
B"
2014-04-01 23:36:22,045 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:22,045 - web2py.app.myapp - DEBUG -result: "Done: Task 
C"
2014-04-01 23:36:22,819 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:22,819 - web2py.app.myapp - DEBUG -result: "Done: Task 
A"
2014-04-01 23:36:23,598 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED
2014-04-01 23:36:23,598 - web2py.app.myapp - DEBUG -result: "Done: Task 
B"
2014-04-01 23:36:24,372 - web2py.app.myapp - DEBUG - new task 
report:COMPLETED

I wasn't sure what to make of it. Looks like the tasks are running at a 
pace much higher than what I expected. Initially, I suspected that the 
heartbeat -20seconds - determines the frequency of the tasks. And then I 
re-read the section on the task's period-repeat combination. Now am a bit 
lost.  

I need to run one of the tasks in a once in 24hours cycle. So intend to use 
the period/repeat combination for that task. The other tasks need to run 
once every minute or so. My intention is to ensure that the number of times 
the tasks hit the db is not too frequent. 
More importantly can someone help me understand what the timing in this log 
means, and why the tasks are running at this high a frequency? 
Thank you. 
Kiran


-- 
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/d/optout.


Re: [web2py] web2py logo - need immediate help

2014-04-01 Thread Dave S


On Tuesday, April 1, 2014 7:57:57 AM UTC-7, Adi wrote:
>
> Atar, my partner will do it. She'll send it as soon as it's ready... 
>
>
I'll have my daughter get ready for next year 

/dps
 

>
> On Tue, Apr 1, 2014 at 10:31 AM, Massimo Di Pierro 
> 
> > wrote:
>
>> Any good designer on the list?
>> I need a web2py logo similar to this one 
>>
>>http://web2py.com/init/static/images/web2py_logo.png
>>
>> but done in vectorial format, white on black. No shadows. It should also 
>> say below "Conference, 2014". It will be printed on mugs.
>> Some creativity allowed but not too much. I need it in 24hrs or I will 
>> have to make it my self and I know it will look ugly.
>>
>> Massimo
>>
>>
>>
>>  -- 
>> 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+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Thanks,
> Adnan
>
> Blue Mint Solutions Inc.
> bluemintsolutions.com
> Mobile #: (647) 964 2674
>
>   

-- 
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/d/optout.


[web2py] Secure RSS Feeds

2014-04-01 Thread Austin Taylor
Hi guys,

I'm trying to get secure RSS feeds, but when I try to make the request 
using feed parser I can't get the request. How could I use my certificates 
with feedparser?

I'm currently running web2py hosted by apache

here is my code


controller:
import feedparser
def index():
d = feedparser.parse('https//anybloghere.rss')
return dict(content=d)

view:
   {{=content.feed.title}}

I get an error saying it can't see the feed.title because its not returning 
anything due to the https

-- 
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/d/optout.


Re: [web2py] web2py logo - need immediate help

2014-04-01 Thread Anthony
On Tuesday, April 1, 2014 2:41:24 PM UTC-4, Dave S wrote:
>
>
>
> On Tuesday, April 1, 2014 7:57:57 AM UTC-7, Adi wrote:
>>
>> Atar, my partner will do it. She'll send it as soon as it's ready... 
>>
>>
> I'll have my daughter get ready for next year 
>
> /dps
>

Reminds me of this: 
https://groups.google.com/d/msg/web2py/MVbBcl6b9vU/-aZjrsUivpoJ
 

-- 
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/d/optout.


[web2py] Re: Scheduler - clarification around heartbeat, and setting up tasks

2014-04-01 Thread Anthony
Can you provide more detail regarding how you added the tasks and to what 
values you set the relevant parameters. The heartbeat does not determine 
the frequency of tasks but the frequency with which the scheduler checks 
the task queue for the arrival of new tasks to assign to workers. To set 
the frequency with which to repeat a recurring task, use the "period" 
argument (possibly in conjunction with "prevent_drift"). If you want a task 
to run approximately every minute (but do not need exactly 60 per hour), 
set repeats=0 (i.e., unlimited repeates) and set period=60 and 
prevent_drift=False (which are the default values for both). For a task 
that should run exactly once every 24 hours (at the same time), set 
period=60*60*24 and prevent_drift=True.

Anthony

On Tuesday, April 1, 2014 2:29:19 PM UTC-4, Kiran Subbaraman wrote:

> Hello,
> I have setup the scheduler to execute on three different tasks
> Task A, B, and C
> Also, have setup the scheduler's heartbeat to 20seconds
> There are no further specific configurations. It works well.
>
> Have turned on the debug log, and notice that there is a constant output 
> from the tasks there:
> 2014-04-01 23:36:16,642 - web2py.app.myapp - DEBUG -result: "Done: 
> Task A"
> 2014-04-01 23:36:17,407 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:17,408 - web2py.app.myapp - DEBUG -result: "Done: 
> Task B"
> 2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG -result: "Done: 
> Task C"
> 2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG -result: "Done: 
> Task A"
> 2014-04-01 23:36:19,719 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:19,719 - web2py.app.myapp - DEBUG -result: "Done: 
> Task C"
> 2014-04-01 23:36:20,486 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:20,486 - web2py.app.myapp - DEBUG -result: "Done: 
> Task A"
> 2014-04-01 23:36:21,260 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:21,260 - web2py.app.myapp - DEBUG -result: "Done: 
> Task B"
> 2014-04-01 23:36:22,045 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:22,045 - web2py.app.myapp - DEBUG -result: "Done: 
> Task C"
> 2014-04-01 23:36:22,819 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:22,819 - web2py.app.myapp - DEBUG -result: "Done: 
> Task A"
> 2014-04-01 23:36:23,598 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
> 2014-04-01 23:36:23,598 - web2py.app.myapp - DEBUG -result: "Done: 
> Task B"
> 2014-04-01 23:36:24,372 - web2py.app.myapp - DEBUG - new task 
> report:COMPLETED
>
> I wasn't sure what to make of it. Looks like the tasks are running at a 
> pace much higher than what I expected. Initially, I suspected that the 
> heartbeat -20seconds - determines the frequency of the tasks. And then I 
> re-read the section on the task's period-repeat combination. Now am a bit 
> lost.  
>
> I need to run one of the tasks in a once in 24hours cycle. So intend to 
> use the period/repeat combination for that task. The other tasks need to 
> run once every minute or so. My intention is to ensure that the number of 
> times the tasks hit the db is not too frequent. 
> More importantly can someone help me understand what the timing in this 
> log means, and why the tasks are running at this high a frequency? 
> Thank you. 
> Kiran
>
>
>

-- 
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/d/optout.


Re: [web2py] web2py logo - need immediate help

2014-04-01 Thread Dave S

On Tuesday, April 1, 2014 12:59:11 PM UTC-7, Anthony wrote:
>
> On Tuesday, April 1, 2014 2:41:24 PM UTC-4, Dave S wrote:
>>
>>
>>
>> On Tuesday, April 1, 2014 7:57:57 AM UTC-7, Adi wrote:
>>>
>>> Atar, my partner will do it. She'll send it as soon as it's ready... 
>>>
>>>
>> I'll have my daughter get ready for next year 
>>
>> /dps
>>
>
> Reminds me of this: 
> https://groups.google.com/d/msg/web2py/MVbBcl6b9vU/-aZjrsUivpoJ
>

I still have some similar pictures, but for me that was a few megaseconds 
ago.

/dps

 
>

-- 
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/d/optout.


[web2py] Re: [JOB] Looking for 1 web2py dev in Taipei

2014-04-01 Thread Derek
I'm only about 11,000 km away from TaiPei, and I can work full time 1 hour 
a day for 3 days a week. I have exactly 0 hours experience with AWS and 
Social datamining, but I am an expert at speaking English! Salary is 
negotiable, but let's start negotiation around $1,000,000 a year.

On Tuesday, April 1, 2014 10:11:30 AM UTC-7, Michele Comitini wrote:
>
> Is there anyone from Taipei (TW)?
>
> I have a friend who needs 1 full time web2py developer in Taipei.
>
> Experience with AWS and Social Datamining are a plus.
> English language required.
>
> Feel free to contact me for more info.
>
> Thank you!
>
> mic
>
>
>

-- 
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/d/optout.


[web2py] Re: memory leak?

2014-04-01 Thread Derek
question 1 - sure, the memory should be reclaimed eventually. You could 
tell the gc to collect immediately, but it operates on it's own time. Even 
the .NET VM will hold on to memory for longer than it should if there's 
nothing that needs that memory. You just call gc.collect() to have it 
collect immediately.

question 2 - yea, don't do that :) try 'xrange(10)' which is more 
memory efficient. 

On Tuesday, April 1, 2014 8:00:08 AM UTC-7, Rick Ree wrote:
>
> Hi,
>
> If I create a new app and put a single function in default.py:
>
> def f():
> return dict(a=list(range(10)))
>
> and then repeatedly call this using wget, e.g. wget 
> http://localhost:8000/default/f.html, then memory usage of web2py will 
> creep higher with each call. Is this a memory leak, or will the memory 
> eventually be reclaimed? Is there something I can do in f() to avoid this?
>
> thanks,
> -Rick
>

-- 
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/d/optout.


[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-04-01 Thread Derek
True, iATS charges less for nonprofits, so that may be worth looking into. 
Their API seems pretty simple as well.

On Monday, March 31, 2014 5:40:28 PM UTC-7, Massimo Di Pierro wrote:
>
> No credit card payment processor is free. They all charge more or less 3%.
>
> On Monday, 31 March 2014 16:13:51 UTC-5, Matheus Cardoso wrote:
>>
>> For sure, using Stripe is way more easier than I ever seen or used. 
>> However, it seems that it is a paid service. So you can do with Requests, 
>> for instance, and for free (at least the development part). I did something 
>> like 
>> thatin
>>  PayPal Hackathon in Campus Party Brasil 2014 in São Paulo, Brazil. The 
>> code is not good, cuz the invoices are fixed on the code and some parts are 
>> in portuguese. But, you can focus on something like this:
>>
>>
>> def create_recurring_payments_profile():
>>
>>  basic_data = basic_request
>>  recurring_payments_data = {
>>  'METHOD':'CreateRecurringPaymentsProfile',
>>  'TOKEN':request.vars['TOKEN'],
>>  'PAYERID':request.vars['PAYERID'],
>>  'PROFILESTARTDATE': request.now,
>>  'DESC': 'Revista Info',
>>  'BILLINGPERIOD': 'Day',
>>  'BILLINGFREQUENCY': '1',
>>  'AMT': 100,
>>  'CURRENCYCODE': 'BRL',
>>  'COUNTRYCODE': 'BR',
>>  'MAXFAILEDPAYMENTS': 3
>>  }
>>
>>
>>  basic_data.update(recurring_payments_data)
>>  r = requests.get(sandbox, params=basic_data)
>>  return dict(details=__response_details_to_dict(r.text))
>>
>>
>> Worked like a charm. ;)
>>
>> On Monday, March 31, 2014 6:57:14 AM UTC-3, Mika Sjöman wrote:
>>>
>>> Hi
>>>
>>> I wonder if anyone here has implemented recurring payments with Paypal 
>>> here with Web2py? Any experience with this and how to implement it?
>>>
>>> We currently charge people for lessons with our teachers, but we would 
>>> like to go over to a payment model where we automatically charge the 
>>> customers every month. 
>>>
>>> Is there a better way of doing this than Paypal? Market is mostly US and 
>>> China based. 
>>>
>>> Cheers
>>>
>>

-- 
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/d/optout.


Re: [web2py] Re: [JOB] Looking for 1 web2py dev in Taipei

2014-04-01 Thread Michele Comitini
$100 (Taiwan dollar):

http://www.wolframalpha.com/input/?i=100TWD%20in%20%24

about 33K US$ or 24K €






2014-04-01 22:50 GMT+02:00 Derek :
> I'm only about 11,000 km away from TaiPei, and I can work full time 1 hour a
> day for 3 days a week. I have exactly 0 hours experience with AWS and Social
> datamining, but I am an expert at speaking English! Salary is negotiable,
> but let's start negotiation around $1,000,000 a year.
>
>
> On Tuesday, April 1, 2014 10:11:30 AM UTC-7, Michele Comitini wrote:
>>
>> Is there anyone from Taipei (TW)?
>>
>> I have a friend who needs 1 full time web2py developer in Taipei.
>>
>> Experience with AWS and Social Datamining are a plus.
>> English language required.
>>
>> Feel free to contact me for more info.
>>
>> Thank you!
>>
>> mic
>>
>>
> --
> 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/d/optout.

-- 
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/d/optout.


Re: [web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-01 Thread samuel bonill
 node.js(callback hell)  sucks 

i love web2py !!!

El martes, 1 de abril de 2014 17:44:01 UTC, Richard escribió:
>
> Hello,
>
> I want to get rid of python entirely. As you probably know, I don't see 
> great future in Python 3000 and since we can't fighting the Javascript 
> dominance in webapp development world, I resign... I want to port web2py to 
> javascript by rewriting all piece of it except the DAL because it too good 
> and I like it!
>
> Is there any volonteers?
>
> Massimo
>

-- 
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/d/optout.


[web2py] Writable = False with Edit mode gives tampering with form's record_id error

2014-04-01 Thread Omi Chiba
I have simple table and everything works fine with View, Add, Edit. It has 
two key field and I want to protect (Writabe = False) in Edit Mode.

When I set writable = False in Controller, They're readonly in Edit mode 
but I get tampering with form's record_id.. error when I submit. Any idea?



*Controller*
def email_update():
response.title = 'Update'
response.subtitle = 'E-mail Account'

request.args(0) or redirect (URL('email_index'))
record = db.UDMEM(db.UDMEM.EMTKSC==request.args(0) and 
db.UDMEM.EMTKCD==request.args(1))

if record != None:
db.UDMEM.EMTKSC.writable = False
db.UDMEM.EMTKCD.writable = False
form = SQLFORM(db.UDMEM,record, deletable=True)
else:
redirect(URL('email_index'))  

*Model*
# MF - Email
db.define_table('UDMEM',
Field('EMTKCD', length=8,  label="Customer"),
Field('EMTKSC', length=3, label="Dept"),
Field('EMTO01', length=50,  label="To:Address 01"),
Field('EMTO02', length=50,  label="To:Address 02"),
Field('EMTO03', length=50,  label="To:Address 03"),
Field('EMTO04', length=50,  label="To:Address 04"),
Field('EMTO05', length=50,  label="To:Address 05"),
Field('EMCC01', length=50,  label="Cc:Address 01"),
Field('EMCC02', length=50,  label="Cc:Address 02"),
Field('EMCC03', length=50,  label="Cc:Address 03"),
Field('EMCC04', length=50,  label="Cc:Address 04"),
Field('EMFLAG', length=1,  label="Upload Flag"),
Field('EMUUSR', length=128, update = auth.user.username.upper() if 
auth.user else None, label="Updated by"),
Field('EMUDAT', 'datetime', update =request.now, label="Updated on"),   
 
primarykey=['EMTKCD', 'EMTKSC'])

db.UDMEM.EMTKSC.requires=IS_IN_DB(dbe,dbe.TDMBUL00.BUSEC1,'%(BUBURK)s 
(%(BUSEC1)s)')
db.UDMEM.EMTKCD.requires=IS_IN_DB(dbe,dbe.CDMTKJ00.TRTRCD,'%(TRTRKN)s 
(%(TRTRCD)s)', cache=(cache.ram, 1800))
db.UDMEM.EMTO01.requires=IS_NOT_EMPTY()
db.UDMEM.EMFLAG.writable = db.UDMEM.EMFLAG.readable = False
db.UDMEM.EMUUSR.writable = False
db.UDMEM.EMUDAT.writable = False

-- 
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/d/optout.


[web2py] Re: memory leak?

2014-04-01 Thread Rick Ree
On Tuesday, April 1, 2014 3:55:43 PM UTC-5, Derek wrote:
>
> question 1 - sure, the memory should be reclaimed eventually. You could 
> tell the gc to collect immediately, but it operates on it's own time. Even 
> the .NET VM will hold on to memory for longer than it should if there's 
> nothing that needs that memory. You just call gc.collect() to have it 
> collect immediately.
>

The problem is that in the real app, gc never occurs before memory usage 
gets so huge that the os (Ubuntu 12.04 server) kills web2py.
 

> question 2 - yea, don't do that :) try 'xrange(10)' which is more 
> memory efficient. 
>

I don't see how that will help if the full list needs to be rendered in a 
view.

Basically my problem is that I have a controller function that constructs a 
dictionary from some db queries that gets serialized in a json view. 
Repeated calls to this function leak memory, and I'm trying to figure out 
if this is a bug in web2py. The example I gave is the simplest case that 
shows the problem.

 

>
> On Tuesday, April 1, 2014 8:00:08 AM UTC-7, Rick Ree wrote:
>>
>> Hi,
>>
>> If I create a new app and put a single function in default.py:
>>
>> def f():
>> return dict(a=list(range(10)))
>>
>> and then repeatedly call this using wget, e.g. wget 
>> http://localhost:8000/default/f.html, then memory usage of web2py will 
>> creep higher with each call. Is this a memory leak, or will the memory 
>> eventually be reclaimed? Is there something I can do in f() to avoid this?
>>
>> thanks,
>> -Rick
>>
>

-- 
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/d/optout.


Re: [web2py] web2py logo - need immediate help

2014-04-01 Thread Dave S


On Tuesday, April 1, 2014 1:29:02 PM UTC-7, Dave S wrote:
>
>
> On Tuesday, April 1, 2014 12:59:11 PM UTC-7, Anthony wrote:
>>
>> On Tuesday, April 1, 2014 2:41:24 PM UTC-4, Dave S wrote:
>>>
>>>
>>>
>>> On Tuesday, April 1, 2014 7:57:57 AM UTC-7, Adi wrote:

 Atar, my partner will do it. She'll send it as soon as it's ready... 


>>> I'll have my daughter get ready for next year 
>>>
>>> /dps
>>>
>>
>> Reminds me of this: 
>> https://groups.google.com/d/msg/web2py/MVbBcl6b9vU/-aZjrsUivpoJ
>>
>
> I still have some similar pictures, but for me that was a few megaseconds 
> ago.
>


Some of those pictures are on greenbar.  No foolin'!

/dps

-- 
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/d/optout.


[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-04-01 Thread Matheus Cardoso
So, if someone uses Stripe, he will pay only the fee from Stripe and this 
will cover the PayPal's tax? 

On Monday, March 31, 2014 6:57:14 AM UTC-3, Mika Sjöman wrote:
>
> Hi
>
> I wonder if anyone here has implemented recurring payments with Paypal 
> here with Web2py? Any experience with this and how to implement it?
>
> We currently charge people for lessons with our teachers, but we would 
> like to go over to a payment model where we automatically charge the 
> customers every month. 
>
> Is there a better way of doing this than Paypal? Market is mostly US and 
> China based. 
>
> Cheers
>

-- 
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/d/optout.


Re: [web2py] web2py logo - need immediate help

2014-04-01 Thread José Ricardo Borba
I'm not a designer, but I tried to do this!

If you wanto to use it, feel free for any use.

Best Regards,



2014-04-01 19:51 GMT-03:00 Dave S :

>
>
> On Tuesday, April 1, 2014 1:29:02 PM UTC-7, Dave S wrote:
>>
>>
>> On Tuesday, April 1, 2014 12:59:11 PM UTC-7, Anthony wrote:
>>>
>>> On Tuesday, April 1, 2014 2:41:24 PM UTC-4, Dave S wrote:



 On Tuesday, April 1, 2014 7:57:57 AM UTC-7, Adi wrote:
>
> Atar, my partner will do it. She'll send it as soon as it's ready...
>
>
 I'll have my daughter get ready for next year 

 /dps

>>>
>>> Reminds me of this: https://groups.google.com/d/msg/web2py/MVbBcl6b9vU/-
>>> aZjrsUivpoJ
>>>
>>
>> I still have some similar pictures, but for me that was a few megaseconds
>> ago.
>>
>
>
> Some of those pictures are on greenbar.  No foolin'!
>
> /dps
>
>  --
> 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/d/optout.
>



-- 
José Ricardo Borba

-- 
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/d/optout.
<>

[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-04-01 Thread Greg Vaughan
Stripe charges me (in Australia) 2.7% + 30cents for each transaction 
processed, Visa, Mastercard or American Express. No other fees that are 
typically charged by other alternatives (Authorize.net) monthly fee, annual 
fee, chargeback fee etc... it is very much the simplest and most direct... 
payments are batch transferred to you account on a 7 day rolling cycle. 
Again this is as good as any other alternative. If you have a fixed amount 
to charge it can be implemented within 5 minutes using their js code for 
checkout. 

For a manual form you can use their custom implementation or Massimo's code 
above with his library...

If you want a custom payment system you will have to write the code to pass 
that to the stripe server when you are charging for the service...

Oh also... verifying your business takes about 2 minutes... and you 
definitely wont beat that.

Stripe has nothing to do with PayPal you host it on your site... (must be 
https... get a certificate from start.com for free) so there is NO PayPal 
tax...

On Wednesday, 2 April 2014 09:41:32 UTC+10, Matheus Cardoso wrote:
>
> So, if someone uses Stripe, he will pay only the fee from Stripe and this 
> will cover the PayPal's tax? 
>
> On Monday, March 31, 2014 6:57:14 AM UTC-3, Mika Sjöman wrote:
>>
>> Hi
>>
>> I wonder if anyone here has implemented recurring payments with Paypal 
>> here with Web2py? Any experience with this and how to implement it?
>>
>> We currently charge people for lessons with our teachers, but we would 
>> like to go over to a payment model where we automatically charge the 
>> customers every month. 
>>
>> Is there a better way of doing this than Paypal? Market is mostly US and 
>> China based. 
>>
>> Cheers
>>
>

-- 
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/d/optout.


Re: [web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-01 Thread Massimo Di Pierro
LOL

On Tuesday, 1 April 2014 16:24:11 UTC-5, samuel bonill wrote:
>
>  node.js(callback hell)  sucks 
>
> i love web2py !!!
>
> El martes, 1 de abril de 2014 17:44:01 UTC, Richard escribió:
>>
>> Hello,
>>
>> I want to get rid of python entirely. As you probably know, I don't see 
>> great future in Python 3000 and since we can't fighting the Javascript 
>> dominance in webapp development world, I resign... I want to port web2py to 
>> javascript by rewriting all piece of it except the DAL because it too good 
>> and I like it!
>>
>> Is there any volonteers?
>>
>> Massimo
>>
>

-- 
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/d/optout.


[web2py] Re: memory leak?

2014-04-01 Thread Massimo Di Pierro
This should not be happening. What OS? What wev2py version?

On Tuesday, 1 April 2014 10:00:08 UTC-5, Rick Ree wrote:
>
> Hi,
>
> If I create a new app and put a single function in default.py:
>
> def f():
> return dict(a=list(range(10)))
>
> and then repeatedly call this using wget, e.g. wget 
> http://localhost:8000/default/f.html, then memory usage of web2py will 
> creep higher with each call. Is this a memory leak, or will the memory 
> eventually be reclaimed? Is there something I can do in f() to avoid this?
>
> thanks,
> -Rick
>

-- 
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/d/optout.


[web2py] Re: memory leak?

2014-04-01 Thread Rick Ree
Ubuntu 12.04 and 13.10. I'm running web2py from the git repo, but observed 
this in 2.8.2 as well.

On Tuesday, April 1, 2014 10:40:55 PM UTC-5, Massimo Di Pierro wrote:
>
> This should not be happening. What OS? What wev2py version?
>
> On Tuesday, 1 April 2014 10:00:08 UTC-5, Rick Ree wrote:
>>
>> Hi,
>>
>> If I create a new app and put a single function in default.py:
>>
>> def f():
>> return dict(a=list(range(10)))
>>
>> and then repeatedly call this using wget, e.g. wget 
>> http://localhost:8000/default/f.html, then memory usage of web2py will 
>> creep higher with each call. Is this a memory leak, or will the memory 
>> eventually be reclaimed? Is there something I can do in f() to avoid this?
>>
>> thanks,
>> -Rick
>>
>

-- 
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/d/optout.


[web2py] Using Web2py on Windows 2008 with IIS 7.5

2014-04-01 Thread Guy Koppelman
I will be glad if somebody can refer my to a detailed step by step 
instructions for setting web2py on windows 2008/2012 with iis 7.5/8
I tried using fast cgi but with no success.
Thanks
Guy

-- 
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/d/optout.


[web2py] Re: Install in hostgator

2014-04-01 Thread RTBS
To try to narrow down where my error is I executed my *.fcgi file.  Please 
see below.  I still get Error 500 when visiting the domain.  How do these 
parameters get set?


[~/public_html]# ./dispatch.fcgi
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
Status: 303 SEE OTHER
Content-Type: text/html; charset=UTF-8
Location: /web2py/welcome/default/index
Content-Length: 73

You are being redirected here





On Monday, March 24, 2014 12:56:44 PM UTC-7, RTBS wrote:
>
> When I used your commands, I got python2.6 in my virtualenv.
>
> 
>
> To specify python2.7, rather than python2.6, in the virtualenv see below.
> In my example '/home//python' == ''
>
> 1) 
> virtualenv -p /usr/local/bin/python2.7 
>
> 2) 
> source /bin/activate
>
> 3) 
> pip install flup
>
> 4) 
> deactivate
> This is the command to leave your virtualenv.  To re-enter, use the 
> command in #2.
> 
>
> My project does not load (Error 500).  From reading this forum, I think 
> these are the required steps.  Is this correct?
>
> 1. create a virtualenv and install flup
> 2. create a file '.htaccess' in the 'public_html' directory
>   2.1 edit content in /home4//public_html/.htaccess
> 3. create a file 'index.fcgi' in the public_html' directory
>   3.1 edit content in /home4//public_html/index.fcgi
> 4. make the index.fcgi file executable (I used cpanel 'File Manager' to 
> set the permissions on this file to 755)
> 5. Download the source code for web2py from the web2py website.
>http://www.web2py.com/examples/static/web2py_src.zip
>   5.1 FTP or SCP the zip file to your /home4/ directory
>   5.2 Use the unzip command to put web2py at /home4//web2py
> 6. Copy the 'routespatterns.example.py' file from 
> /home4//web2py/examples to /home4//web2py
>   6.1 rename the file 'routes.patterns.example.py' to 'routes.py'
>   6.2 edit content in /home4//web2py/routes.py
>
> 
>
> I sent a ticket to their support team about utilizing mod_wsgi or fcgi, 
> knowing that web2py would not be supported.  Will this even work with the 
> 'Hatchling' package?  Perhaps I am wasting my time and need to change 
> hosting providers.
>
> From my support ticket:
> Currently, our Reseller and Shared plans (Hatchling, Baby, and Business) 
> are set up with suPHP, and would require an upgrade if you needed to use a 
> different handler. We have Apache 2.2 and 2.4 available for our VPS and 
> Dedicated servers, and Apache 2.2 for our shared environment.
>
> In order to use fcgi or mod_wsgi, it is required that you upgrade to 
> either a VPS or a Dedicated server solution. Both of these packages allow 
> for custom configuration of nearly any aspect of your server, and give you 
> full control over your software. 
>
> Any pointers would be appreciated. Thanks!
>
> On Friday, January 31, 2014 9:36:47 AM UTC-8, desta wrote:
>>
>> I am writing to update this method. We have followed the instructions 
>> included above but we kept getting an internal server error 500.
>>
>> The problem was that we had no experience how virtualenv works! So first 
>> you need to create one with the following command:
>> virtualenv /home//python
>>
>> The problem was here, that this virtualenv missing the flup module. So to 
>> install you first need to run
>> source /home//python/bin/activate
>>
>> and then run
>>
>> pip install flup
>>
>>
>> After that, it should work. Make sure you run the instructions from the 
>> previous posts.
>>
>> I hope this helps someone.
>>
>> On Wednesday, April 17, 2013 8:28:07 PM UTC+3, Diogo Munaro wrote:
>>>
>>> Thx man! You help me a lot!!
>>>
>>> Em sábado, 14 de maio de 2011 01h21min13s UTC-3, José Eloy escreveu:

 Hello! 

 Recently a customer bought a hosting plan (business) with hostgator. 
 I'm developing for him a web2py application, I have doubts of how to 
 deploy it. Somebody can help me? The application runs well in 
 localhost (ubuntu). 

 Thanks 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/d/optout.


[web2py] web2py over http?

2014-04-01 Thread Daniel McBrearty
according to 

http://web2py.com/books/default/chapter/29/09/access-control

"Auth has an optional secure=True argument, which will force authenticated 
pages to go over HTTPS"

by implication I take this to mean that 

from gluon.tools import Auth
auth = Auth(db, secure=False)

in db.py should make 

http://mysite.com/myapp/default/index.html

work fine. But in practice this does not seem to work.  I simply get "Bad 
Request" and I have to use https.

Do I interpret the docs correctly? Do I miss something?

thanks

Daniel

-- 
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/d/optout.


[web2py] Re: how to embed a d3.js script in a view correctly?

2014-04-01 Thread Sihui Huang
Hi Martina,

Thanks for posting this! It's very helpful!
I'm also trying to use d3 in web2py.
I follow your example, it works!
But I don't know how to make to circle appear above the copyright 2013
-- powered by web2py line.

Here's the html file:
{{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}}
{{extend 'layout.html'}}
 

Here we would like to have some d3.js plots

d3.select('body').append('svg').append('circle').style("stroke", 
"gray").style("fill", "red").attr("r", 40).attr("cx", 50).attr("cy", 50);




What should I add?

Thanks!!

On Tuesday, January 15, 2013 2:33:48 AM UTC-6, Martina Gruber wrote:
>
> Alan and Ramos, thnk you for the answers.
> Based on your recommendations I did the following: 
> 1. Created a new app with the wizard (default layout, name: TestD3). 
> Views: index,error and visualizations where I want to have the d3 stuff. 
> 2. Put the d3 javascript file in static/js 
> 3. In View TestD3/views/default/visualizations.html:
>
> {{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}}
>{{extend 'layout.html'}}
>
>Here we would like to have some d3.js plots
>
>  
> d3.select('body').append('svg').append('circle').style("stroke", 
> "gray").style("fill", "red").attr("r", 40).attr("cx", 50).attr("cy", 50);
>
>
> This produced a red circle but the circle below the copyright 2013-- 
> powered by web2py line.
> Of course I have to select properly because I want to have the circle 
> inside:
>
>   
>
>
> I ll take some time to dive into web2py and then I will post whatever 
> worked with d3.
>
>
>
>

-- 
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/d/optout.


Re: [web2py] Re: Scheduler - clarification around heartbeat, and setting up tasks

2014-04-01 Thread Kiran Subbaraman

  
  
Anthony,
  Thanks for the explanation, helps me understand scheduler better.
  I will try the task configuration now. 
  This is my scheduler and task definition:
  sched_db = DAL(...postgres...)
  scheduler = Scheduler(heartbeat=20)
  # Task A
  scheduler.queue_task(functionc)
  # Task B
  scheduler.queue_task(functionb)
  # Task C
  scheduler.queue_task(functiona)
  
  The function* are regular functions to send emails and such,
  representing tasks A, B, C. I haven't set any of the task
  configuration parameters; working with defaults. 
  
  What I couldn't understand was the timestamps at which the tasks
  appear on the debug log. They seem to be running every second or
  less than a second. 
  


Kiran Subbaraman
http://subbaraman.wordpress.com/about/
  On Wed, 02-04-2014 1:26 AM, Anthony wrote:


  
Can you provide more detail regarding how you added the
  tasks and to what values you set the relevant parameters. The
  heartbeat does not determine the frequency of tasks but the
  frequency with which the scheduler checks the task queue for
  the arrival of new tasks to assign to workers. To set the
  frequency with which to repeat a recurring task, use the
  "period" argument (possibly in conjunction with
  "prevent_drift"). If you want a task to run approximately
  every minute (but do not need exactly 60 per hour), set
  repeats=0 (i.e., unlimited repeates) and set period=60 and
  prevent_drift=False (which are the default values for both).
  For a task that should run exactly once every 24 hours (at the
  same time), set period=60*60*24 and prevent_drift=True.


Anthony
  
  On Tuesday, April 1, 2014 2:29:19 PM UTC-4, Kiran Subbaraman
  wrote:

  Hello,
I have setup the scheduler to execute on three different
tasks
Task A, B, and C
Also, have setup the scheduler's heartbeat to 20seconds
There are no further specific configurations. It works well.

Have turned on the debug log, and notice that there is a
constant output from the tasks there:

2014-04-01 23:36:16,642 - web2py.app.myapp - DEBUG -    result: "Done: Task A"
  2014-04-01 23:36:17,407 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:17,408 - web2py.app.myapp - DEBUG -    result: "Done: Task B"
  2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG -    result: "Done: Task C"
  2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG -    result: "Done: Task A"
  2014-04-01 23:36:19,719 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:19,719 - web2py.app.myapp - DEBUG -    result: "Done: Task C"
  2014-04-01 23:36:20,486 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:20,486 - web2py.app.myapp - DEBUG -    result: "Done: Task A"
  2014-04-01 23:36:21,260 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:21,260 - web2py.app.myapp - DEBUG -    result: "Done: Task B"
  2014-04-01 23:36:22,045 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:22,045 - web2py.app.myapp - DEBUG -    result: "Done: Task C"
  2014-04-01 23:36:22,819 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:22,819 - web2py.app.myapp - DEBUG -    result: "Done: Task A"
  2014-04-01 23:36:23,598 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  2014-04-01 23:36:23,598 - web2py.app.myapp - DEBUG -    result: "Done: Task B"
  2014-04-01 23:36:24,372 - web2py.app.myapp - DEBUG -     new task report: COMPLETED
  
  

I wasn't sure what to make of it. Looks like the tasks are
running at a pace much higher than what I expected.
Initially, I suspected that the heartbeat -20seconds -
determines the frequency of the tasks. And then I re-read
the section on the task's period-repeat combination. Now am
a bit lost.  

I need to run one of the tasks in a once in 24hours cycle.
So intend to use the period/repeat combination for that
task. The other tasks

Re: [web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-04-01 Thread Martin Weissenboeck
Stripe looks good, but could not be used in Austria/Europe. Sorry!  :-(
Martin


2014-04-02 5:38 GMT+02:00 Greg Vaughan :

> Stripe charges me (in Australia) 2.7% + 30cents for each transaction
> processed, Visa, Mastercard or American Express. No other fees that are
> typically charged by other alternatives (Authorize.net) monthly fee, annual
> fee, chargeback fee etc... it is very much the simplest and most direct...
> payments are batch transferred to you account on a 7 day rolling cycle.
> Again this is as good as any other alternative. If you have a fixed amount
> to charge it can be implemented within 5 minutes using their js code for
> checkout.
>
> For a manual form you can use their custom implementation or Massimo's
> code above with his library...
>
> If you want a custom payment system you will have to write the code to
> pass that to the stripe server when you are charging for the service...
>
> Oh also... verifying your business takes about 2 minutes... and you
> definitely wont beat that.
>
> Stripe has nothing to do with PayPal you host it on your site... (must be
> https... get a certificate from start.com for free) so there is NO PayPal
> tax...
>
>
> On Wednesday, 2 April 2014 09:41:32 UTC+10, Matheus Cardoso wrote:
>>
>> So, if someone uses Stripe, he will pay only the fee from Stripe and this
>> will cover the PayPal's tax?
>>
>> On Monday, March 31, 2014 6:57:14 AM UTC-3, Mika Sjöman wrote:
>>>
>>> Hi
>>>
>>> I wonder if anyone here has implemented recurring payments with Paypal
>>> here with Web2py? Any experience with this and how to implement it?
>>>
>>> We currently charge people for lessons with our teachers, but we would
>>> like to go over to a payment model where we automatically charge the
>>> customers every month.
>>>
>>> Is there a better way of doing this than Paypal? Market is mostly US and
>>> China based.
>>>
>>> Cheers
>>>
>>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [web2py] Re: Published my collection of plugins

2014-04-01 Thread Rahul
Hi Kenji,
Thanks! for the wonderful widgets. I am already using a few in my 
web2py projects. They make my life simple. 

Sincerely, Rahul D.


On Tuesday, April 1, 2014 7:20:30 PM UTC+5:30, Richard wrote:
>
> The thing with Modal from bootstrap is that the form are embeded at the 
> same level, I mean they are both in the same page even if you build it with 
> a component... The way to workaround this issue is to give a name to your 
> form (form.process(formname=...).accepted:).
>
> There is this ressource that can help :
>
>
> http://linuxapuntes.blogspot.com.ar/2013/03/plugin-modal-bootstrap-web2py.html
>
> Good luck.
>
> Richard
>
>
> On Tue, Apr 1, 2014 at 6:18 AM, Richard 
> > wrote:
>
>> Kenji,
>>
>> I try to use the nice (modal) Dialog widget with a Web2py app. It starts 
>> but keeps ths status loading...
>>
>> In the controller:
>> dlg_add_role = DIALOG(LOAD(f='add_role', ajax=True), title='Add 
>> role', close_button='close', renderstyle=True)
>>
>> return dict(dlg_add_role=dlg_add_role,
>> s1s=s1s, entities=entities, assets=assets, 
>> parents=parents, sip=sip,
>> env_cat=env_cat, env_domains=env_domains,
>> channels=channels, supply_channels=supply_channels, 
>> im_labels=im_labels,
>> form_env=form_env, form_vpu=form_vpu,
>> data_list = data_list,
>> activities = activities,
>> roles = roles,
>> customers = customers
>> )
>>
>> def add_role():
>> return DIV('OK!')
>>
>>
>>
>> In the index.html view:
>>.
>> 
>>  {{=A('Add role', _href='#dlg_add_role', 
>> _onclick='%s;return false' % dlg_add_role.show())}}
>> 
>> ..
>>
>>
>> On Thursday, September 8, 2011 11:53:28 AM UTC+2, kenji4569 wrote:
>>>
>>> Thanks for the information. But it seems that I have to buy a licence 
>>> to get the full source code. I will look for other solutions. 
>>>
>>> Kenji 
>>>
>>> On 9月8日, 午前2:59, Richard Vézina  wrote: 
>>> > Hello Kenji, 
>>> > 
>>> > You will maybe find the code of the actual datepicker here :
>>> http://www.dynarch.com/projects/calendar/ 
>>> > 
>>> > If you clic on the "?" when the datepicker popup you will have the 
>>> > disclaimer of the author of the plugin... 
>>> > 
>>> > Richard 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > On Tue, Sep 6, 2011 at 8:59 PM, kenji4569  wrote: 
>>> > > > After i upload a file i get a icon in the text. 
>>> > > > How do i lauch the file that i just embedded in the text? 
>>> > > The elrte editor prevents the icon link from clicking to download 
>>> the 
>>> > > file. 
>>> > > So you have to first submit the editing html, 
>>> > > and save the html in db, 
>>> > > and then display the html in the view (as {{=XML(record.text)}}). 
>>> > > But currently, the demo do not demonstrate this (so you need to 
>>> > > implement this on your app). 
>>> > > In the meantime, you can check the html source from the editor by 
>>> > > clicking the "source" tab at the bottom of the editor. 
>>> > 
>>> > > Kenji 
>>> > 
>>> > > On 9月7日, 午前1:02, António Ramos  wrote: 
>>> > > > After i upload a file i get a icon in the text. 
>>> > > > How do i lauch the file that i just embedded in the text? 
>>> > 
>>> > > > Thank you 
>>> > 
>>> > > > 2011/9/6 kenji4569  
>>> > 
>>> > > > > > web2py gives the file in the download 
>>> > > > > > directory for example 
>>> > 
>>> > > 5e74c950-95b2-4843-b4c6-53bc8efca8fe>> > >  
>>>
>>> > 
>>> > > lrte_widget_file.file.9a877c8c8c9d285c.
>>> 4361726f6c696e61323031305f612e646f63 
>>> > > > > .doc> 
>>> > > > > The former random string is a display file name, and just for 
>>> demo. 
>>> > > > > The latter one is an actual file name generated by web2py. 
>>> > 
>>> > > > > Now, I remove the former, since it's confusing: 
>>> > > > >http://dev.s-cubism.com/plugin_elrte_widget 
>>> > 
>>> > > > > Changing the latter would require much work with deeper 
>>> inspection 
>>> > > > > into the web2py upload mechanism. 
>>> > 
>>> > > > > Changing the look and feel such as replacing icons would be 
>>> easier, 
>>> > > > > and you should see the file_upload_or_choose() function in the 
>>> usage 
>>> > > > > code of the demo. 
>>> > 
>>> > > > > Note that I do not implement a ready-made image/file chooser, 
>>> and you 
>>> > > > > have to implement it for your own application, starting from the 
>>> usage 
>>> > > > > code, including setting up your db and defining your image and 
>>> file 
>>> > > > > tables. 
>>> > 
>>> > > > > Regards, 
>>> > > > > Kenji 
>>> > 
>>> > > > > On 9月6日, 午後6:01, António Ramos  wrote: 
>>> > > > > > Hello Kenji, 
>>> > > > > > Thank you for your fast work 
>>> > 
>>> > > > > > One problem! 
>>> > > > > > The form is not very friendly. 
>>> > 
>>> > > > > > In the submit form i choose a pdf for example myfile.pdf but 
>>> in the 
>>> > > name 
>>> > > > > > field you write the name th