[web2py] Re: Keep menu floating on top

2014-03-29 Thread Ariya Owam-aram
In layout.html add class: navbar-fixed-top !-- Navbar == -- div class=navbar navbar-inverse navbar-fixed-top div class=flash{{=response.flash or ''}}/div div class=navbar-inner div class=container-full button

[web2py] how to get all records from sqlform.grid

2014-04-25 Thread Ariya Owam-aram
Dear all I need to make a summary from all records that return from sqlform.grid (grid.rows) but grid.rows is contain records only for 1 page (default = 20 records display). Anyone know, how to get all records from SQLFORM.grid. Thank you in advance Ariya code == q0 =

Re: [web2py] how to get all records from sqlform.grid

2014-05-06 Thread Ariya Owam-aram
Dear Johann, Thanks for your sharing. Now I try to use smart_query() function by using keyword from SQLFORM.grid (request.vars.keyword) and return to row. :) เมื่อ วันพุธที่ 30 เมษายน ค.ศ. 2014, 13 นาฬิกา 54 นาที 20 วินาที UTC+7, Johann Spies เขียนว่า: On 25 April 2014 00:05, Ariya Owam

[web2py] Re: new web2py videos

2014-09-01 Thread Ariya Owam-aram
Thanks เมื่อ วันอาทิตย์ที่ 31 สิงหาคม ค.ศ. 2014, 9 นาฬิกา 57 นาที 04 วินาที UTC+7, Massimo Di Pierro เขียนว่า: Nico has helped edit and re-organize some my class lectures about web2py. They are now split into 30 small videos: https://vimeo.com/album/3016728 Please join me in

[web2py] SQLFORM.grid in LOAD() search error

2014-09-10 Thread Ariya Owam-aram
Dear all, There is an error when use SQLFORM.grid in LOAD function. This are steps to reproduce the problem? *Step 0* # in models/db.py db.define_table('product', Field('code', length = '50', notnull = True, unique = True), Field('name', notnull = True), ) *Step

[web2py] Re: Searching for multiple words in SQLFORM.grid

2014-12-22 Thread Ariya Owam-aram
Thank you for your sharing. It working excellent. On Friday, March 1, 2013 3:19:22 PM UTC+7, Mandar Vaze wrote: Hi, As you all know, SQLFORM.grid search does not support searching for multiple words - it throws an error Invalid Query Searching for multiple words may be a common

[web2py] Re: [OT] HTML to PDF

2015-01-15 Thread Ariya Owam-aram
Hi Bruno, I install wkhtmltopdf and integrate with web2py by using subprocess.call, it work very well on my macbook (rocket server). But I can't success running subprocess.call on production server (Ngix). I also test subprocess.call wkthtmltopdf from web2py's shell (admin) it return non-zero

[web2py] Re: web2py 2.9.12 is OUT

2015-01-18 Thread Ariya Owam-aram
Thank you, On Saturday, January 17, 2015 at 1:20:14 PM UTC+7, Massimo Di Pierro wrote: Changelog: - Modular DAL, thanks Giovanni - Added coverage support, thanks Niphlod - More tests, thanks Niphlod and Paolo Valleri - Added support for show_if in readonly sqlform, thanks Paolo - Tornado

[web2py] Re: [OT] HTML to PDF

2015-01-16 Thread Ariya Owam-aram
Found that call('wkhtmltopdf .') not work Nginx, Thank you Ariya On Thursday, January 15, 2015 at 8:54:25 PM UTC+7, Ariya Owam-aram wrote: Hi Bruno, I install wkhtmltopdf and integrate with web2py by using subprocess.call, it work very well on my macbook (rocket server). But I can't

Re: [web2py] Re: https only on admin

2015-02-12 Thread Ariya Owam-aram
without understanding them very well and hope I have not broken something else. On Tue, Feb 10, 2015 at 7:02 AM, Ariya Owam-aram write...@gmail.com javascript: wrote: HI Juozas Masiulis In /etc/apache2/sites-enabled/default.conf please chenge rewriterule as follows. RewriteEngine

[web2py] Re: https only on admin

2015-02-10 Thread Ariya Owam-aram
HI Juozas Masiulis In /etc/apache2/sites-enabled/default.conf please chenge rewriterule as follows. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/(admin/.*) https://%{SERVER_NAME}/$1 [R,L] Hope it wil help เมื่อ วันพุธที่ 4 กุมภาพันธ์ ค.ศ. 2015 3 นาฬิกา 48 นาที 21 วินาที

[web2py] Re: condition models with function = IMG(_src='default', 'download', r=r.image)

2015-03-20 Thread Ariya Owam-aram
, Massimo Di Pierro เขียนว่า: What does it mean not working. Do you get a traceback? What does it say? On Friday, 20 March 2015 10:02:57 UTC-5, Ariya Owam-aram wrote: Dear all, I implement conditions models but it seem to broken function download for display image from upload fields. let say

[web2py] condition models with function = IMG(_src='default', 'download', r=r.image)

2015-03-20 Thread Ariya Owam-aram
Dear all, I implement conditions models but it seem to broken function download for display image from upload fields. let say: ## # in models/01_defind_table.py ## class Pd_product_sku(BaseModel): def __init__(self, db): self.db =

Re: [web2py] Re: [OT] HTML to PDF

2015-04-25 Thread Ariya Owam-aram
...@gmail.com javascript: Brasil 2015-01-15 10:54 GMT-03:00 Ariya Owam-aram ariya.ca...@gmail.com javascript:: Hi Bruno, I install wkhtmltopdf and integrate with web2py by using subprocess.call, it work very well on my macbook (rocket server

[web2py] Re: Any problem in list:reference in 2.10 ?

2015-05-04 Thread Ariya Owam-aram
Thank you, A เมื่อ วันพุธที่ 29 เมษายน ค.ศ. 2015 17 นาฬิกา 07 นาที 21 วินาที UTC+7, Paolo Valleri เขียนว่า: Hi, Can you try the fix I proposed in https://github.com/web2py/web2py/issues/946#issuecomment-9661 Paolo On Tuesday, April 28, 2015 at 9:26:23 PM UTC+2, Ariya Owam-aram

[web2py] Any problem in list:reference in 2.10 ?

2015-04-28 Thread Ariya Owam-aram
Hi Everyone, I just upgrade to 2.10.4 and found error message when using filed list:reference. APP : welcome DB db.define_table('parent', Field('name')) db.define_table('student', Field('name'), Field('parent', 'list:reference parent')) in APPADMIN - from parent table insert : father,

[web2py] Re: How to display SVG files?

2015-05-06 Thread Ariya Owam-aram
# ## default.py # def test(): import pygal from pygal.style import LightColorizedStyle from pygal import Config config = Config()

[web2py] Re: smartgrid multiple links to related table - how to suppress all but one

2015-07-21 Thread Ariya Owam-aram
Hi Cliff, Any update for this. Thanks. เมื่อ วันจันทร์ที่ 1 เมษายน ค.ศ. 2013 22 นาฬิกา 18 นาที 49 วินาที UTC+7, Cliff Kachinske เขียนว่า: Opened issue 1423 https://code.google.com/p/web2py/issues/detail?id=1423thanks=1423ts=1364829473 On Monday, April 1, 2013 10:11:59 AM UTC-4, Cliff

[web2py] Re: Use wkhtmltopdf in web2py

2015-07-20 Thread Ariya Owam-aram
Hi Alessio If you call from Apache then you can call subprocess directly from webserver but in nginx you have to use schedule task. Better to run wkhtmltopdf via schedule task in case of generate pdf or process a report. THIS IS MY CODE: def schedule_task__pdf_render(): # import

[web2py] Re: how to get user to make boolean = False?

2015-10-31 Thread Ariya Owam-aram
In from field construct in your models. Field('approve', 'boolean', label = T('Approve'), default = False ), A เมื่อ วันเสาร์ที่ 31 ตุลาคม ค.ศ. 2015 7 นาฬิกา 38 นาที 18 วินาที UTC+7, Alex Glaros เขียนว่า: > > Users approve or disapprove items in selection of

Re: [web2py] Re: what is difference between ajax() and web2py_component() ?

2016-01-07 Thread Ariya Owam-aram
he component. In >>> particular, it is possible to trap both links and forms, so when you click >>> a link or submit a form contained within a component, the new content will >>> be loaded within the component (without reloading the rest of the page). >>> Comp

[web2py] what is difference between ajax() and web2py_component() ?

2016-01-07 Thread Ariya Owam-aram
Hi everyone, I often use ajax and web2py_component for onclick action (for example) but I never know what is difference between them and how to use them the right way. Can anyone guide me a good example, please? Thank your Ariya -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: what is difference between ajax() and web2py_component() ?

2016-01-08 Thread Ariya Owam-aram
a component and a full web page, so you could have > separate .load and .html views for that controller. > > Anthony > > On Thursday, January 7, 2016 at 7:38:43 PM UTC-5, Ariya Owam-aram wrote: >> >> Hi Anthony, >> >> Thank you for your clear and helpful expl

[web2py] Re: pygal and SQL.form

2016-01-20 Thread Ariya Owam-aram
Hi Try separate function for form & chart and in the view/form.html you can use function {{ =LOAD('chart', ...) }} or You can embedded python chart code into form.html for example: {{ import pygal from pygal.style import DefaultStyle from pygal import Config config = Config()

[web2py] Re: charts on web2py

2016-01-20 Thread Ariya Owam-aram
Try pygal.org very easy. เมื่อ วันพุธที่ 20 มกราคม ค.ศ. 2016 23 นาฬิกา 04 นาที 43 วินาที UTC+7, Diego Tostes เขียนว่า: > > Hi, > > anyone can indicate a good solution to create charts using web2py? > > rgds > > diego > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)