Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
dictable. > > Is there anything else you could pass other than a name to uniquely > identify the company in your url? > > Or, maybe I'm not following what you're trying to do here. > > -Jim > > > On Wed, Jan 20, 2021 at 3:36 PM Omi Chiba wrote: > >

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
around 'lists' and print out the field > values, what would that look like? Also, is there a difference if you also > print it out with the XML function wrapped around it? > > On Wed, Jan 20, 2021 at 2:03 PM Omi Chiba wrote: > >> here's the controller f

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
f="{{=URL('customer_view',args=[list.TKDIID,list.TKDICD])}}" > class="btn"> View< > > I don't see the 'list' variable in the controller... > > Where is that coming from? > > -Jim > > On Wed, Jan 20, 2021 at 1:49 PM Omi Chiba

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
turn dict(form=form) On Wednesday, January 20, 2021 at 11:47:17 AM UTC-6 Jim S wrote: > I don't think it will help to change the controller side. > > In the controller can you print out the values and also print out the > XML(value) and see what the difference is? > > -Jim

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
.args(2) and db.EDXUSF00.USTSKJ==request.args(3)) On Monday, January 18, 2021 at 4:16:04 PM UTC-6 Omi Chiba wrote: > JIm, > > Thank you for your reply! I will test it later this week and let you guys > know. > > On Monday, January 18, 2021 at 12:58:43 PM UTC-6 Jim S wrote: >

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-18 Thread Omi Chiba
JIm, Thank you for your reply! I will test it later this week and let you guys know. On Monday, January 18, 2021 at 12:58:43 PM UTC-6 Jim S wrote: > Can you wrap it in an XML function? > > class="icon-search"> View > > On Wednesday, January 13, 2021 at 4:03

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-13 Thread Omi Chiba
In another word, how I can encode and decode the value including special characters such as "&". https://help.marklogic.com/Knowledgebase/Article/View/using-url-encoding-to-handle-special-characters-in-a-document-uri On Wednesday, January 13, 2021 at 8:24:22 AM UTC-6 Omi Chiba wro

[web2py] Pass/Receive args contains "&" in the value

2021-01-13 Thread Omi Chiba
Hi, the following works fine when there is no symbol such as "&" in the field value. How can we pass and receive the parameters which contains "&"..etc.? View - customer_index View Controller - default.py def customer_index(): response.title = 'List' response.subtitle = 'Custom

Re: [web2py] Re: Web2py won't start with getLogger error

2017-10-18 Thread Omi Chiba
riday, 6 October 2017 18:32:51 UTC-5, Omi Chiba wrote: >> >> My Python version is 2.7.4. and My Web2py is Version >> 2.4.7-stable+timestamp.2013.05.24.17.48.47 >> >> Nothing changed since I setup my server in 2013 but it looks like >> something happened at 10/2

Re: [web2py] Re: Web2py won't start with getLogger error

2017-10-11 Thread Omi Chiba
d https://anaconda.org > > >>> import logging > > >>> import platform > > >>> logger = logging.getLogger("web2py") > > > python 2.7.4 is 4 years old. I suspect they installed a "logging" module > that conflicts with the standard

(Solved): [web2py] Re: Web2py won't start with getLogger error

2017-10-09 Thread Omi Chiba
Just let you guys know it's solved after re-installing Python!! Thank you for your help again! On Friday, October 6, 2017 at 8:40:36 PM UTC-5, Omi Chiba wrote: > > I don't think my hosting company did something on python but it looks like > my python is broken just like you

Re: [web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
, 2017 at 5:21:22 PM UTC-7, Omi Chiba wrote: >> >> Really >> > > And even more entries for the 3.6 version. > > >> >> Do you think I should uninstall and reinstall the same version of python? >> >> > Worth looking at. Was that touched whe

[web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
Really Do you think I should uninstall and reinstall the same version of python? On Friday, October 6, 2017 at 7:19:10 PM UTC-5, Dave S wrote: > > > > On Friday, October 6, 2017 at 4:54:53 PM UTC-7, Omi Chiba wrote: >> >> Python comand console? >> >&g

[web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
opyright", "credits" or "license" for more information. >>> import logging >>> import platform >>> logger = logging.getLogger("web2py") Traceback (most recent call last): File "", line 1, in AttributeError: 'module'

[web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
Python comand console? Yes, it looks ok I think. http://prntscr.com/gu94ns On Friday, October 6, 2017 at 6:50:44 PM UTC-5, Dave S wrote: > > > > On Friday, October 6, 2017 at 4:43:18 PM UTC-7, Omi Chiba wrote: >> >> I have C:\Python27 in my "Path" System

[web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
; On Friday, October 6, 2017 at 3:26:14 PM UTC-7, Omi Chiba wrote: >>> >>> Help! >>> >>> I was running old version (2015) of web2py on my hosting server as our >>> company's portal site and it stopped working suddenly.

[web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
update and working fine now but my web2py doesn't work... On Friday, October 6, 2017 at 5:26:14 PM UTC-5, Omi Chiba wrote: > > Help! > > I was running old version (2015) of web2py on my hosting server as our > company's portal site and it stopped working suddenly. It'

[web2py] Web2py won't start with getLogger error

2017-10-06 Thread Omi Chiba
Help! I was running old version (2015) of web2py on my hosting server as our company's portal site and it stopped working suddenly. It's Windows 2012 server with Uniserver(Apache). Apache start fine but shows error message. http://thksupport.com I also tried if I can just start up web2py with

Re: [web2py] Re: web2py for windows server. IIS or Nginx?

2016-11-02 Thread Omi Chiba
is with fastcgi > > > BTW: iis is perfectly fine running production envs. And it's NOT difficult. > > > On Tuesday, November 1, 2016 at 8:01:22 PM UTC+1, Omi Chiba wrote: >> >> Thank you! I will stick to Apache/wsgi for now. >> >> On Tuesday, November

Re: [web2py] Re: web2py for windows server. IIS or Nginx?

2016-11-01 Thread Omi Chiba
t;> community though, and it could be reference somewhere appropriate in the >> book. >> >> Richard >> >> On Tue, Nov 1, 2016 at 2:22 PM, Dave S wrote: >> >>> >>> >>> On Tuesday, November 1, 2016 at 7:51:26 AM UTC-7, Omi Chiba wrote: &g

[web2py] Re: web2py for windows server. IIS or Nginx?

2016-11-01 Thread Omi Chiba
he way to go. > http://web2py.com/books/default/chapter/29/13/deployment-recipes#Apache-and-mod_wsgi > > For me though, I've moved all of my production servers to Ubuntu with > nginx / uwsgi. > > -Jim > > On Monday, October 31, 2016 at 5:31:06 PM UTC-5, Omi Chiba wrote:

[web2py] web2py for windows server. IIS or Nginx?

2016-10-31 Thread Omi Chiba
I'm running production site with Apache but it sounds like we don't support apache anymore... which is one is better/easy option for me? I tried IIS long time ago but didn't success... maybe it was too complicated for me. -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

Re: [web2py] Re: Session folder size

2015-02-23 Thread Omi Chiba
Yes, I know it's available on admin but trying to automate the process. I'm running web2py on windows so it sounds like I can create a .bat file to run the sessions2trash.py command. On Monday, February 23, 2015 at 7:28:13 AM UTC-6, 黄祥 wrote: > > i think web2py admin already have it when you pr

[web2py] Re: Session folder size

2015-02-20 Thread Omi Chiba
Tnanks! Good to know. On Friday, February 20, 2015 at 2:20:53 PM UTC-6, Niphlod wrote: > > there's sessions2trash.py for that > http://web2py.com/books/default/chapter/29/13/deployment-recipes#Cleaning-up-sessions > > On Friday, February 20, 2015 at 8:47:46 PM UTC+1, Omi Ch

[web2py] Session folder size

2015-02-20 Thread Omi Chiba
I'm running web2py website about 2 years. Not much transactions maybe 10 per day but # of files under sessions are enormous and total "size" for the folder is around 100MB but the "Size on disk" shows about 10GB. I found it because it takes too long time to copy the folder... I run the clean up.

[web2py] form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
I want to display the value from IS_IN_DB. I have "P" as value and display "P = Precision" from the table. It's working fine on Edit mode in admin. But when I display the values, form.custom.dspval and form.custom.inpval shows the same value "P". Any idea? *My View* {{=form.custom.begin}}

Re: [web2py] Re: form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
{else:}} {{=form.custom.dspval.Grade}} {{pass}} On Thursday, February 5, 2015 at 2:37:10 PM UTC-6, Omi Chiba wrote: > > Thank you for the reply. I'm not really sure how to use lamda. The problem > is IS_IN_DB doesn't work when it's readonly and I found requires only works > for Create/Ed

Re: [web2py] Re: form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
you Name lambda passed variable may sure not containing what > you think or want it contains... I don't see in your model definition that > KR_Product.Grade to be actually a reference field... Model not saying so > and field name neither... > > Richard > > On Thu, Feb 5, 201

[web2py] Re: form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
tried something db.KR_Product.Grade.represent = lambda Name: SPAN(db.KR_GradeLabel[Name].Label) but I got a error says ('Table' object has no attribute 'P') Which P is the key value. And I want to shop P = Precision from another table. On Thursday, February 5, 2015 at 1:

[web2py] Re: form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
uot;, true); }); On Thursday, February 5, 2015 at 11:22:49 AM UTC-6, Omi Chiba wrote: > > In another word, it shows fine when I use {{=form.custom.widget.Grade}} > with edit mode ( form = SQLFORM(db.KR_Product,record, readonly=False)) > but not when I do readonly=True > > -- Re

[web2py] Re: form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
In another word, it shows fine when I use {{=form.custom.widget.Grade}} with edit mode ( form = SQLFORM(db.KR_Product,record, readonly=False)) but not when I do readonly=True -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] form.custom.dspval and IS_IN_DB

2015-02-05 Thread Omi Chiba
I'm trying to display (P = Precision) instead of "P". I tired both form.custom.dspval and form.custom.inpval but both shows "P". It looks fine when see the field in Edit mode in Admin. Any idea? *My View* {{=form.custom.begin}} Cover : {{=form.custom.dspval.Cover}} {{=form.custom.

[web2py] Re: Default value (Not in table) in Dropdown

2015-02-02 Thread Omi Chiba
Thanks. It worked great!!! On Monday, February 2, 2015 at 4:07:36 PM UTC-6, Niphlod wrote: > > that's pretty obvious. look at what you're trying to render in the > view! > > > {{for model in models:}} > {{=" selected='selected'" if model.Name==request.vars.model_name else > ""}

[web2py] Re: Default value (Not in table) in Dropdown

2015-02-02 Thread Omi Chiba
In my controller, can I just add the default value in controller something like below? If possible, this is the easiest one for me. Though I will get error I do this. *controller* if request.vars.model_name: models = db(db.KR_Lead.ModelName == request.vars.model_name).select(db.KR_

[web2py] Re: mssql connection URGENT!

2015-02-02 Thread Omi Chiba
Thanks! On Monday, February 2, 2015 at 3:06:05 PM UTC-6, Niphlod wrote: > > uhm. Technically having more than one instance of mssql running on the > same ip is possible (multiple named instances) but it involves a totally > different connection handshake. > If you don't specify different port n

[web2py] Default value (Not in table) in Dropdown

2015-02-02 Thread Omi Chiba
For example, I have a list models table and build a dropdown list from it but I want dropdown show something like "SELECT Model", then pick the model. I don't want to register the "SELECT Model" record in table. What's the easiest and clean way to do? I have 5 drop down list so ideally when I c

[web2py] Re: mssql connection URGENT!

2015-02-02 Thread Omi Chiba
you db and your .table are. > > Massimo > > On Monday, 2 February 2015 08:29:23 UTC-6, Omi Chiba wrote: >> >> The below connection statement was working fine and the SQL Servers's >> instance was HELPDESK/HELPDESK. >> >> dbh = DAL("mssql2://usernam

[web2py] mssql connection URGENT!

2015-02-02 Thread Omi Chiba
The below connection statement was working fine and the SQL Servers's instance was HELPDESK/HELPDESK. dbh = DAL("mssql2://username:password@HELPDESK/HS2000CS", migrate_enabled=False) Now, our vendor change the name of instance to HELPDESK/HELPDESK_VM. I tried, dbh = DAL("mssql2://username:pa

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Omi Chiba
t) >> >> http://www.web2pyslices.com/slice/show/1724/cascading- >> dropdowns-simplified >> >> >> >> >> On Monday, January 26, 2015 at 1:28:20 PM UTC-7, Omi Chiba wrote: >>> >>> I have a three dropdown and the value will be dynamically

Re: [web2py] Re: represents currency format

2015-01-27 Thread Omi Chiba
I got this error... (() takes exactly 2 arguments (1 given)) Render also looks complicated to me so I will just use the JS Massimo suugested. Thank you both!! On Monday, January 26, 2015 at 6:01:08 PM UTC-6, Niphlod wrote: > > in the view, you have > > {{=list.UnitPrice}} > > use instead > >

Re: [web2py] Re: represents currency format

2015-01-26 Thread Omi Chiba
:56 PM, Niphlod wrote: > if you're not using web2py's facilities (SQLTABLE, grid, rows.render(), > etc), you have to call represent directly > > {{=db.KR_Product.UnitPrice.represent(list.UnitPrice)}} > > > > On Monday, January 26, 2015 at 11:39:07 PM UTC+1, Omi Chi

[web2py] represents currency format

2015-01-26 Thread Omi Chiba
I want to show the UnitPrice like $1,000,00 but it shows 1000.00. *Model* db.define_table('KR_Product', Field('ProductCode', length=15), Field('PartNumber', length=50), Field('SubA', length=15), Field('SubB', length=15), Field('UnitPrice', 'decimal(18,2)'), Field('Quantit

[web2py] Dropdown lists

2015-01-26 Thread Omi Chiba
I have a three dropdown and the value will be dynamically changed using ajax. It's working fine but something is wrong. In second dropdown (id="lead_name"), I specify jQuery('#model_name') but it's actually jQuery('#leadl_name') but then when the value for the second drop changed, the value dis

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
Please delete my previous forum post from your emails : ) On Friday, January 23, 2015 at 4:18:03 PM UTC-6, Massimo Di Pierro wrote: > > Want to stop by my office next week? I'd like to take a look. > > On Friday, 23 January 2015 15:02:21 UTC-6, Omi Chiba wrote: >> &

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
gt; The ticket mentioned in the linked forum post is still opened, >> https://code.google.com/p/web2py/issues/detail?id=1655 >> >> So I think this is related issue which is not solved yet. >> >> >> On Friday, January 23, 2015 at 10:05:06 AM UTC-6, Omi Chiba w

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
h is not solved yet. On Friday, January 23, 2015 at 10:05:06 AM UTC-6, Omi Chiba wrote: > > I mean file is created anyway. It's just a error ticket > > File "C:\Python27\Lib\copy_reg.py", line 70, in _reduce_ex > raise TypeError, "can't pickle %s obje

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
I mean file is created anyway. It's just a error ticket File "C:\Python27\Lib\copy_reg.py", line 70, in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle function objects On Friday, January 23, 2015 at 9:26:1

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
le "C:\Python27\Lib\copy_reg.py", line 70, in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle function objects On Friday, January 23, 2015 at 8:54:23 AM UTC-6, Omi Chiba wrote: > > Yes. I stop and start ap

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
th > pickle being None and it cannot be because it is clearly imported. > Something very bad happened to your import. Make sure you stop and start > again the web server. If you use mod_proxy also stop and start python. > > > On Thursday, 22 January 2015 17:27:00 UTC-6, Omi Chiba wr

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-22 Thread Omi Chiba
Please see my quick test result below. I'm not sure if it's related to sessions and/or cookies because I always failed when I access with https. 1st test 1. delete all the cookie on my browser and delete sessions from all the app. 2. open the website => display welcome app => ok 3. tried to acces

[web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-22 Thread Omi Chiba
Thank you. I posted a ticket for this. https://code.google.com/p/web2py/issues/detail?id=2036 Even I delete session, cookies, hittp or https will get error so the website is useless. I will postpone my upgrade until this fix. On Thursday, January 22, 2015 at 11:35:56 AM UTC-6, Leonel Câmara wro

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-22 Thread Omi Chiba
Um... actually now I got the same error when I access http which I didn't have any problems. So the original problem was I couldn't access with https and now I cannot access with http with any app (Admin, Welcome...etc). On Thursday, January 22, 2015 at 10:39:34 AM UTC-6, Omi C

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-22 Thread Omi Chiba
It works!!! and now I can access with or without incognito mode... but why?? Is this temporarly fix? On Thu, Jan 22, 2015 at 10:30 AM, Leonel Câmara wrote: > if you go there with your browser in incognito mode does it work? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (D

[web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-22 Thread Omi Chiba
I just bring the customized app I crated so admin app is from the latest download. No change. Today, I tried fresh install. Download the latest source and run using apache and got the exact same error! So it means the lates web2py doesn't work with apache via wsgi hadler. I need this fixed ASAP

Re: [web2py] Re: HELP!! One click upgrade failed for pythonanywhere site

2015-01-21 Thread Omi Chiba
Right, I think I just need to delete the app on pythonanywhere, install new web2py from their installer and replace routes.py and my apps Hopefully this works. On Wed, Jan 21, 2015 at 2:34 PM, Niphlod wrote: > in this case it's not platform-dependency the issue: it's the method > web2py uses

[web2py] Re: HELP!! One click upgrade failed for pythonanywhere site

2015-01-21 Thread Omi Chiba
I was overt-rusting the web2py because it always promise backward compatibility... but this time it's depanding on platform so no complains. Now I failed two upgrade work for both pytonanywhere and my windows 2012 hosting server with apache... I just take one for the team and failed... : ) On W

[web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-21 Thread Omi Chiba
>Do you mean the clear the sessions folder under web2py\applications\admin? I tried it anyway but the same error... On Wednesday, January 21, 2015 at 1:40:43 PM UTC-6, Omi Chiba wrote: > > The problem occurs for admin app. > > Do you mean the clear the sessions folder under web2

[web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-21 Thread Omi Chiba
The problem occurs for admin app. Do you mean the clear the sessions folder under web2py\applications\admin? I didn't migrate admin app so this should be all empty from the beginning... or are you talking about apache? On Wednesday, January 21, 2015 at 1:20:42 PM UTC-6, Leonel Câmara wrote:

[web2py] HELP!! One click upgrade failed for pythonanywhere site

2015-01-21 Thread Omi Chiba
Hi, I clicked the upload on admin and tried to upgrade from 2.4.6 to 2.9.12. As soon as I clicked I got ticket but cannot see the ticket because now I get a ticket to see the ticket... It means I cannot open admin site. My app is still working fine. I don't where to start to fix. Can you guys h

[web2py] Re: Login Button off the layout

2015-01-16 Thread Omi Chiba
The login page which newly created in this version looks fine so Maybe there are CSS change which affects the layout of previous app... On Friday, January 16, 2015 at 1:42:11 PM UTC-6, Omi Chiba wrote: > > I installed the latest web2py Version 2.9.11 after long time absence from > thi

[web2py] Login Button off the layout

2015-01-16 Thread Omi Chiba
I installed the latest web2py Version 2.9.11 after long time absence from this project and found the Login button on the login page looks different from the previous one (See attached) Is this normal? Kind of strange to me... -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Re: Don't use 64 bit ODBC with Web2Py and SQL Server

2015-01-14 Thread Omi Chiba
Right, I'm using Windows 2012 64bit and MSSQL 2012 on cloud. Tried python 64 bit with pyodbc first then go back 32 bit. It works fine. On Tuesday, January 13, 2015 at 6:06:37 PM UTC-6, Pbop wrote: > > Spent days trying to track down an error with a Web2Py app and SQL Server > 2008 R2 running 64

[web2py] Re: dropdown text too long

2015-01-13 Thread Omi Chiba
Maybe this link help? http://eedle.com/2013/12/21/word-wrap-break-word-css-for-long-text-options-in-drop-down-select-lists/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: web2py conference - online talks

2014-05-05 Thread Omi Chiba
Thank your for sharing the link. It was the best conference ever! I was so excited and arrived around 8:20am. No body was there just me, which makes me the first attendee for the first web2py conference : ) Sorry. I have to leave after lunch to take care my family but I will check the videos t

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

2014-04-02 Thread Omi Chiba
etting db.table.id.writable > = False > > On Wednesday, April 2, 2014 4:07:38 PM UTC+2, Omi Chiba wrote: >> >> This is the error I got. The form looks fine by doing Writable = False >> (See attachment) but None is set when it's submit. >> >>> u

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

2014-04-02 Thread Omi Chiba
This is the error I got. The form looks fine by doing Writable = False (See attachment) but None is set when it's submit. > user is tampering with form's record_id: > {'EMTKSC': None, 'EMTKCD': None} != {'EMTKSC': 'J11', 'EMTKCD': 'J2620008'} > I also tried Writable = True, and Disable the dr

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

2014-04-01 Thread Omi Chiba
I have simple table and everything works fine with View, Add, Edit. It has two key field and I want to protect (Writabe = False) in Edit Mode. When I set writable = False in Controller, They're readonly in Edit mode but I get tampering with form's record_id.. error when I submit. Any idea? *C

[web2py] Version 2.4.7 clean error on Apache Server

2013-05-30 Thread Omi Chiba
I updated my web2py to the latest version and got the following error when I did "Clean" from Manage list. Is any one getting the same error? It was fine when I do with Rocket server but shows the error for Apache. Versionweb2py™Version 2.4.7-stable+timestamp.2013.05.24.17.48.47PythonPython 2.

[web2py] Re: sitemap.xml

2013-05-15 Thread Omi Chiba
You're right. The web site I previously posted create the index up to controller level. I think it's OK for now. On Wednesday, May 15, 2013 3:44:26 PM UTC-5, Niphlod wrote: > > PS: the problem with this approach is that your site needs to include some > page where all the urls that it can genera

[web2py] Re: sitemap.xml

2013-05-15 Thread Omi Chiba
to generate it > > On Wednesday, May 15, 2013 4:59:01 PM UTC+2, Omi Chiba wrote: >> >> Do we have the way to generate sitemap.xml automatically? > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsub

[web2py] sitemap.xml

2013-05-15 Thread Omi Chiba
Do we have the way to generate sitemap.xml automatically? -- --- 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 opt

[web2py] Re: Number format using represent

2013-05-10 Thread Omi Chiba
quot;raw" > representations such as {{=record.column}} > > if you want to leverage your model's represent, you have to call it > {{=db.table.column.represent(record.column, record)}} > > On Friday, May 10, 2013 6:57:48 PM UTC+2, Omi Chiba wrote: >> >> I'm trying to disp

[web2py] Number format using represent

2013-05-10 Thread Omi Chiba
I'm trying to display ShipQty field value with correct number format such as 1,500 but it shows 1500. I don't know if my represent statement is wrong or because I'm using bootstrap table style... model db.define_table('shipping', Field('FullOrderNumber', length=11, label='

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-09 Thread Omi Chiba
>Niphlod Thank you !! It's perfect now. >Paolo Thank you for the reference that's look easier too especially for someone like me who's not javascript gulu. On Thursday, May 9, 2013 1:55:00 PM UTC-5, Niphlod wrote: > > > jQuery(function() { > var path = location.pathname.substring(1); >

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-09 Thread Omi Chiba
Worked! Thank you~! On Thursday, May 9, 2013 3:38:41 AM UTC-5, Niphlod wrote: > > it's exactly working as expected with the latest snippet. > > Il giorno giovedì 9 maggio 2013 00:15:38 UTC+2, Omi Chiba ha scritto: >> >> Thank you for the additional explanation. >&

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-08 Thread Omi Chiba
Thank you for the additional explanation. I just want to highlight the home by defaut only first time user access the page. It should be removed when user click menu1 or menu2. The home will be highlighted again when user click home. By default. -- Home highlihgted Menu1

Re: [web2py] web2py on apache 'exceptions.MemoryError'

2013-05-07 Thread Omi Chiba
I think I'm OK now. I gave full control for web2py folder for users and it starts working fine... On Tuesday, May 7, 2013 11:48:54 AM UTC-5, Omi Chiba wrote: > > Oh, my mistake. It was there under admin/errors. > > I clear all the error files and try to create new app called he

Re: [web2py] Disable auto-migration for auth tables.

2013-05-07 Thread Omi Chiba
It works! Thanks a lot. On Tuesday, May 7, 2013 2:26:34 PM UTC-5, Ricardo Pedroso wrote: > > On Tue, May 7, 2013 at 8:05 PM, Omi Chiba > > wrote: > > I'm using CAS so new app is sharing the same auth tables so it doesn't > have > > to be created. But it&#

[web2py] Disable auto-migration for auth tables.

2013-05-07 Thread Omi Chiba
I'm using CAS so new app is sharing the same auth tables so it doesn't have to be created. But it's trying to create one and get already existing error... I can do migrate_enabled=Falese in DAL but then I cannot migrate any other tables used in the app. Can we just disable auto-migration only f

Re: [web2py] web2py on apache 'exceptions.MemoryError'

2013-05-07 Thread Omi Chiba
It's empty... On Tuesday, May 7, 2013 11:37:11 AM UTC-5, Marin Pranjić wrote: > > Can you check app/errors content? How many tickets there? What is their > size in total? > > > > On Tue, May 7, 2013 at 5:28 PM, Omi Chiba > > wrote: > >> I'm

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-07 Thread Omi Chiba
o highlight the current page url automatically. > > var path = location.pathname.substring(1); > if ( path ) $('all a in menu[href$="' + path + '"]').closest('li'). > addClass('highlight'); > > > > Il giorno martedì 7 ma

[web2py] Dynamically change highlighted class for response.menu

2013-05-07 Thread Omi Chiba
I have a following response.menu in my menu.py. By default Home is highlighted but I want to highlight the menu clicked by the user. For example, when user click contact, 'highlighted' class should be added to contact and removed from home. response.menu = [ (SPAN('Home', _class='highlighte

[web2py] web2py on apache 'exceptions.MemoryError'

2013-05-07 Thread Omi Chiba
I'm using the latest web2py 2.4.6-stable+timestamp.2013.04.06.17.37.38 (Running on Apache) with Windows 2012 Server 64bit. Everytime I do the following, I got ticket link, when I click the link, it will generate another error ticket and says 'exceptions.MemoryError'. Do you have any idea? - Cre

[web2py] Re: bootstrap thumnails problem

2013-05-02 Thread Omi Chiba
Thank you for suggestions. -- --- 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.goog

[web2py] Re: bootstrap thumnails problem

2013-05-02 Thread Omi Chiba
3 PM UTC-5, Niphlod wrote: > > check with firebug / similar if your with the descriptions have > something among the lines of text-aling: justify applied. looks like > that in the screenshots you posted. > > On Wednesday, May 1, 2013 11:06:55 PM UTC+2, Omi Chiba wrote: &g

[web2py] bootstrap thumnails problem

2013-05-01 Thread Omi Chiba
Maybe this is not web2py issue but I'm trying to use thumnail class to shows the three image blocks but the text in the paragraph inside is strangely have too much space between the words. Does anyone know how to adjust it? How can we help you? {{=IMG(_src=URL('static/images','hol

Re: [modwsgi] Re: " The specified module could not be found." error

2013-04-30 Thread Omi Chiba
I'm in the same situaltion as Adnan. Windows Server 2012 64bit Python 2.7.4 32bit mod_wsgi-win32-ap22py27-3.3.so Apache 2.4.4 win 32 coming with Uniform Server On Wednesday, November 14, 2012 5:22:49 AM UTC-6, Adnan Hussain wrote: > > Im getting the same issue but i have python 2.7 installed and

[web2py] Re: web2py is moving

2013-03-01 Thread Omi Chiba
That's a good news. I llike pythonanywhere ! On Thursday, February 28, 2013 5:40:22 PM UTC-6, Massimo Di Pierro wrote: > > web2py.com is moving to pythonanywhere.com. There may be disruptions but > we hope not. > > -- --- You received this message because you are subscribed to the Google Gro

[web2py] Re: jquery mobile plugin layout problem

2013-02-27 Thread Omi Chiba
Found the solution. It works fine now. I submit a ticket along with my solution for this. http://code.google.com/p/web2py/issues/detail?id=1354&thanks=1354&ts=1361979432 On Tuesday, February 26, 2013 2:21:21 PM UTC-6, Omi Chiba wrote: > > How can I add margin both side of t

[web2py] Re: outdated web2py plugin for jquery mobile

2013-02-26 Thread Omi Chiba
Same here. One of web2py Japan member found it's using the old jquery mobile files. I changed the code in "views/plugin_jqmobile/layout.html" http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css"; /> http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js";> t

[web2py] jquery mobile plugin layout problem

2013-02-26 Thread Omi Chiba
How can I add margin both side of the page? I attached my screen shot. jquery mobile should give me the margin on left and right side so text, buttons fit nicely but there is no space when you use the plugin so the text doesn't look good. I use web2py 2.3.2 and downloaded the latest jquery mobi

[web2py] Re: web2py 2.1.1 to 2.3.2

2013-02-26 Thread Omi Chiba
Thanks : ) On Tuesday, February 26, 2013 1:43:03 PM UTC-6, Massimo Di Pierro wrote: > > You can find the changelog here: > > http://web2py.com/examples/default/changelog > > On Tuesday, 26 February 2013 13:22:58 UTC-6, Omi Chiba wrote: >> >> I was a little busy an

[web2py] web2py 2.1.1 to 2.3.2

2013-02-26 Thread Omi Chiba
I was a little busy and my version was 2.1.1 but now it's 2.3.2! Is there anyone who can explain what's the major change since 2.1.1? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails

[web2py] Re: grid export button

2012-10-25 Thread Omi Chiba
roup' > ) > export_menu = grid.element('div.w2p_export_menu',replace=new_export_menu) > pass > pass > }} > > > {{=grid}} > > Of course if the page with the grid has arguments in url you have to > change the first con

[web2py] Re: grid export button

2012-10-25 Thread Omi Chiba
rt_menu_links: item = LI(link) export_menu_items.append(item) pass new_export_menu = DIV( A( T('Exports'), SPAN(_class='caret'), _href='#', _class='btn dropdown-toggle', On Tuesday, October 23, 2012 8:38:54 AM

Re: [web2py] Re: grid create,editable, deletable are not displayed

2012-10-23 Thread Omi Chiba
> > """ > By default all the URL generated by the grid are digitally signed and > verified. This means one cannot perform certain actions (create, update, > delete) without being logged-in > """ > > > http://web2py.com/books/default/chapter/29/07#

[web2py] grid create,editable, deletable are not displayed

2012-10-23 Thread Omi Chiba
I don't what I'm doing wrong. I made a new sample grid app with ver 2.1.1 and it doesn't display create, editable, deletable by default or with True. Model db.define_table('Category', Field('Code', 'integer'), Field('Name'), format='%(Name)s') Controller def index(): query = db.C

[web2py] Re: grid export button

2012-10-22 Thread Omi Chiba
gt; > In the attached picture you can see how the exports menu is rendered using > css bootstrap framework. > > The method is based on Server-side DOM and parsing ( > http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing) > and it uses the elements argument &q

[web2py] grid export button

2012-10-22 Thread Omi Chiba
New export function on grid has many choices but I need to keep the old format. (Export button for csv) because... - I'm using the gird for users (Maybe this format is good for us but not users.) - Current export options layout is not pretty (I prefer button with dropdown list) - I don't want u

[web2py] Re: Version 2.1.1 error: Table' object has no attribute '_id'

2012-10-19 Thread Omi Chiba
Field('KNKNNM', length=30), primarykey=['KNCTCD','KNKNCD']) On Friday, October 19, 2012 3:48:53 PM UTC-5, Omi Chiba wrote: > > It looks this line failed. Here I simply edit the record provided by > user's select. > > form = SQLFORM(db.PD

  1   2   3   4   >