Re: [web2py] Re: vue.js

2017-02-26 Thread St. Pirsch
Hi John,
Thanks! it works! Strange though that the untouched scaffolding app seems 
to work for some people and for others not.
Best,
Stephan

Am Dienstag, 31. Januar 2017 17:50:14 UTC+1 schrieb John Philip:
>
> Hi Stephan,
>
> I tried the brutal approach. I changed the delimiters for web2py on the 
> model and changed all of the views accordingly. I left the delimiters for 
> vuejs as default ('{{' '}}')
>
> regards,
>
> John
>
> On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:
>>
>> Hello John,
>> Would you mind sharing your solution? 
>> Thx,
>> Stephan
>
>

-- 
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: vue.js

2017-01-30 Thread St. Pirsch
Hello John,
Would you mind sharing your solution? 
Thx,
Stephan

-- 
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: vue.js

2017-01-27 Thread St. Pirsch
It seems, the problem is that the server doesn't send anything back when 
you're doing a query, f.i. search?q=Game

 
Am Freitag, 27. Januar 2017 20:35:28 UTC+1 schrieb Val K:
>
> Vue  delimiters are configurable  too!
> @scaffold /static 
> /js 
> /main-vue.js: 
> row#23 Vue.config.delimiters = ['${', '}'] - it's global default config
>
> so, you shouldn't change web2py delimiters, just try ${message} instead 
> {{message}}
>
>
> On Friday, January 27, 2017 at 6:07:56 PM UTC+3, John Philip wrote:
>>
>> Hi Richard,
>>
>> no luck. I modified the view:
>>
>> response.delimiters = ('{[', ']}')
>> 
>>   {{message}}
>> 
>>
>> This is the default/vgrid.html template
>> {[=BEAUTIFY(response._vars)]}
>> https://unpkg.com/vue/dist/vue.js";>
>>
>> I also returned empty var in the controller as you suggested but when 
>> loading the view I still get {{message}}. I have no idea why? ;(
>>
>> thanks again,
>>
>> John
>>
>>
>>
>> On Friday, January 27, 2017 at 3:20:38 PM UTC+1, Richard wrote:
>>>
>>> Ok, first try to leave layout.html out of the way... remove the first 
>>> line... It should work so far, but consider you always better put the js at 
>>> the bottom of the page for faster page load and improve parsing as the js 
>>> come later (after the dom) anyway...
>>>
>>> Do you have a controllers function for the view you try to serve? If yes 
>>> do you return an empty vars :
>>>
>>> def view():
>>> response.delimiters = ('{[', ']}')
>>> return dict(empty_vars='')
>>>
>>> It makes sure web2py serve something.
>>>
>>> Try to set response.delimiters in you view at first too...
>>>
>>> Good luck
>>>
>>> Richard
>>>
>>>
>>> On Fri, Jan 27, 2017 at 3:23 AM, 'John Philip' via web2py-users <
>>> web...@googlegroups.com> wrote:
>>>
 Hi Richard,

 thanks for your reply. I'm did change the delimiter as you described in 
 the model. I changed the delimiters in all of the html files in view. 
 response.delimiters = ('{[',']}'. I have a snippet from the vuejs 
 website. However when loading the view it does not seem to recognise 
 {{message}}. Any help would be appreciated!! 

 thanks,

 John

 {[extend 'layout.html']}
 https://unpkg.com/vue/dist/vue.js";>

 
 new Vue({
   el: '#app',
   data: {
 message: 'Hello Vue.js!'
   }
 })

 
   {{message}}
 

 This is the default/vgrid.html template
 {[=BEAUTIFY(response._vars)]}

 On Thursday, January 26, 2017 at 4:38:54 PM UTC+1, Richard wrote:
>
> Do you use the web2py layout.html?
>
> Did you set proper web2py delimiters?
>
> http://web2py.com/books/default/chapter/29/05/the-views#The-views
>
> Vue.JS use {{}} as web2py you need to change web2py delimiters, I like 
> (so it stays readable) :
>
> response.delimiters = ('{[',']}')
>
>
> Richard
>
>
> On Thu, Jan 26, 2017 at 10:26 AM, 'John Philip' via web2py-users <
> web...@googlegroups.com> wrote:
>
>> Hi Massimo,
>>
>> I downloaded your scaffolding app but for some reason in the 
>> main.html file vuejs does not seem to recognize ${doc.title} and 
>> ${doc.body} . Am I missing something?
>>
>> thanks and regards,
>>
>> John
>>
>> On Sunday, September 25, 2016 at 5:25:51 AM UTC+2, Massimo Di Pierro 
>> wrote:
>>
>>> I am becoming a huge fan of vue.js. Any other user here?
>>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google 
>> Groups "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to web2py+un...@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+un...@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 

[web2py] Form submission randomly not working

2016-12-10 Thread St. Pirsch
Hi,
I am experiencing form submission is occasionally not working. There is no 
error whatsoever, form entries get cleared.
 It seems to getting better with cache disabled, but maybe it's just an 
impression.

model:
db.define_table('teilnehmer',
Field('vorname', label=T('Name')),
Field('name', label=T('Surname*')),
Field('email', label='E-Mail*'),
Field('address', label=T('Street/Number')),
Field('city', label=T('Postcode/City')),
Field('newsletter', 'boolean', default=False, label=T('Please subscribe 
me for your Newsletter')),
Field('beitrag', label= 'Zugehöriger Beitrag'),
Field('projektid'),
Field('results','text', label='Ergebnisse'),
singular="Formularteilnehmer", plural="Formularteilnehmer",
format = '%(email)s')
db.teilnehmer.email.requires = IS_EMAIL(error_message=T('Please use a valid 
e-mail address'))


controller:
#@cache.action(time_expire=1000, cache_model=cache.ram, public=True)
def teilnahme():
'''lines = db(db.projekt.projektid==request.args(1)).select().first()'''
projekt = db(db.projekt.projektid==request.args(0)).select().first()
if (projekt.bgshade == 'hintergrund_dunkel'):
headlinecolor= "black"
else:
headlinecolor=""
bgshade=projekt.bgshade or ''
ivw = request.args(5) or ''
felder= ['vorname', 'name', 'email','address','city']
if projekt.newsletter is True:
felder.append('newsletter')
form= SQLFORM(db.teilnehmer, fields = felder,showid = False)
form.vars.beitrag = request.args(2)
form.vars.projektid = request.args(0)
form.vars.results = str(request.args(3))+' von '+str(request.args(1))
my_extra_element = DIV(DIV(DIV(LABEL(INPUT(_name='agree',value=False, 
_type='checkbox',requires=IS_NOT_EMPTY(error_message=T('Please agree to the 
terms and conditions'))), XML(T('I have read the')+' '+str(A(T('terms 
and conditions '), 
_href='/'+request.application+'/'+request.controller+'/meta.load/1/terms', 
cid='wuerg'))+''+T('and the')+' '+str(A(T('data protection '), 
_href='/'+request.application+'/'+request.controller+'/meta.load/1/daten', 
cid='wuerg'))+''+T('statement and agree with them')+'* ')), 
_class='checkbox'),  _class='col-sm-offset-3 col-sm-9'), _class='form-group 
terms')
form[0].insert(-1,my_extra_element)
if form.process().accepted:
redirect(URL('kampagne', args=[projekt.projektid,'000',ivw], 
vars=dict(flash='flash'))) 

view:
...
{{=T('Participation')}}
 {{=form}}
...

Any hints would help a lot
- Stephan

-- 
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] vue.js

2016-10-16 Thread St. Pirsch
Fields a populated correctly but any queries in the scaffolding app return
"Failed to load resource: the server responded with a status of 500 
(INTERNAL SERVER ERROR)"
Does the app need to be preconfigured in any way ?


Am Dienstag, 11. Oktober 2016 16:59:11 UTC+2 schrieb Marlysson Silva:
>
> Until now , https://github.com/web2py/scaffold
>
> Em terça-feira, 11 de outubro de 2016 09:58:57 UTC-3, Yoel Benitez Fonseca 
> escreveu:
>>
>> any example out there with vue.js and web2py ? 
>>
>> 2016-09-24 23:25 GMT-04:00 Massimo Di Pierro : 
>> > I am becoming a huge fan of vue.js. Any other user here? 
>> > 
>> > -- 
>> > Resources: 
>> > - http://web2py.com 
>> > - http://web2py.com/book (Documentation) 
>> > - http://github.com/web2py/web2py (Source code) 
>> > - https://code.google.com/p/web2py/issues/list (Report Issues) 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "web2py-users" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to web2py+un...@googlegroups.com. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>>
>>
>> -- 
>> Yoel Benítez Fonseca 
>> http://redevil.cubava.cu/ 
>> $ python -c "import this" 
>>
>

-- 
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] Search on list:reference tables with SQLFORM.Grid

2016-09-27 Thread St. Pirsch
 

I am coming back to this topic for a second time since I couldn’t get an 
answer last time and it would facilitate things a lot for me:


The SQLFORM.Grid has a very sophisticated filter system to make queries 
over selected tables easy.

It seems, however, that it  is actually not possible to query over columns 
of referenced table lists. 

Is it possible - for instance - to expand the existing functionality,has 
anyone already worked on this and can give a hint?

-- 
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: SQLFORM.grid: search in a list:reference field does not work

2016-09-15 Thread St. Pirsch
Although there is a "in", "contains" and "not in" now in the grid search 
operator field, 'list:reference' - fields are not listed in the table 
columns dropdown. Will it be possible to employ such operations with the 
grid widget?  

Am Dienstag, 5. April 2016 03:57:53 UTC+2 schrieb Massimo Di Pierro:
>
> this should be fixed in trunk, we will release a new version.
>
> On Sunday, 3 April 2016 02:21:38 UTC-5, Lionel Roubeyrie wrote:
>>
>> Hi all,
>> I just start with this great framework and I have a similar issue. In a 
>> table there's two 'list:reference' Fields but none is searchable in the 
>> grid view. 
>> Is there some special things to do before?
>>
>> Le dimanche 8 novembre 2015 10:53:35 UTC+1, mweissen a écrit :
>>>
>>> I have a table like
>>>
>>> db.define_table("mytable",
>>> Field("reffield", "list:reference anothertable"),
>>> )
>>>
>>> The search widget of SQLFORM.grid("mytable", ...) does not show the 
>>> reffield.
>>>
>>> In gloun/sqlhtml.py I have found 
>>>
>>> if fields[0]._db._adapter.dbengine == 'google:datastore':
>>>search_options['string'] = ['=', '!=', '<', '>', '<=', '>=']
>>>search_options['text'] = ['=', '!=', '<', '>', '<=', '>=']
>>>search_options['list:string'] = ['contains']
>>>search_options['list:integer'] = ['contains']
>>>search_options['list:reference'] = ['contains']
>>>
>>> Therefore a list:reference field will only be recognized if the table is 
>>> stored in a google:datastore.
>>> Is this an intended behaviour?
>>>
>>> Regards, Martin
>>>
>>>
>>>
>>>
>>>

-- 
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: SQLFORM.grid: search in a list:reference field does not work

2016-08-11 Thread St. Pirsch
Hello, has this already been updated. It seems that in the current version 
it is still not possible. Is there a way to enable it by altering sqlhtml.py  
for instance?
Would be very helpful to use this feature.
Thanks, Stephan

Am Dienstag, 5. April 2016 03:57:53 UTC+2 schrieb Massimo Di Pierro:
>
> this should be fixed in trunk, we will release a new version.
>
> On Sunday, 3 April 2016 02:21:38 UTC-5, Lionel Roubeyrie wrote:
>>
>> Hi all,
>> I just start with this great framework and I have a similar issue. In a 
>> table there's two 'list:reference' Fields but none is searchable in the 
>> grid view. 
>> Is there some special things to do before?
>>
>> Le dimanche 8 novembre 2015 10:53:35 UTC+1, mweissen a écrit :
>>>
>>> I have a table like
>>>
>>> db.define_table("mytable",
>>> Field("reffield", "list:reference anothertable"),
>>> )
>>>
>>> The search widget of SQLFORM.grid("mytable", ...) does not show the 
>>> reffield.
>>>
>>> In gloun/sqlhtml.py I have found 
>>>
>>> if fields[0]._db._adapter.dbengine == 'google:datastore':
>>>search_options['string'] = ['=', '!=', '<', '>', '<=', '>=']
>>>search_options['text'] = ['=', '!=', '<', '>', '<=', '>=']
>>>search_options['list:string'] = ['contains']
>>>search_options['list:integer'] = ['contains']
>>>search_options['list:reference'] = ['contains']
>>>
>>> Therefore a list:reference field will only be recognized if the table is 
>>> stored in a google:datastore.
>>> Is this an intended behaviour?
>>>
>>> Regards, Martin
>>>
>>>
>>>
>>>
>>>

-- 
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: python process consumes 100% cpu

2016-08-01 Thread St. Pirsch
Thanks!. I tested the web2py gui on a different mac machine with 10.11.5 &
it's running hot as well. I'am going to try it with the Tcl/Tk versions
recommended in your link instead of the ones provided by the OS.

Kiran Subbaraman <subbaraman.ki...@gmail.com> schrieb am Mo., 1. Aug. 2016
um 06:08 Uhr:

> That's good to know. You could take a look at this page:
> https://www.python.org/download/mac/tcltk/ to understand if there are
> Tcl/Tk issues related to your environment. This may solve the CPU issue ...
> am not sure.
>
>
> On Sunday, July 31, 2016 at 8:50:07 PM UTC+5:30, St. Pirsch wrote:
>>
>> Hey Kiran,
>> you are right, without the GUI there's virtually no CPU load. I suppose
>> it's a general issue on mac.
>> Thank You !
>> Am Sonntag, 31. Juli 2016 16:56:54 UTC+2 schrieb Kiran Subbaraman:
>>>
>>> Can you try running web2py without the GUI option `--nogui`
>>> python web2py.py --nogui --port= 8080 --ip=127.0.0.1 --password=''
>>> Command line options, in case you want to refer to them:
>>> http://www.web2py.com/books/default/chapter/29/04/the-core#Command-line-options
>>>
>>> Do you see the CPU issue with this?
>>>
>>> 
>>> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ 
>>> <http://www.google.com/url?q=http%3A%2F%2Fsubbaraman.wordpress.com%2Fabout%2F=D=1=AFQjCNGCNBQZT62ec1gGm9BQ3W8oY8hVzA>
>>>
>>> On Sun, 31-07-2016 5:17 PM, St. Pirsch wrote:
>>>
>>> Yes, I'm running from source stp$ python2.7
>>> /Users/stp/Sites/web2py/web2py.py
>>> After starting the server, the python process climbs to 100% cpu within
>>> a minute or so and stays there, even though the server is idle.
>>> The Task stats look like this:
>>> % cpu 99,93
>>> Threads: 7 Readingacesses: 106 Ports: 167, CPU Time: 40:31,72 process
>>> changes: 216261 Errors: 10123684 Mach Syscalls: 63753 Unix syscalls: 187562
>>>
>>> Am Samstag, 30. Juli 2016 20:22:17 UTC+2 schrieb St. Pirsch:
>>>>
>>>> Hi all,
>>>> running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100%
>>>> cpu usage on python. Is this a known issue & is there a solution?
>>>> Thanks - Stephan
>>>>
>>> --
>>> 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.
>>>
>>>
>>> --
> 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/LLaKw_-V_qU/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.
>
-- 
St. Pirsch
0151 280 350 74

-- 
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: python process consumes 100% cpu

2016-07-31 Thread St. Pirsch
Hey Kiran,
you are right, without the GUI there's virtually no CPU load. I suppose 
it's a general issue on mac.
Thank You !
Am Sonntag, 31. Juli 2016 16:56:54 UTC+2 schrieb Kiran Subbaraman:
>
> Can you try running web2py without the GUI option `--nogui`
> python web2py.py --nogui --port= 8080 --ip=127.0.0.1 --password=''
> Command line options, in case you want to refer to them: 
> http://www.web2py.com/books/default/chapter/29/04/the-core#Command-line-options
>
> Do you see the CPU issue with this? 
>
> 
> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ 
> <http://www.google.com/url?q=http%3A%2F%2Fsubbaraman.wordpress.com%2Fabout%2F=D=1=AFQjCNGCNBQZT62ec1gGm9BQ3W8oY8hVzA>
>
> On Sun, 31-07-2016 5:17 PM, St. Pirsch wrote:
>
> Yes, I'm running from source stp$ python2.7 
> /Users/stp/Sites/web2py/web2py.py
> After starting the server, the python process climbs to 100% cpu within a 
> minute or so and stays there, even though the server is idle.  
> The Task stats look like this:
> % cpu 99,93 
> Threads: 7 Readingacesses: 106 Ports: 167, CPU Time: 40:31,72 process 
> changes: 216261 Errors: 10123684 Mach Syscalls: 63753 Unix syscalls: 187562
>
> Am Samstag, 30. Juli 2016 20:22:17 UTC+2 schrieb St. Pirsch: 
>>
>> Hi all, 
>> running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100% cpu 
>> usage on python. Is this a known issue & is there a solution?
>> Thanks - Stephan
>>
> -- 
> 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.
>
>
>

-- 
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: python process consumes 100% cpu

2016-07-31 Thread St. Pirsch
Yes, I'm running from source stp$ python2.7 
/Users/stp/Sites/web2py/web2py.py
After starting the server, the python process climbs to 100% cpu within a 
minute or so and stays there, even though the server is idle.  
The Task stats look like this:
% cpu 99,93 
Threads: 7 Readingacesses: 106 Ports: 167, CPU Time: 40:31,72 process 
changes: 216261 Errors: 10123684 Mach Syscalls: 63753 Unix syscalls: 187562

Am Samstag, 30. Juli 2016 20:22:17 UTC+2 schrieb St. Pirsch:
>
> Hi all,
> running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100% cpu 
> usage on python. Is this a known issue & is there a solution?
> Thanks - Stephan
>

-- 
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: python process consumes 100% cpu

2016-07-31 Thread St. Pirsch
Yes, I'm running from source stp$ python2.7 
/Users/stp/Sites/web2py/web2py.py


Am Sonntag, 31. Juli 2016 08:40:58 UTC+2 schrieb Massimo Di Pierro:
>
> Not a known issue. Do you have the same problem if you run from source?
>
> On Saturday, 30 July 2016 13:22:17 UTC-5, St. Pirsch wrote:
>>
>> Hi all,
>> running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100% cpu 
>> usage on python. Is this a known issue & is there a solution?
>> Thanks - Stephan
>>
>

-- 
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] python process consumes 100% cpu

2016-07-30 Thread St. Pirsch
Hi all,
running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100% cpu 
usage on python. Is this a known issue & is there a solution?
Thanks - Stephan

-- 
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: Translation of the Online Book (to German) and general question about how to translate Wiki Pages

2016-01-04 Thread St. Pirsch
There is a good tutorial in the web2py 
cookbook: 
https://books.google.de/books?id=cwjpG47z_7IC=frontcover=de=gbs_ge_summary_r=0#v=onepage=false
Chapter "Using cookies to set the 
language" 
https://books.google.de/books?id=cwjpG47z_7IC=frontcover=de=gbs_ge_summary_r=0#v=onepage=Using%20cookies%20to%20set%20the%20language=false

Am Montag, 4. Januar 2016 21:23:11 UTC+1 schrieb Jörg Schneider:
>
> At first I want to offer my help to translate the online book to German 
> language (in the "books"-menu there is a translation of the Preface-Chapter 
> of the 4th edition).
>
> Second one is a newbie-question (I'm not a programmer so please be patient 
> with me and provide me with the right reading matter):
>
> I built a website with wiki pages (with help of the awesome online book). 
> Because this website is meant to support refugees from Syria and from Iran 
> we want to add extra pages with Arabic language and Farsi.
>
> A lot of the refugees don't use only there smartphones with their native 
> language but also computers with german language settings. So I think it 
> would be a good choice to add manual language choice for "session".
>
> Can anyone help with me with hints about how to use the built in wiki with 
> different translations?
>
> Thnx!
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Markmin best practices

2015-10-04 Thread St. Pirsch
I have some noob questions on how to use Markmin correctly: 
Is there a way to link pictures within markmin, i.e. to produce  ?
I noticed that anchors get the prefix "markmin-" automatically. I guess 
there is a concept behind this decision, but I do not see the reason & is 
there a way to circumvent this behaviour?
Maybe there is a more in depth documentation beyond 
http://web2py.googlecode.com/hg/applications/examples/static/markmin.html 
with more info on how to apply custom styles and other modifications? 
Thanks -Stephan

-- 
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] How to urlify a computed field?

2015-09-22 Thread St. Pirsch
Hi,
I'am trying to generate a slug url from a computed field:
Field('url_name', compute=lambda r: r['first_name']+'-'+r['last_name']),

Something like:
Field('url_name', compute=lambda r: r['first_name']+'-'+r['last_name'], 
requires=IS_SLUG()),
doesn't seem to work, nor I get to treat the r-Objects like strings.
Thanks for a hint
-Stephan

-- 
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 urlify a computed field?

2015-09-22 Thread St. Pirsch
Got it, grazie 1000!

Am Dienstag, 22. September 2015 13:30:21 UTC+2 schrieb Manuele:
>
> Il 22/09/15 12:32, St. Pirsch ha scritto: 
> > Yes, this works perfectly. I do not fully understand the line, though. 
> > What is the [0] actually doing? Isn't there just one row? 
> > Thank you! 
> Hi, 
> web2py Validators always return a tuple in which the first element is 
> the value validated and the second is the error message. 
>
> 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] How to urlify a computed field?

2015-09-22 Thread St. Pirsch
Yes, this works perfectly. I do not fully understand the line, though. What 
is the [0] actually doing? Isn't there just one row? 
Thank you! 

Am Dienstag, 22. September 2015 12:04:47 UTC+2 schrieb Massimiliano:
>
> Could this:
>
> Field('url_name', compute=lambda r: IS_SLUG(check=False)(
> r['first_name']+'-'+r['last_name'])[0])
>
> work for you?
>
> On Tue, Sep 22, 2015 at 8:17 AM, St. Pirsch <spi...@gmail.com 
> > wrote:
>
>> Hi,
>> I'am trying to generate a slug url from a computed field:
>> Field('url_name', compute=lambda r: r['first_name']+'-'+r['last_name']),
>>
>> Something like:
>> Field('url_name', compute=lambda r: r['first_name']+'-'+r['last_name'], 
>> requires=IS_SLUG()),
>> doesn't seem to work, nor I get to treat the r-Objects like strings.
>> Thanks for a hint
>> -Stephan
>>
>> -- 
>> 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.
>>
>
>
>
> -- 
> Massimiliano
>

-- 
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 is Hooks in Database Administration in appadmin ?

2015-09-18 Thread St. Pirsch
THX!

El mar., 15 de septiembre de 2015 12:46, Niphlod <niph...@gmail.com>
escribió:

> update appadmin.py from the latest master repo...
>
>
> On Saturday, September 12, 2015 at 10:37:56 PM UTC+2, St. Pirsch wrote:
>>
>> There is an 404 while loading the admin editor  /admin/edit/app/views/
>> which becomes visible when opening the tab on the bottom.
>> Is there a way to avoid this?
>> Tables hooks
>> invalid function (appadmin/hooks)
>>
>> Am Sonntag, 31. Mai 2015 23:11:20 UTC+2 schrieb Πέτρος Χατζηλάμπρος:
>>>
>>> When I go to http://localhost:8000/[myapplication]/appadmin I see a tab
>>> which is named Hooks.
>>>
>>> When I click on it it shows nothing.
>>>
>>> What is this? Is it a feature that I miss ?
>>>
>> --
> 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/AJFmal9Ymg4/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: What is Hooks in Database Administration in appadmin ?

2015-09-12 Thread St. Pirsch
There is an 404 while loading the admin editor  /admin/edit/app/views/
which becomes visible when opening the tab on the bottom.
Is there a way to avoid this? 
Tables hooks
invalid function (appadmin/hooks)

Am Sonntag, 31. Mai 2015 23:11:20 UTC+2 schrieb Πέτρος Χατζηλάμπρος:
>
> When I go to http://localhost:8000/[myapplication]/appadmin I see a tab 
> which is named Hooks.
>
> When I click on it it shows nothing.
>
> What is this? Is it a feature that I miss ?
>

-- 
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: Help/documentation on auth.wiki

2015-06-30 Thread St. Pirsch


Am Dienstag, 30. Juni 2015 09:35:27 UTC+2 schrieb Massimo Di Pierro:

 I understand

 Use {{extend layout2.html}} then make a minimalist layout 2 that does not 
 include css, js, has no html and no body tag but only one div. At the 
 top of the layout use {{=MENU(wiki.menu())}} to generate the wiki menu 
 embedded. It will be returned via ajax.

Works! Thank You 


 On Monday, 29 June 2015 16:36:20 UTC-5, St. Pirsch wrote:




 1. What template means in this context is not layout template but 
 content template. You can start a new page with a copy of another page. 
 Pages have tags. All public pages with a template tag can be used as 
 templates for other pages.

 This is a useful information, maybe it could be added in the book? 


 2. the should not. There is nothing in the page that contains style 
 information. The style is from the CSS of the host which you can edit.

 Well, I was trying to implement particular wiki pages via {{LOAD}} in my 
 other web2py views. Since I don't want to expose the index or the 
 management features to the public, it gets a little bit tricky: In order to 
 be able to use the list and edit features in a reasonable way, I have to 
 put a style, i.e. {{extend 'layout.html}} in the wiki index view. When I 
 load a wiki page 'Hallo' into another view outside the 
 wiki, {{=LOAD('default','wiki', args='Hallo',ajax=False)}}, it's loaded 
 with it's layout.html wrapper. It is a great feature to use wiki pages with 
 it's oembed functionalties etc. in other views. 
 But I don't get how assign a (different) design to the list and media 
 pages then.


 On Monday, 29 June 2015 11:04:53 UTC-5, St. Pirsch wrote:

 Hi, 
 I'am trying to get familiar with the auth.wiki, which I think is great 
 to use for simple cms tasks. 
 The documentation in the book is a bit short, a least from the 
 perspective of a novice. I couldn't find much more information on 
 auth.wiki 
 here nor elsewhere. Maybe it would help other users too,  to sum up some 
 questions and best practice somewhere.
 In detail, I have two questions:
 1. The editor offers a dropown for templates to choose from.
 - How can this field be populated, howhave the templates to be designed?
 2. I am trying to LOAD wiki pages in other web2py-views. The wiki-pages 
 take their styles with them, i.e. as defined in the standard wiki view. 
 How 
 to avoid that without removing the style from the wiki itself?
 Thanks, Stephan



-- 
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] Help/documentation on auth.wiki

2015-06-29 Thread St. Pirsch
Hi, 
I'am trying to get familiar with the auth.wiki, which I think is great to 
use for simple cms tasks. 
The documentation in the book is a bit short, a least from the perspective 
of a novice. I couldn't find much more information on auth.wiki here nor 
elsewhere. Maybe it would help other users too,  to sum up some questions 
and best practice somewhere.
In detail, I have two questions:
1. The editor offers a dropown for templates to choose from.
- How can this field be populated, howhave the templates to be designed?
2. I am trying to LOAD wiki pages in other web2py-views. The wiki-pages 
take their styles with them, i.e. as defined in the standard wiki view. How 
to avoid that without removing the style from the wiki itself?
Thanks, Stephan

-- 
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: Help/documentation on auth.wiki

2015-06-29 Thread St. Pirsch



 1. What template means in this context is not layout template but content 
 template. You can start a new page with a copy of another page. Pages have 
 tags. All public pages with a template tag can be used as templates for 
 other pages.

This is a useful information, maybe it could be added in the book? 


 2. the should not. There is nothing in the page that contains style 
 information. The style is from the CSS of the host which you can edit.

Well, I was trying to implement particular wiki pages via {{LOAD}} in my 
other web2py views. Since I don't want to expose the index or the 
management features to the public, it gets a little bit tricky: In order to 
be able to use the list and edit features in a reasonable way, I have to 
put a style, i.e. {{extend 'layout.html}} in the wiki index view. When I 
load a wiki page 'Hallo' into another view outside the 
wiki, {{=LOAD('default','wiki', args='Hallo',ajax=False)}}, it's loaded 
with it's layout.html wrapper. It is a great feature to use wiki pages with 
it's oembed functionalties etc. in other views. 
But I don't get how assign a (different) design to the list and media pages 
then.


 On Monday, 29 June 2015 11:04:53 UTC-5, St. Pirsch wrote:

 Hi, 
 I'am trying to get familiar with the auth.wiki, which I think is great to 
 use for simple cms tasks. 
 The documentation in the book is a bit short, a least from the 
 perspective of a novice. I couldn't find much more information on auth.wiki 
 here nor elsewhere. Maybe it would help other users too,  to sum up some 
 questions and best practice somewhere.
 In detail, I have two questions:
 1. The editor offers a dropown for templates to choose from.
 - How can this field be populated, howhave the templates to be designed?
 2. I am trying to LOAD wiki pages in other web2py-views. The wiki-pages 
 take their styles with them, i.e. as defined in the standard wiki view. How 
 to avoid that without removing the style from the wiki itself?
 Thanks, Stephan



-- 
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] Can't find file_blob

2014-05-05 Thread St. Pirsch
Hi, 
I'm trying to catch image data on upload to GAE, in order to store it in 
the google cloud. 

My model: 
db.define_table('fragen',
...
Field('bild','upload'),
...
As far as I understand, web2py generates a blob field automatically on GAE 
enviroment, so I didn't implement it in the model.


My cloud-upload controller looks like this:
def cloudupload(form):
from google.appengine.api import app_identity
bucket_name = os.environ.get('BUCKET_NAME', 
app_identity.get_default_gcs_bucket_name())
bucket = '/' + bucket_name
filename = bucket + '/'+ str(form.vars.bild)
from gluon import contenttype
mime = contenttype.contenttype(form.vars.bild)
my_default_retry_params = gcs.RetryParams(initial_delay=0.2,
  max_delay=5.0,
  backoff_factor=2,
  max_retry_period=15)
gcs.set_default_retry_params(my_default_retry_params)
write_retry_params = gcs.RetryParams(backoff_factor=1.1)
gcs_file = gcs.open(filename,
'w',
content_type= mime,
retry_params=write_retry_params)
gcs_file.write(form.vars.bild_blob)
gcs_file.close()
return()

I'm calling it from a form a grid. I have tried 'onvalidate= first', but 
the fieldstorage doesn't provide me with the filename web2py is storing 
finally in the image field. So I employed oncreate. 

def fragen_cms():
'''
Eingabe für die Fragen
'''
grid = SQLFORM.smartgrid(db.fragen, orderby=db.fragen.contents, 
oncreate=cloudupload)
return dict(grid=grid)

Image name is fine, cloud upload works as well, but it seems that there is 
no data in file_blob, nor in file_data. Is there a way to retrieve the file 
from the form?

Thanks for Your help,
Stephan

-- 
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: GAE: Downloading uploaded images

2014-05-01 Thread St. Pirsch
Thank You for the hind. They are stored in the datastore at the moment. I 
found a description for blobstore-uploads from web2py work here: 
http://www.web2pyslices.com/slice/showcomment/948 
I think that was made by you, a couple of years ago. I'll try to make it 
work that way.
thanks,
Stephan 

Am Mittwoch, 30. April 2014 16:28:08 UTC+2 schrieb Christian Foster Howes:

 are you storing your images in the datastore or in blobstore, or in google 
 cloud storage?  if blobstore you can use 
 https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_urlto
  store a URL that serves it directly from blobstore.


 cfh

 On Monday, April 28, 2014 3:28:24 PM UTC-7, St. Pirsch wrote:

 Hi,
 i am trying to find an efficient way to display images uploaded to GAE.
 Currently, im using the download action:
 * background-image: url({{=URL('download', 
 args=line.contents.vorschaubild)}});*
 Since there are a lot images to display, there should be a less power 
 consuming way to get the image files.
 Is it possible to let GAE directly serve the images, without the web2py 
 download action, like it works for static files?
 Or is it possible to cache the output of the download action?
 Thanks for Your help.
 Stephan



-- 
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] GAE: Downloading uploaded images

2014-04-28 Thread St. Pirsch
Hi,
i am trying to find an efficient way to display images uploaded to GAE.
Currently, im using the download action:
* background-image: url({{=URL('download', 
args=line.contents.vorschaubild)}});*
Since there are a lot images to display, there should be a less power 
consuming way to get the image files.
Is it possible to let GAE directly serve the images, without the web2py 
download action, like it works for static files?
Or is it possible to cache the output of the download action?
Thanks for Your help.
Stephan

-- 
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: uploads GAE

2013-11-25 Thread St. Pirsch
Thanks for the hint. I think, at the core it is not the problem to have the 
pictures stored in the db, I just try to avoid using the download function 
since it consumes a lot of processing load. Maybe, I am on a wrong way 
conceptually and should find another way to cache them.
Thanks 
- Stephan

Le dimanche 24 novembre 2013 20:02:34 UTC+1, Christian Foster Howes a 
écrit :

 that simply does not work.  you'll have to write custom code to store in 
 blobstore or cloud storage if you don't want to keep uploaded images in 
 the DB. 

 note that images that are static that you deploy with the application 
 can be stored in a static folder and mapped via app.yaml to be handled 
 with a static file handler and caching policies set in app.yaml 

 cfh 

 On 11/24/13, 2:43 , St. Pirsch wrote: 
  I am experiencing the same problem right now. I am running an 
 application 
  with version 2.51 on GAE, where images are uploaded via the standard 
  Field('file', 'upload'), 
  and retrieved using the download helper, which continues to work 
 correctly. 
  
  Today, I tried to launch an application on ver. 2.7.4  using a static 
  upload path: 
  Field('logo', 'upload', uploadfolder=request.folder+'static/images'), 
  Images are embedded via: 
  img src={{=URL('static', '/images/'+kopf.projekt.logo)}} border=0 
  which does not work. 
  In the edit menu of the GRID-helper all uploaded images are displayed 
  correctly in GAE. 
  
  If someone knows how to handle this, she/he would be of great help for 
 me. 
  
  Thanks, 
  Stephan 
  
  
  
  
  Le samedi 23 novembre 2013 13:36:43 UTC+1, Scott Hunter a �crit : 
  
  Are there any issues with using the various upload-related Field 
 options 
  when runnning under GAE?  In particular, I'm wondering about the 
  uploadfolder  uploadseparate options.  How would using these affect 
 using 
  response.download in a controller? 
  
  - Scott 
  
  


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: uploads GAE

2013-11-24 Thread St. Pirsch
I am experiencing the same problem right now. I am running an application 
with version 2.51 on GAE, where images are uploaded via the standard
   Field('file', 'upload'),
and retrieved using the download helper, which continues to work correctly.

Today, I tried to launch an application on ver. 2.7.4  using a static 
upload path:
Field('logo', 'upload', uploadfolder=request.folder+'static/images'),
Images are embedded via:
img src={{=URL('static', '/images/'+kopf.projekt.logo)}} border=0
which does not work. 
In the edit menu of the GRID-helper all uploaded images are displayed 
correctly in GAE.

If someone knows how to handle this, she/he would be of great help for me.

Thanks,
Stephan
  



Le samedi 23 novembre 2013 13:36:43 UTC+1, Scott Hunter a écrit :

 Are there any issues with using the various upload-related Field options 
 when runnning under GAE?  In particular, I'm wondering about the 
 uploadfolder  uploadseparate options.  How would using these affect using 
 response.download in a controller?

 - Scott 


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Static file caching on GAE

2013-11-20 Thread St. Pirsch
The book states that a static asset management has been introduced: 
http://web2py.com/books/default/chapter/29/04/the-core?search=Static+asset+management#Static-asset-management
As I understand it, static files are not cached in the browser unless a 
dynamic versioning path is introduced. Thankfully, the book provides a 
description to make apache and Nginx handle the versioning path. I am not 
sure though if and how to proceed running the app on GAE. My guess is to 
place something similar in the gaehandler-file.  I am trying to get images 
cached Would be great to get a hint. 
Thanks, Stephan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Question on Orderby and DAL field types

2013-03-01 Thread St. Pirsch
Hello from a novice,

I'am trying to define a field that enables me make my entries sortable 
manually. I choose 'integer' as field type:

db.define_table('image',
 Field('Position', 'integer', label=T('Position')),


In my controller, I use orderby to sort the entries:

images = db().select(db.image.ALL, orderby=db.image.Position)

Instead of the desired order: 1, 2, 3, 12, 13
I get: 1, 12, 13, 2, 3


I guess, it is a question of data types bur I couldn't figure it out at all.

Thanks for giving me a hint,
Stephan

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] DAL type 'integer' and orderby

2013-03-01 Thread St. Pirsch

Hi,
I'am trying to show my entries in an manually defined order.

I choose 'integer' as field type: *db*.define_table('image', 
Field('Position', 'integer', label=T('Position')), 
In my controller, I use *orderby* to sort the entries: *images* =*db*().*
select*(*db.image.ALL*, *orderby*=*db.image.Position*) 

Instead of the desired order: 1, 2, 3, 12, 13 I get: 1, 12, 13, 2, 3 
I
 guess, this issue deals with date type, but I couldn't figure it out.
thx,
Stephan

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.