[web2py] Re: Bug in XML(...,sanitize=True) ?

2015-06-26 Thread Massimo Di Pierro
The bug was introduced yesterday. Fixed in trunk now.


On Saturday, 27 June 2015 00:12:10 UTC-5, Massimo Di Pierro wrote:
>
> I this with the latest trunk or earlier version. It may be a recent bug. 
> Will fix it today.
>
> On Friday, 26 June 2015 18:05:27 UTC-5, Brian M wrote:
>>
>> I'm working on upgrading to the latest web2py version and may have 
>> uncovered a bug in the sanitizer. If you use XML(form.var.something, 
>> sanitize=True) and form.var.something is just a plain string without any 
>> tags then what you end up getting returned is an empty string rather than 
>> the original string.  I don't think this is the intended behavior and 
>> certainly wasn't the behavior in earlier versions.  Have I been using XML() 
>> wrong all this time or is this a bug?
>>
>

-- 
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: Bug in XML(...,sanitize=True) ?

2015-06-26 Thread Massimo Di Pierro
I this with the latest trunk or earlier version. It may be a recent bug. 
Will fix it today.

On Friday, 26 June 2015 18:05:27 UTC-5, Brian M wrote:
>
> I'm working on upgrading to the latest web2py version and may have 
> uncovered a bug in the sanitizer. If you use XML(form.var.something, 
> sanitize=True) and form.var.something is just a plain string without any 
> tags then what you end up getting returned is an empty string rather than 
> the original string.  I don't think this is the intended behavior and 
> certainly wasn't the behavior in earlier versions.  Have I been using XML() 
> wrong all this time or is this a bug?
>

-- 
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: fillable pdf forms

2015-06-26 Thread Massimo Di Pierro
One method I have used in the past is using latex to generate a new 
document where the original PDF is used as background and the you fill the 
form by writing the appropriate text at the right coordinates in PDF. Then 
convert the resulting latex in PDF. Perhaps the same trick may be used with 
reportlab.

On Friday, 26 June 2015 10:17:08 UTC-5, Mark Billion wrote:
>
> You are correct.  That said, the issue -- as it turns out -- is that the 
> script requests access to /proc/self/stat but PA doesnt grant access to 
> the same in the sandbox.  Id rather host remotely but Im stumped at how to 
> work around this...
>
>
> On Friday, June 26, 2015 at 8:02:38 AM UTC-4, Massimo Di Pierro wrote:
>>
>> I looked at the source code of pypdftk and it does not appear to depend 
>> on windows. It does require pdftk installed under /usr/bin/pdftk
>>
>> On Thursday, 25 June 2015 15:19:57 UTC-5, Mark Billion wrote:
>>>
>>> I would like to fill a form with an FDF dict, i.e, form.pdf % 
>>> {element:data}.  I have seen a lot on pypdftk, but I think it requires 
>>> a MS system as a dependency. Any alternatives? 
>>>
>>

-- 
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: record versioning on auth tables

2015-06-26 Thread Massimo Di Pierro
Because they do not have a signature (modified_by, modified_on). They do 
not have a signature because they are meant to be write only and they are 
meat to be written even before a user logs in.

On Friday, 26 June 2015 15:52:56 UTC-5, 黄祥 wrote:
>
> hi,
>
> just wondering about record versioning on auth tables, why the table auth 
> events and auth cas don't have archives table when i use record versioning 
> on auth tables?
>
> thanks and best regards,
> stifan
>

-- 
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] Transitioning/Bug/unable to save

2015-06-26 Thread Mark Billion
Seems the easiest way to handle the fillable pdf issue is to move over to 
rackspace.  Ive loaded a server and have w2p up and running.  Welcome app 
works fine and is editable.  I moved the entire folder from PA to 
rackspace, and it loaded up fine.  That said, I uploaded a bunch of views, 
and they won't save after editing.  I just get a red box and communication 
error.  Log files show nothing.  Thoughts?

-- 
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] Bug in XML(...,sanitize=True) ?

2015-06-26 Thread Brian M
I'm working on upgrading to the latest web2py version and may have 
uncovered a bug in the sanitizer. If you use XML(form.var.something, 
sanitize=True) and form.var.something is just a plain string without any 
tags then what you end up getting returned is an empty string rather than 
the original string.  I don't think this is the intended behavior and 
certainly wasn't the behavior in earlier versions.  Have I been using XML() 
wrong all this time or is this a bug?

-- 
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: dynamic query on web2py

2015-06-26 Thread Dave S


On Friday, June 26, 2015 at 2:00:19 PM UTC-7, 黄祥 wrote:
>
> hi,
>
> is it possible to have dynamic query on web2py? i don't know the techincal 
> name for this, but what i want to achieve is about the product view is 
> display dinamically (after refresh the orderby rules is change (i think) ). 
> e.g.
> *when first time access it show product : *
> men watches
> A B C D E
> *after refresh it show product :*
> men watches
> B A C E D
>
>

Not quite the same thing, but isn't there an orderby random option?

/dps
 

> ref:
> http://machtwatch.com
>
> any idea how to accomplished this in web2py?
>
> thanks and best regards,
> stifan
>

-- 
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] dynamic query on web2py

2015-06-26 Thread 黄祥
hi,

is it possible to have dynamic query on web2py? i don't know the techincal 
name for this, but what i want to achieve is about the product view is 
display dinamically (after refresh the orderby rules is change (i think) ). 
e.g.
*when first time access it show product : *
men watches
A B C D E
*after refresh it show product :*
men watches
B A C E D

ref:
http://machtwatch.com

any idea how to accomplished this in web2py?

thanks and best regards,
stifan

-- 
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] record versioning on auth tables

2015-06-26 Thread 黄祥
hi,

just wondering about record versioning on auth tables, why the table auth 
events and auth cas don't have archives table when i use record versioning 
on auth tables?

thanks and best regards,
stifan

-- 
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] Suggestions for multiple files upload in form

2015-06-26 Thread Chaitu P
Hi Paolo,

I have installed your application and it is working perfectly.
I want have same multiimage upload functionality in my application. So I 
changed one of the table names.
But unfortunately it is not working. Iam not sure what Iam missing I have 
copied the css and js files as well.  Is there a way that you can help me.

my controller:
def new():
# only SQLFORM.factory tested
form=SQLFORM.factory(db.submission,db.t_photos)

if form.accepts(request, session, onvalidation=lambda form:check(form)): # 
Is it possible to use onvalidation with form.process() syntax ?
submission_id = 
db.submission.insert(**db.submission._filter_fields(form.vars))
nfiles = 0
for var in request.vars:
if var.startswith('f_photo') and request.vars[var] != '':
uploaded = request.vars[var]
if isinstance(uploaded,list):
# files uploaded through input with "multiple" attribute set on true
counter=0
for element in uploaded:
counter += 1
nfiles += 1
file_title = element.name.split(":")[-1] # TODO: could this be made better? 
 # I mean, the title must be appended to element's name 
 # or is there another way?
db.t_photos.insert(
f_trip_ref=trip_id,
f_title=file_title+" ("+str(counter)+")" if file_title!="" else file_title,
f_photo=db.t_photos.f_photo.store(element.file,element.filename))
else:
# only one file uploaded
element = request.vars[var]
nfiles += 1
db.t_photos.insert(
f_trip_ref=trip_id,
f_title=element.name.split(":")[-1],
f_photo=db.t_photos.f_photo.store(element.file,element.filename))

session.flash = T('%s photo%s uploaded'%(nfiles, 's' if nfiles>1 else ''))
redirect(URL('teacher'))

if isinstance(form,FORM):
# hide f_title form's row. Is there a better way to accomplish it?
del form[0][3]

return dict(form=form)

view:
{{response.files.extend([URL('static','css/multiupload.css'),URL('static','js/jquery.multiupload.js')])}}
{{left_sidebar_enabled=right_sidebar_enabled=False}}
{{extend 'layout.html'}}

{{=form}}

//



model:

db.define_table('submission', 
Field('name', requires=[IS_NOT_EMPTY(), IS_ALPHANUMERIC()]), 
Field('email', requires=[IS_NOT_EMPTY(), IS_EMAIL()]),
#Field('file','upload', requires=IS_NOT_EMPTY()),
Field('status', readable=False,writable=False),
Field('posted_on', 'date', default=request.now, readable=False, 
writable=False),
Field('problem_id','reference problem',readable=False, writable=False))

db.define_table('t_photos',
Field('f_trip_ref', type='reference submission', notnull=True, 
writable=False, readable=False),
Field('f_title', type='string', label=T('Title'), notnull=False), # 
notnull=False is required
Field('f_photo', type='upload', 
uploadfolder=request.folder+'static/pictures', notnull=False, # 
notnull=False is required
label=T('Photos'),
represent=lambda x, row:x and A('%s'%(db.t_photos.f_photo.retrieve(x)[0]),
_href=URL('default','viewer.html',args=x),
_target="_blank",
_title=T("open photo"),
_class='file-reference')
or ''
),
)




On Friday, June 22, 2012 at 1:46:51 PM UTC-5, Paolo Caruccio wrote:
>
> Richard,
>
> I'm sorry for late answer. I spent a bit of time playing with bootstrap 
> 2.0.4 and rewriting the code to follow frequent web2py changes. 
>
> In attached app, you'll find a rewieved version of multiuploads control 
> and some bootstrap features (carousel, web2py flash messages replaced with 
> bootstrap alert, form and form errors).
>
> I don't know if the approach  - that you'll see in app - is enough to 
> satisfy your request, but It represents the way I would use.
>
> The app is a toy. I mean, you could find many bugs, not optimized code, 
> and so on. Its scope is only to demonstrate multiuploads control  usage in 
> an web2py application.
>
>
>
> Il giorno venerdì 1 giugno 2012 22:08:06 UTC+2, Richard ha scritto:
>>
>> No problem, I don't have time neither maybe for a couples of days too :)
>>
>> Richard
>>
>> On Fri, Jun 1, 2012 at 3:24 PM, Paolo Caruccio > > wrote:
>>
>>> Richard,
>>>
>>> I made some reflections on what you want to do and it's not easy, since 
>>> the use of control for simultaneous upload of multiple files was aimed to 
>>> replace the standard control. As an example of use, you can see 
>>> http://ochiba77.blogspot.it/2012/01/web2py-slices-sending-email-from-form.html
>>>  However, we can use a different approach to getting what you want 
>>> through the use of a smartgrid. I'll post soon a demo application (in this 
>>> days I'm very busy in personal matters). 
>>>
>>> Il giorno giovedì 31 maggio 2012 19:35:02 UTC+2, Richard ha scritto:
>>>
 Here where I get as now :

 Controler :
 de

[web2py] Re: fillable pdf forms

2015-06-26 Thread info
Very true, and Ive loaded it  

I run the standard example and get this in response:

 Command '/usr/bin/pdftk 
https://mmb21167.pythonanywhere.com/IW_Test/static/bk_forms/sch_a.pdf 
fill_form /tmp/tmpwwY6xU output /tmp/tmpDT0sFG' returned non-zero exit 
status 134

Any idea why it would be overwriting free memory?

On Friday, June 26, 2015 at 8:02:38 AM UTC-4, Massimo Di Pierro wrote:
>
> I looked at the source code of pypdftk and it does not appear to depend on 
> windows. It does require pdftk installed under /usr/bin/pdftk
>
> On Thursday, 25 June 2015 15:19:57 UTC-5, Mark Billion wrote:
>>
>> I would like to fill a form with an FDF dict, i.e, form.pdf % 
>> {element:data}.  I have seen a lot on pypdftk, but I think it requires a 
>> MS system as a dependency. Any alternatives? 
>>
>

-- 
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] Multilingual static on GAE problem

2015-06-26 Thread Sébastien Loix
Hello to all,

When I set the src of my static image with the helper {{=URL('static', 
'img/logo.png', scheme=True, host=True)}} I get this path in my view:

http://192.168.1.12:8080/corporate/en/static/img/logo.png

The language "en" is not routed like it should (and said in the manual) to

http://192.168.1.12:8080/corporate/static/en/img/logo.png, or even better
http://192.168.1.12:8080/corporate/static/img/logo.png

as there isn't a "en" folder in my static

It seems to be a GAE specific problem as mentioned in this thread (
https://groups.google.com/forum/#!searchin/web2py/gae$20router$20language$20static/web2py/BegoBS85Itg/Mv1YQDWZak4J)
 
but I can't get the new regex (from David Sorrentino) to work in my 
app.yaml 

I added (without succes) this rule into it:

- url: /(?P.+?)/.{2}/static/(?P.+) static_files: 
applications/\1/static/\2 upload: applications/(.+?)/static/(.+) secure: 
optional expiration: "365d"


Any help on this will be greatly appreciated
Thanks!

PS: This is happening locally in the GAE sdk

-- 
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: bootstrap layout adaption

2015-06-26 Thread Niphlod
folder-what ? just download the styles and refer to the correct url in your 
layout...

On Friday, June 26, 2015 at 8:23:06 AM UTC+2, Manuele wrote:
>
> Can anyone tell me if it could be easy to adapt this[1] bootstrap layout 
> in order to be used for a web2py application? 
> The best would be to create a plugin I guess... but the folder structure 
> seams not to fit to web2py standards... 
> Any suggest will be appreciated :) 
>
> Thank you very mutch 
>
> Best regards 
>
> Manuele 
>
> [1] https://github.com/IronSummitMedia/startbootstrap-sb-admin-2 
>

-- 
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: Request.vars based on dropdown

2015-06-26 Thread Dave S


On Friday, June 26, 2015 at 3:12:49 AM UTC-7, Carla Raquel wrote:
>
> I have two dropdown lists like the ones below and I would like to compose 
> my URL using the month and year as vars, after I click a certain link.How 
> can I change my current request.vars to the selected values?
>

Are these selects part of a form?  If so, their values should be in 
request.vars when you submit, AIUI.

If they are not part of a form, you may need to do client-side javascript 
to compete the URL, which would be a problem if you're using signed URLs.
(Again, AIUI)

/dps


 

>
> 
> Select month:
> {{for m in months:}}
>  {{=m}}
> {{pass}}
> 
>
> 
>
>  Select year:
> {{for y in years:}}
> {{=y}}
> {{pass}}
>  
>
>
>

-- 
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: What if Massimo got hit by a Bus?

2015-06-26 Thread Massimo Di Pierro
LOL. 

On Friday, 26 June 2015 07:10:22 UTC-5, Iuri Guilherme dos Santos Martins 
wrote:
>
> According to the original topic, in this case this OP would wish you hit 
> the bike more often...
>
>
> iuri.neocities.org
>
> 2015-06-26 9:08 GMT-03:00 Massimo Di Pierro :
>
>> LOL ... and I got into an accident. Broke the bike but I am fine. P.S. No 
>> buses involved. ;-)
>>
>> Side effect: more time to improve web2py.
>>
>> On Friday, 26 June 2015 05:07:36 UTC-5, Najtsirk wrote:
>>>
>>> Massimo got a motorbike. 
>>>
>>> On Thursday, 26 May 2011 16:15:17 UTC+2, Bob Blanchett wrote:

 I just read this presentation by by GvR/BDFL 
 
  
 on 21 years of Python and wondered for Web2py  as  some one did  for 
 Python  
 in 1994.

 What if the worst happened to Massimo (God Forbid) ?

 The Technology Selection Risks etc etc..

 Yours in no way Gruesomely,

 Bob

>>>  -- 
>> 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] For those using ractive or vuejs. I need help !!

2015-06-26 Thread António Ramos
Hello ,
so far so good i created my second vuejs page inside web2py and this time
using components.


my doformind.js has some components and changes the delimiters to avoid
colision with curlies.

Vue.config.delimiters = ['(%', '%)'];
Vue.component('pote', {
  props: ['name','items'],
  template: '#pote' *<- refering to the html template inside my page*
});
etc


my html ...


{{response.files.append(URL(r=request,c='static',f='/js/vue.min.js'))}}
{{response.files.append(URL(r=request,c='static',f='/js/vue-resource.min.js'))}}
{{response.files.append(URL(r=request,c='static',f='/js/toastr.js'))}}
{{response.files.append(URL(r=request,c='static',f='/js/jquery-ui.js'))}}
*{{response.files.append(URL(r=request,c='static',f='/js/doformind.js'))}}*
{{response.files.append(URL(r=request,c='static',f='/css/toastr.css'))}}
*{{response.files.append(URL(r=request,c='static',f='/css/doformind.css'))}}*
{{extend 'layout.html'}}



(%name%)
somewhere in my page i have this component All of this works very well outside web2py. Inside web2py i get a blank page and in chrome dev tools i see that was translated to instead of 1 the items object have to elements each a json object. What could be the problem ? I suspect that the

[web2py] Re: fillable pdf forms

2015-06-26 Thread Mark Billion
You are correct.  That said, the issue -- as it turns out -- is that the 
script requests access to /proc/self/stat but PA doesnt grant access to the 
same in the sandbox.  Id rather host remotely but Im stumped at how to work 
around this...


On Friday, June 26, 2015 at 8:02:38 AM UTC-4, Massimo Di Pierro wrote:
>
> I looked at the source code of pypdftk and it does not appear to depend on 
> windows. It does require pdftk installed under /usr/bin/pdftk
>
> On Thursday, 25 June 2015 15:19:57 UTC-5, Mark Billion wrote:
>>
>> I would like to fill a form with an FDF dict, i.e, form.pdf % 
>> {element:data}.  I have seen a lot on pypdftk, but I think it requires a 
>> MS system as a dependency. Any alternatives? 
>>
>

-- 
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] thumbnails plugin updated

2015-06-26 Thread Carlos Cesar Caballero Díaz
Hi, again post this to the list because of my imposibility to upload 
plugins to web2pyslices.


I have updated my thumbnails plugin, and now we can use the use_imageops 
option to crop the original image and fit the desired proportion, there 
is other minor updates, the project url is: 
https://github.com/cccaballero/web2py-thumbnails


In the next updates I will work to use the plugin manager.

Cheers.

--
Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/

--
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: What if Massimo got hit by a Bus?

2015-06-26 Thread Michele Comitini
You go too fast @Massimo!  :D

2015-06-26 14:10 GMT+02:00 Iuri Guilherme dos Santos Martins <
aindatenhoco...@gmail.com>:

> According to the original topic, in this case this OP would wish you hit
> the bike more often...
>
>
> iuri.neocities.org
>
> 2015-06-26 9:08 GMT-03:00 Massimo Di Pierro :
>
>> LOL ... and I got into an accident. Broke the bike but I am fine. P.S. No
>> buses involved. ;-)
>>
>> Side effect: more time to improve web2py.
>>
>> On Friday, 26 June 2015 05:07:36 UTC-5, Najtsirk wrote:
>>>
>>> Massimo got a motorbike.
>>>
>>> On Thursday, 26 May 2011 16:15:17 UTC+2, Bob Blanchett wrote:

 I just read this presentation by by GvR/BDFL
 
 on 21 years of Python and wondered for Web2py  as  some one did  for
 Python 
 in 1994.

 What if the worst happened to Massimo (God Forbid) ?

 The Technology Selection Risks etc etc..

 Yours in no way Gruesomely,

 Bob

>>>  --
>> 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.


Re: [web2py] Re: What if Massimo got hit by a Bus?

2015-06-26 Thread Iuri Guilherme dos Santos Martins
According to the original topic, in this case this OP would wish you hit
the bike more often...


iuri.neocities.org

2015-06-26 9:08 GMT-03:00 Massimo Di Pierro :

> LOL ... and I got into an accident. Broke the bike but I am fine. P.S. No
> buses involved. ;-)
>
> Side effect: more time to improve web2py.
>
> On Friday, 26 June 2015 05:07:36 UTC-5, Najtsirk wrote:
>>
>> Massimo got a motorbike.
>>
>> On Thursday, 26 May 2011 16:15:17 UTC+2, Bob Blanchett wrote:
>>>
>>> I just read this presentation by by GvR/BDFL
>>> 
>>> on 21 years of Python and wondered for Web2py  as  some one did  for
>>> Python 
>>> in 1994.
>>>
>>> What if the worst happened to Massimo (God Forbid) ?
>>>
>>> The Technology Selection Risks etc etc..
>>>
>>> Yours in no way Gruesomely,
>>>
>>> Bob
>>>
>>  --
> 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] Re: What if Massimo got hit by a Bus?

2015-06-26 Thread Massimo Di Pierro
LOL ... and I got into an accident. Broke the bike but I am fine. P.S. No 
buses involved. ;-)

Side effect: more time to improve web2py.

On Friday, 26 June 2015 05:07:36 UTC-5, Najtsirk wrote:
>
> Massimo got a motorbike. 
>
> On Thursday, 26 May 2011 16:15:17 UTC+2, Bob Blanchett wrote:
>>
>> I just read this presentation by by GvR/BDFL 
>> 
>>  
>> on 21 years of Python and wondered for Web2py  as  some one did  for 
>> Python  
>> in 1994.
>>
>> What if the worst happened to Massimo (God Forbid) ?
>>
>> The Technology Selection Risks etc etc..
>>
>> Yours in no way Gruesomely,
>>
>> Bob
>>
>

-- 
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: fillable pdf forms

2015-06-26 Thread Massimo Di Pierro
I looked at the source code of pypdftk and it does not appear to depend on 
windows. It does require pdftk installed under /usr/bin/pdftk

On Thursday, 25 June 2015 15:19:57 UTC-5, Mark Billion wrote:
>
> I would like to fill a form with an FDF dict, i.e, form.pdf % 
> {element:data}.  I have seen a lot on pypdftk, but I think it requires a 
> MS system as a dependency. Any alternatives? 
>

-- 
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: Layout problem

2015-06-26 Thread Chaitu P
Thank you for reply.
Iam using windows operating system.
I have created a new application in web2py and copied all the .html,
controller, db files and it is working fine.
Iam just anxious to know the reason why it was happend.

I don't think there is something wrong in my code because it worked fine
when I copied files to new application.

Here is my one of my view code.

{{extend 'layout.html'}}
{{=A('Create a New Assignment',_href=URL("new"))}}

{{for question in questions:}}
{{=LI(A(H3(question.title), _href=URL("show", args=question.id)))}}
[created on {{=question.created_on}}]
 {{=HR()}}
{{pass}}






On Thu, Jun 25, 2015 at 1:33 PM, JorgeH  wrote:

> what is your development enviroment?
> Operating system
> Web server..
>
>
> On Thursday, June 25, 2015 at 3:17:13 AM UTC-5, Chaitu P wrote:
>>
>>
>> Does anyone have idea why web2py default layout not working.
>>
>  --
> 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.
>



-- 
Chaitanya Pochampally

-- 
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] Request.vars based on dropdown

2015-06-26 Thread Carla Raquel
I have two dropdown lists like the ones below and I would like to compose 
my URL using the month and year as vars, after I click a certain link.How 
can I change my current request.vars to the selected values?


Select month:
{{for m in months:}}
 {{=m}}
{{pass}}




 Select year:
{{for y in years:}}
{{=y}}
{{pass}}
 


-- 
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: What if Massimo got hit by a Bus?

2015-06-26 Thread Najtsirk
Massimo got a motorbike. 

On Thursday, 26 May 2011 16:15:17 UTC+2, Bob Blanchett wrote:
>
> I just read this presentation by by GvR/BDFL 
> 
>  
> on 21 years of Python and wondered for Web2py  as  some one did  for 
> Python  
> in 1994.
>
> What if the worst happened to Massimo (God Forbid) ?
>
> The Technology Selection Risks etc etc..
>
> Yours in no way Gruesomely,
>
> Bob
>

-- 
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] How to refer uploads files

2015-06-26 Thread Manuele Pesenti
Il 24/06/15 21:23, Chaitu P ha scritto:
> I want to compile the files that were uploaded. But the files are
> getting uploaded with some random name. So how can I refer them.
Please give more ditails of what you are trying to do... I guess you are
using a "no dal" form to upload your files... right?

M.

-- 
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: set of rows as input to smart grid

2015-06-26 Thread Manuele Pesenti
Il 26/06/15 06:31, Davy Jacops ha scritto:
> More general question: since there is no SELECT() call: how can
> SELECT() arguments such as DISTINCT be applied here?
If you need a more general query you can try to use SQLTABLE class[1]

Cheers

M.

[1] https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L3060

-- 
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.