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

2021-01-20 Thread Omi Chiba
> 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: > >> ok, so this is four

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

2021-01-20 Thread Omi Chiba
ists' 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 for enduser_index view. It'

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

2021-01-20 Thread Omi Chiba
see the 'list' variable in the controller... > > Where is that coming from? > > -Jim > > On Wed, Jan 20, 2021 at 1:49 PM Omi Chiba wrote: > >> I'm not sure how to check... >> >> This is my controller for view page >> >> def enduser_view(): >>

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

2021-01-20 Thread Omi Chiba
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 > > On Wed, Jan 20, 2021 at 10:36 AM Omi Ch

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

2021-01-20 Thread Omi Chiba
(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 Chib

[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 =

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

2017-10-18 Thread Omi Chiba
e on Tuesday afternoon. > > > On Friday, 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 li

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

2017-10-11 Thread Omi Chiba
ps://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 logg

(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 ahow

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

2017-10-06 Thread Omi Chiba
> On Friday, October 6, 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 look

[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
pyright", "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' object has no

[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. It's

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

2017-10-06 Thread Omi Chiba
of 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's Windows

[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

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
ference somewhere appropriate in the >> book. >> >> Richard >> >> On Tue, Nov 1, 2016 at 2:22 PM, Dave S <snide...@gmail.com> wrote: >> >>> >>> >>> On Tuesday, November 1, 2016 at 7:51:26 AM UTC-7, Omi Chiba wrote: >>>> >&

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

2016-11-01 Thread Omi Chiba
eb2py.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: >> >> I'm running prod

[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

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

[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 Chiba wrote: I'm running

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

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

2015-02-05 Thread Omi Chiba
}} {{else:}} {{=form.custom.dspval.Grade}} {{pass}}/td /tr 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

[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}} table

[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

[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}} table tbody tr td class=w2p_fwlabelCover/label/td td

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

2015-02-05 Thread Omi Chiba
at 1:48:48 PM UTC-6, Omi Chiba wrote: I tried edit mode and put the following script in the view which works but feels so stupid and user cannot copy the values which I have to allow them top copy and paste. script jQuery(document).ready(function(){ jQuery('#main').find('input, select

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

2015-02-05 Thread Omi Chiba
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 -- Resources: - http://web2py.com - http

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

2015-02-05 Thread Omi Chiba
that KR_Product.Grade to be actually a reference field... Model not saying so and field name neither... Richard On Thu, Feb 5, 2015 at 3:09 PM, Omi Chiba ochi...@gmail.com javascript: wrote: I'm using 2.4.7 released 2013.05.24 so it could be bug and fixed now but I need to work on this version

[web2py] Re: mssql connection URGENT!

2015-02-02 Thread Omi Chiba
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://username:password@HELPDESK/HS2000CS, migrate_enabled=False) Now, our vendor change the name of instance to HELPDESK/HELPDESK_VM

[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:}} option value={{=model.Name}} {{= selected='selected' if

[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

[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

[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 ==

[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 =

Re: [web2py] Re: represents currency format

2015-01-27 Thread Omi Chiba
I got this error... type 'exceptions.TypeError'(lambda() 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 td

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Omi Chiba
. That said, you are mixing your view with your controller, please don't do that. I would suggest you use this web2pyslice as a starting point. (yes, I wrote it) http://www.web2pyslices.com/slice/show/1724/cascading- dropdowns-simplified On Monday, January 26, 2015 at 1:28:20 PM UTC-7, Omi Chiba

[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

Re: [web2py] Re: represents currency format

2015-01-26 Thread Omi Chiba
niph...@gmail.com 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 Chiba wrote: I want to show the UnitPrice

[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)'),

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

2015-01-23 Thread Omi Chiba
. Also, you can remote access the server without telling me I trust you so it's OK. On Fri, Jan 23, 2015 at 4:18 PM, Massimo Di Pierro massimo.dipie...@gmail.com 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

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

2015-01-23 Thread Omi Chiba
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 objects % base.__name__ TypeError: can't pickle function objects

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: OK, so I can fix this TypeError

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

2015-01-23 Thread Omi Chiba
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 wrote: Please see my quick test result below. I'm not sure

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

2015-01-23 Thread Omi Chiba
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 apache when I replace web2py folder. After trouble shooting I found 1. http://thksupport.com/welcome/default

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:18 AM UTC-6, Omi Chiba wrote: Um... more

[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

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 access

[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

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 leonelcam...@gmail.com wrote: if you go there with your browser in incognito mode does it work? -- Resources: - http://web2py.com -

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 Chiba wrote

[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 web2py\applications\admin

[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

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 niph...@gmail.com wrote: in this case it's not platform-dependency the issue: it's the

[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

[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

[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 this project

[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

[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

[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. type 'exceptions.SyntaxError' user is tampering with form's record_id: {'EMTKSC': None, 'EMTKCD': None} != {'EMTKSC': 'J11', 'EMTKCD': 'J2620008'} I also tried Writable

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

2014-04-02 Thread Omi Chiba
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. type 'exceptions.SyntaxError' user is tampering with form's record_id

[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?

[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

[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

[web2py] Re: sitemap.xml

2013-05-15 Thread Omi Chiba
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 unsubscribe from this group and stop receiving emails from

[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 generate

[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,

[web2py] Re: Number format using represent

2013-05-10 Thread Omi Chiba
}} 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 display ShipQty field value with correct number format such as 1,500 but it shows 1500. I

[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. I just want to highlight the home

[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: script jQuery(function() { var path = location.pathname.substring(1);

[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

[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? -

[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',

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

2013-05-07 Thread Omi Chiba
) $('all a in menu[href$=' + path + ']').closest('li'). addClass('highlight'); Il giorno martedì 7 maggio 2013 17:56:10 UTC+2, Omi Chiba ha scritto: 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

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 ochi...@gmail.com javascript: wrote: I'm using the latest web2py 2.4.6-stable

[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

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 ochi...@gmail.com javascript: wrote: 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

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 hello. Please see

[web2py] Re: bootstrap thumnails problem

2013-05-02 Thread Omi Chiba
, Niphlod wrote: check with firebug / similar if your p 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: Maybe this is not web2py issue

[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

[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? h3How can we help you?/h3 ul class=thumbnails li class=span3 div

[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 Groups

[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=1354thanks=1354ts=1361979432 On Tuesday, February 26, 2013 2:21:21 PM UTC-6, Omi Chiba wrote: How can I add margin both side of the page? I attached my

[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: 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 and my version was 2.1.1 but now it's 2.3.2

[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

[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 link rel=stylesheet href=http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css; / script

[web2py] Re: grid export button

2012-10-25 Thread Omi Chiba
) 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 UTC-5, Omi Chiba wrote: It works! Thank you for sharing your code. On Monday

[web2py] Re: grid export button

2012-10-25 Thread Omi Chiba
condition and check the acceptable cases. Il giorno giovedì 25 ottobre 2012 16:20:45 UTC+2, Omi Chiba ha scritto: I posted on this on my bloghttp://ochiba77.blogspot.com/2012/10/web2py-grid-with-export-dropdown.html?showComment=1351174654911#c5334545878916593563 and someone pointed

[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 =

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

2012-10-23 Thread Omi Chiba
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#SQLFORM.grid-and-SQLFORM.smartgrid On Tuesday, October 23, 2012 3:47:20 PM UTC+2, Omi Chiba

[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

[web2py] Re: grid export button

2012-10-22 Thread Omi Chiba
/?fromgroups=#!topic/web2py/fbYZXoIOkCY I hope this will help you. Il giorno lunedì 22 ottobre 2012 17:15:37 UTC+2, Omi Chiba ha scritto: 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

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

2012-10-19 Thread Omi Chiba
My app was working fine with Version 1.99.2. I upgrade to Version 2.1.1 and it shows this error. I'm using DB2 for my database. PDTFF is new table defined by web2py so it has id field but the others are existing and doesn't have id field. *Traceback (most recent call last):* File

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

2012-10-19 Thread Omi Chiba
It looks this line failed. Here I simply edit the record provided by user's select. form = SQLFORM(db.PDTFF,record) On Friday, October 19, 2012 3:27:53 PM UTC-5, Omi Chiba wrote: My app was working fine with Version 1.99.2. I upgrade to Version 2.1.1 and it shows this error. I'm using

  1   2   3   4   >