[web2py] Re: JQuery Help with book example of .slideToggle

2016-03-23 Thread xmarx
you have to specify that with css. add this: .two { display:none; } 22 Mart 2016 Salı 21:22:14 UTC+2 tarihinde billmac...@gmail.com yazdı: > > In the book example page 501 > > Hello > World > > jQuery(document).ready(function(){ >

[web2py] Re: please help with new widgets

2016-03-14 Thread xmarx
in mdipierro.github.io/stupid.css/widgets/index.html line 32: (chrome view source: view-source:http://mdipierro.github.io/stupid.css/widgets/index.html ) should be: i am not expert js or css. this is all I can do. 14 Mart 2016 Pazartesi 02:06:46 UTC+2 tarihinde Massimo Di Pierro yazdı: > >

[web2py] Re: how to generate PDF documents in web2py???

2016-03-11 Thread xmarx
pyfpdf is installed on web2py. docs and tutorials can be found here: http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html 11 Mart 2016 Cuma 21:36:41 UTC+2 tarihinde prashant joshi yazdı: > > i want crete sql form if i click on print button then form printout in > pdf format > how it

[web2py] Re: pdf utf-8 problem

2016-03-01 Thread xmarx
i haven't find solution yet but i found rigth source to explore. http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html if i find, i will post here. 1 Mart 2016 Salı 21:04:44 UTC+2 tarihinde xmarx yazdı: > > i have a page in charset utf-8. > > say testpdf.html > > when

[web2py] pdf utf-8 problem

2016-03-01 Thread xmarx
i have a page in charset utf-8. say testpdf.html when i type testpdf.pdf, some of non-ascii characters have been lost. what can i do? second question, have can i specify styles of paragaphs, titles etc? it doesn't recognize some of css styles. thank you. -- Resources: - http://web2py.com

Re: [web2py] Re: ubuntu web2py

2016-02-20 Thread xmarx
thank you. it works. 10 Şubat 2016 Çarşamba 15:46:37 UTC+2 tarihinde Jim S yazdı: > > I got this working! > > Here is what I did. > > 1. Run the normal web2py installation script for nginx/ubuntu > 2. sudo nano edit /etc/systemd/system/emperor.uwsgi.service > > Add these lines > [Unit] >

[web2py] Re: Apply where clause in external references

2016-02-17 Thread xmarx
users=db(db.user.stato==True).select() for user in users: #your code here 17 Şubat 2016 Çarşamba 10:18:40 UTC+2 tarihinde Alessio Varalta yazdı: > > Hi I have a class group and a class user for example. So i have a loop > > for row_user in row_group.user.select() > > now i want only the

[web2py] Re: web2py included on Synology DSM

2016-02-10 Thread xmarx
+1 10 Şubat 2016 Çarşamba 15:32:24 UTC+2 tarihinde Gerd yazdı: > > Hi! > > I would like to see web2py as a package for the Synology NAS, so i wrote > an inquery to the company at > https://www.synology.com/en-global/form/inquiry/feedback > > If you feel the same i suggest you to fill out the

[web2py] Re: How to set default country in dropdown list

2016-02-09 Thread xmarx
db.define_table('Person', Field('last_name', 'string'), Field('name', 'string'), Field('telephone', 'string'), Field('email', 'string'), Field('nationality','reference Nationalities',default=1),

Re: [web2py] Re: ubuntu web2py

2016-02-06 Thread xmarx
-ewwf | grep uwsgi >> >> results should look something like this: >> >> [image: Inline image 1] >> >> -Jim >> >> >> >> On Fri, Feb 5, 2016 at 3:18 PM, xmarx <selc...@gmail.com > >> wrote: >> >>> ubuntu 15.10

[web2py] ubuntu web2py

2016-02-05 Thread xmarx
i install on ubuntu web2py, nginx and uwsgi. when i run web2py (sudo python web2py.py) admin says Running on Rocket 1.2.6, Python 2.7.10. where did i mistake? it must run on nginx, am i right? thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: ubuntu web2py

2016-02-05 Thread xmarx
deployment-recipes#Linux-and-Unix >> >> -Jim >> >> On Friday, February 5, 2016 at 11:33:57 AM UTC-6, xmarx wrote: >>> >>> i install on ubuntu web2py, nginx and uwsgi. >>> >>> when i run web2py (sudo python web2py.py) admin says Runni

[web2py] Re: ubuntu web2py

2016-02-05 Thread xmarx
bout how it is behaving. > > -Jim > > > On Friday, February 5, 2016 at 1:28:10 PM UTC-6, xmarx wrote: >> >> i read the deployment recipes page and nginx section again and again. i >> don`t see about `after install` >> >> i try install this script >> h

[web2py] Re: response.flash in custom view

2016-02-05 Thread xmarx
add this code to your view anywhere you want. {{=response.flash}} in layout.html {{=response.flash or ''}} 5 Şubat 2016 Cuma 09:57:25 UTC+2 tarihinde Joe yazdı: > > If I am not using {{extend 'layout.html'}} how can I make the > response.flash working in my template? > Thanks. > --

[web2py] how to upgrade web2py on turnkey linux

2016-02-04 Thread xmarx
i install web2py on hub.turnkeylinux.org. web2py version is 2.12.3. when i upgrade web2py application admin gives an error but i can't see error page. from then, i can't do anything with web2py admin interface. i message to turnkeylinux support center but they haven't reply yet. so i have few

[web2py] ubuntu vmware uwsgi

2016-01-26 Thread xmarx
/ have an error localhost. nginx is running. but uwsgi is not active. xmarx@xmarx-VirtualBox:~$ sudo service uwsgi start [sudo] password for xmarx: Failed to start uwsgi.service: Unit uwsgi.service failed to load: No such file or directory. how can i solve this problem? -- Resources:

[web2py] Re: How to make a form for accepting images (through default.py controller)?

2015-12-20 Thread xmarx
form = FORM(INPUT(_name='img', _type='file', upload=True),INPUT(_type='submit')) 19 Aralık 2015 Cumartesi 16:21:26 UTC+2 tarihinde RAGHIB R yazdı: > > form = FORM(INPUT(_name='img', upload=True),INPUT(_type='submit')) > > This is not working. What's wrong here? > -- Resources: -

[web2py] Re: manual form and SQLFORM question

2015-12-20 Thread xmarx
thanks Pierre. but i don't think i understand you clearly, sorry. if i understand you correctly, you say why all checkbox inputs have same name (q). but they are checkboxes. they must have a same name. i will get selected inputs with request.post_vars or request.vars. when i submit first form,

[web2py] manual form and SQLFORM question

2015-12-20 Thread xmarx
hi all. page is here: https://xmarx.pythonanywhere.com/deneme/default/test1 i have a page has form that manually created. if submits page redirect new page that has a SQLFORM. i cannot have a result form second page. def test1(): questions=[1,2,3,4,5,6,7,8,9,10] return locals()

[web2py] Re: How to make a form for accepting images (through default.py controller)?

2015-12-20 Thread xmarx
to make a form accepts only images see this: http://www.w3schools.com/tags/att_input_accept.asp you can add _accept="image/*" 19 Aralık 2015 Cumartesi 16:21:26 UTC+2 tarihinde RAGHIB R yazdı: > > form = FORM(INPUT(_name='img', upload=True),INPUT(_type='submit')) > > This is not working. What's

[web2py] Re: manual form and SQLFORM question

2015-12-20 Thread xmarx
('name'),Field('questions').) i didn't use list:reference. i store question ids as string seperated with comma. 20 Aralık 2015 Pazar 21:16:24 UTC+2 tarihinde Anthony yazdı: > > On Sunday, December 20, 2015 at 6:39:45 AM UTC-5, xmarx wrote: >> >> >> def test2()

[web2py] Re: How to upload a file in a directory without SQLFORM ?

2015-12-16 Thread xmarx
in controller: def index(): import os form=SQLFORM.factory(Field('name'),Field('file', 'upload',uploadfolder=os.path.join(request.folder,'uploads'))) if form.process().accepted: request.flash='file uploaded!' return dict(form=form) in view index.html: {{extend

[web2py] Re: How to not show menu bar in certain views and keep the view look normal?

2015-12-14 Thread xmarx
you can edit layout.html. for delete menu you can customize this lines. {{=response.flash or ''}} {{=response.logo or ''}} {{='auth' in globals() and auth.navbar(mode="dropdown") or ''}} {{if response.menu:}}

[web2py] how can i learn number of row

2015-12-14 Thread xmarx
i want to learn number of rows from Rows object in view. in controller: rows=db(db.test).select() in view: {{=rows.length}} id didn't work. AttributeError: 'Rows' object has no attribute 'length' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] view question

2015-11-26 Thread xmarx
thanks Richard. but it didn't work. table works. Test 1 2 1 2 1 2 1 2 3 4 5 6 this code in browser look like this:

[web2py] Re: TABLE--TR--TD in web2py book

2015-09-01 Thread xmarx
This is a shortcut that allows you to pass multiple arguments to a function directly list. source: http://stackoverflow.com/questions/36901/what-does-double-star-and-star-do-for-python-parameters TABLE(*[TR(*rows) for rows in table]) TABLE is a function that can takes list argument.

[web2py] Re: How accept latin letters on args

2015-08-31 Thread xmarx
you can set title of the post at vars. for example: /application/cms/post/12345?title=çışöğüã+ğüã+ğüã or you can set non-unicode letters to similar unicode letters. that readable by reader. for example: /application/cms/post/12345/cisogua_gua_gua 30 Ağustos 2015 Pazar 02:03:38 UTC+3

[web2py] Re: When will we have a proper forum ?

2015-08-05 Thread xmarx
It does have tags: https://groups.google.com/forum/#!tags/web2py but unfortunatelyit doesn't using effectively. because i think. most messages send and replied vie e-mail. it would be nice to have the following features in 'new forum' or whatever. 1. transfer or copy all google groups

[web2py] format question

2015-07-12 Thread xmarx
In db, Does referenced field stored as formatted, or as id? for example: db.define_table('group', Field('name'), format = %(name)s) db.define_table('person', Field('name'), Field('sirname'),

[web2py] Plugins Error

2015-05-12 Thread xmarx
hi! when i click from design page (http://127.0.0.1:8000/admin/default/design/examples) download plugins from repository button, i get an error like this: TypeError: list indices must be integers, not str screenshot is there. Thank you. -- Resources: - http://web2py.com -