Re: [web2py] Re: web2py[:]

2012-03-05 Thread Omi Chiba
It looks great !!

[web2py] Cookbook Chapter 2 - Reddit clone Ajax problem

2012-03-23 Thread Omi Chiba
I was following cookbook and having a problem for the ajax part. I can click plus or minus to change the value for the first time, but it doesn't update the value next time it's clicked. Also, I don't get any flash message like 'you voted already' or 'vote recorded'. What am I missing ?

Re: [web2py] Re: Cookbook Chapter 2 - Reddit clone Ajax problem

2012-03-26 Thread Omi Chiba
OK it worked ! The indent for last three line was wrong on book and it was fixed on the downloaded code. On Friday, March 23, 2012 6:18:36 PM UTC-5, Omi Chiba wrote: Alan, Thanks. Good idea. I will try the support files. Sent from my Verizon Wireless BlackBerry -Original

[web2py] web2py hosting on VPS server for enterprise

2012-03-28 Thread Omi Chiba
I'm looking for VPS service for our company to running web2py apps. Requirements --- OS: Windows2008 Database: MS SQL 2008 RAM: 2GB or higher Domain: we will get from domain.com --- I'm pretty

Re: [web2py] web2py hosting on VPS server for enterprise

2012-03-28 Thread Omi Chiba
- OS: Windows DB: SQL 2008 R2 Web Edition Web server: Apache RAM: 2GB -- On Wednesday, March 28, 2012 3:09:49 PM UTC-5, rochacbruno wrote: for windows -- http://www.rackspace.com On Wed, Mar 28, 2012 at 4:32 PM, Omi Chiba ochib

[web2py] Add conditional sub-menu

2012-04-11 Thread Omi Chiba
The following menu works. It's add Admin menu next to Price List if the user has role admin. Now, I want to add the Admin menu as sub-menu of Price List where it's right after the Cut Charge Tables. How can I do this ? response.menu = [('Home', False, URL('home','default','index'), []),

Re: [web2py] Add conditional sub-menu

2012-04-11 Thread Omi Chiba
] += [('Admin', False, URL('admin')), ] On Wed, Apr 11, 2012 at 1:24 PM, Omi Chiba ochib...@gmail.com wrote: response.menu = [('Home', False, URL('home','default','index'), []), (SPAN('Price List',_style='color:yellow'), True, URL('pricelist','default','index'), [('Guideline

[web2py] Re: Add conditional sub-menu

2012-04-12 Thread Omi Chiba
), ])] On Wednesday, April 11, 2012 12:24:29 PM UTC-4, Omi Chiba wrote: The following menu works. It's add Admin menu next to Price List if the user has role admin. Now, I want to add the Admin menu as sub-menu of Price List where it's right after the Cut Charge Tables. How can I do

Re: [web2py] Re: Add conditional sub-menu

2012-04-12 Thread Omi Chiba
', False, URL('pricelist','default','cuttable')), (sub_menu), ])] On Wednesday, April 11, 2012 12:24:29 PM UTC-4, Omi Chiba wrote: The following menu works. It's add Admin menu next to Price List if the user has role admin. Now, I want to add the Admin menu as sub-menu of Price

Re: [web2py] Re: Add conditional sub-menu

2012-04-15 Thread Omi Chiba
, April 12, 2012 9:43:39 AM UTC-4, Omi Chiba wrote: Cliff, Thank you for sharing code but now I got a different error. Maybe it cannot understand sub_menu contains three parameters.. Traceback (most recent call last): File C:\web2py\gluon\restricted.**py, line 205, in restricted exec ccode

[web2py] Re: Add conditional sub-menu

2012-04-25 Thread Omi Chiba
'), []), ] # Added empty list On Thursday, April 12, 2012 9:43:39 AM UTC-4, Omi Chiba wrote: Cliff, Thank you for sharing code but now I got a different error. Maybe it cannot understand sub_menu contains three parameters.. Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line

[web2py] Re: bootstrap in trunck - make it more look and feel like bootstrap

2012-05-02 Thread Omi Chiba
I attached what I'm using. I re-enabled h1 - h6 and right, left, center. On Wednesday, May 2, 2012 1:32:09 PM UTC-5, Omi Chiba wrote: I was testing bootstrap in trunk. This is very nice !! Now, by default, the layout doesn't look like bootstrap because some of css are referencing

[web2py] Re: Can drop downs in a form depend on each other?

2012-05-07 Thread Omi Chiba
I made a similar app before and you can find my slice post herehttp://www.web2pyslices.com/slice/show/1467/cascading-drop-down-lists-with-ajax. I hope it helps. On Monday, May 7, 2012 6:09:45 AM UTC-5, Stefan L wrote: Not sure I got the heading understandable, but this is what I want to

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-25 Thread Omi Chiba
Great work, Paolo ! I can't wait for the web2py 2.0 !! On Thursday, May 24, 2012 6:16:37 PM UTC-5, Paolo Caruccio wrote: Andrew, I played a bit on this subject. Please replace the below files (before backup them) with attached ones: 1. welcome models menu.py (check the changes in

[web2py] Re: Deploy issue - Apache on Windows - Unable to import driver

2012-05-25 Thread Omi Chiba
Yep, I'm still using the apache comming with Uniform Server. http://ochiba77.blogspot.com/2011/10/how-to-setup-web2py-apache-wsgi-uniform.html I'm successfully connecting both SQL Server 2008 and DB2. On Friday, May 25, 2012 12:08:59 AM UTC-5, Andrew wrote: Oh, Just found this post, which

[web2py] Re: Deploy issue - Apache on Windows - Unable to import driver

2012-05-29 Thread Omi Chiba
Brian, Thank you for the info ! I also added the information on my blog. On Friday, May 25, 2012 7:32:23 PM UTC-5, Brian M wrote: Yep, got burned by this when setting up a new server last month. The problem is covered in the pyodbc issue tracker here -

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-29 Thread Omi Chiba
I downloaded the latest this morning and found some icons cannot be displayed. Maybe we're not using the latest bootstrap ? ul lii class=icon-glass/i icon-glass/li = OK lii class=icon-wrench/i icon-wrench/li = Not displayed /ul On Sunday, May 27, 2012 5:53:16 PM UTC-5, Massimo Di Pierro

[web2py] Re: Deploy issue - Apache on Windows - Unable to import driver

2012-05-30 Thread Omi Chiba
but there is an issue when Python is installed in a non standard path - not sure if that is my issue, but I'll soon find out. On Wednesday, May 30, 2012 1:37:58 AM UTC+12, Omi Chiba wrote: Brian, Thank you for the info ! I also added the information on my blog. On Friday, May 25, 2012 7:32

[web2py] Re: Welcome app / AddToAny integration question

2012-05-30 Thread Omi Chiba
I was thinking the same. It's a little bit annoying. On Wednesday, May 30, 2012 4:22:02 PM UTC-5, Chris May wrote: More of a curiosity on my part, but why does web2py promote AddToAny (by automatically including it with every new application)? Sure, it's easy enough to remove, but why is it

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-31 Thread Omi Chiba
+1 I don't like the buttons for navbar. On Wednesday, May 30, 2012 5:36:51 PM UTC-5, Andrew wrote: Thanks LightDot, I thought it may have been a feature, so just my opinion, I think the non button look was better. It looks more consistent with the other links in the navbar, and other

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-31 Thread Omi Chiba
Comment out the jquery code will also disable the sub-menus somehow. The sub-menus doesn't appear after the change. On Wednesday, May 30, 2012 3:05:46 PM UTC-5, Paolo Caruccio wrote: Andrew, it's simple go back to old auth_navbar. In views/layout.html comment this jquery code:

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-31 Thread Omi Chiba
Tested. It's perfect ! On Thursday, May 31, 2012 5:39:12 PM UTC-5, Paolo Caruccio wrote: Omi, please try attached files and let me know if you have the same problem. Il giorno giovedì 31 maggio 2012 22:23:16 UTC+2, Omi Chiba ha scritto: Comment out the jquery code will also disable

[web2py] How to check if attribute exists

2012-06-01 Thread Omi Chiba
I have a simple upload form. It works fine but it shows the following error when user submit it without selecting file. How can I check if request.vars.csvfile.file attribute exists ? File C:/trunk/web2py/applications/tedi/controllers/default.py, line 110, in customer_upload if

[web2py] Re: [OT] Pycharm 2 is out

2012-06-01 Thread Omi Chiba
Voted ! I just missed #100. I was #101 : ) On Thursday, December 15, 2011 1:08:07 PM UTC-6, mikech wrote: Still no web2py love, but some nice features. http://www.jetbrains.com/pycharm/whatsnew/ and here is the link for voting for web2py support.

[web2py] Re: How to check if attribute exists

2012-06-01 Thread Omi Chiba
It works great. Thanks !! On Friday, June 1, 2012 2:56:58 PM UTC-5, Anthony wrote: if hasattr(request.vars.csvfile, 'file'): Anthony On Friday, June 1, 2012 3:51:09 PM UTC-4, Omi Chiba wrote: I have a simple upload form. It works fine but it shows the following error when user submit

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-06 Thread Omi Chiba
Too bad.. On Wed, Jun 6, 2012 at 8:03 AM, drelyn86 drelki...@gmail.com wrote: Fluxflex will be shut down and will be no longer available on June 30, 2012. = From 2010, we have provided Fluxflex for about two years. But because of profitability, instability and some other issues, we

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread Omi Chiba
Bruno, I'm interested in pythonanywhere. Can we set up web2py with free account ? Any documentation I can refer ? On Wednesday, June 6, 2012 4:34:46 PM UTC-5, rochacbruno wrote: pythonanywhere has easy deployment for web2py http://zerp.ly/rochacbruno Em 06/06/2012 15:10, sesenmaister

Re: [web2py] Web2Py on OpenShift

2012-06-08 Thread Omi Chiba
Thanks ! It's a good video. On Fri, Jun 8, 2012 at 10:07 AM, Andrew andrew.replo...@gmail.com wrote: Just FYI to anyone interested, I've put together a web2py template for OpenShift https://openshift.redhat.com/app/ (Red Hat's Opensource PaaS). You can find it here: -

[web2py] MSSQL Field Name: file is not allowed

2011-08-16 Thread Omi Chiba
I just want to share my experience which takes hours to figure out. I was reading web2py book - 03 Overview - An Image Blog, it worked fine with SQLite and tried to use mssql server on my local PC which is also the new experience to me... Replaced the DAL for sqlite with mssql db =

[web2py] MSSQL DAL multiple cascade paths not allowed

2011-08-17 Thread Omi Chiba
I was fololwing the web2py book with mssql for my database. db.define_table('comment', Field('page_id', db.page), Field('body', 'text'), Field('created_on', 'datetime', default=request.now), Field('created_by', db.auth_user, default=auth.user_id)) will generate CREATE TABLE

[web2py] fluxflex

2011-08-21 Thread Omi Chiba
Ichino who is a member of web2py Japan created a library on fluxflex and it works great ! http://www.fluxflex.com/library/47 1. Sign up fluxflex 2. Create new project (e.g. ochiba) 3. Install the library (It will be done in one second!) 4. Access to your project with HTTPS not HTTP (e.g.

[web2py] Re: fluxflex

2011-08-22 Thread Omi Chiba
It's actually created by nus (Yota Ichino). https://github.com/nus/web2py-for-fluxflex You can send messages and ask questions from there. On Aug 22, 2:24 am, Iceberg iceb...@21cn.com wrote: Omi Chiba, Thanks VERY MUCH for your effort on building the web2py installation package (a.k.a

[web2py] Re: Published my collection of plugins

2011-08-29 Thread Omi Chiba
It's just GREAT !! I love the Suggest Widget. On Aug 29, 7:00 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: SQLFORM.grid(query) SQLFORM.smartgrid(table) are replacements for SQLTABLE and crud. they have search, pagination, sorting, and lots more. Give them a try. On Aug 29, 4:40 

[web2py] Re: Say My Name Example not working, version 1.98.2

2011-08-29 Thread Omi Chiba
Rami, I'm using the same version and just follow the chapter but It works fine. It runs under Rocket WSGI web server comming with web2py. If you are using another web server, then you should check the configuration. Or it could be a typo somewhere. I will send you my app to your mail address. On

[web2py] Re: mssql connect

2011-08-31 Thread Omi Chiba
Additonal to Denes, I'm using Microsoft SQL Server 2008 Express and successfully connection with this. db = DAL(mssql://UserID:Password@ComputerName\SQLEXPRESS/ DatabaseName) On Aug 31, 1:52 pm, DenesL denes1...@yahoo.ca wrote: The connection string seems ok but: - check user and password -

[web2py] How to connect DB2 with Python pyodbc

2011-09-06 Thread Omi Chiba
I posted the step by step instruction in my blog. http://ochiba77.blogspot.com/2011/09/how-to-connect-db2-with-python-pyodbc.html

[web2py] Re: blog post on web2py + db2

2011-09-06 Thread Omi Chiba
No, you can connect to the OS400 machine (Actually, that's where I tested) Check your System: name ,SQL default library: name, user id and password. If your machine can start session with iSeries Access then you can connect. On Sep 6, 4:07 pm, António Ramos ramstei...@gmail.com wrote: I tried

[web2py] Re: blog post on web2py + db2

2011-09-06 Thread Omi Chiba
How about using auth with as400 users. Is it possible? I'm not sure about it since I'm still new for web2py but your problem should be related to the permission just like your error says. My library is like... Object secured by authorization list . . . . . . . . . . . . *NONE Object User

[web2py] Re: blog post on web2py + db2

2011-09-07 Thread Omi Chiba
Antonio, You can contact me personally to solve the issue because it's really a setting on your AS400. Are you AS400 guy ? If so, you can send me the screen shot for the following. WRKOBJ QSYS/MYLIB Opt 2=Edit authority By default, *public shulld be *CHANGE and authorization list = *NONE. If

[web2py] form.custom - record is not created

2011-09-07 Thread Omi Chiba
I'm creating a simple twitter like app for fun. To submit worked with {{=form}} and now I'm using form.custom.xxx for customization. It works fine if I comment out the following from default.py but form.vars will be empty and the record will not be created with the two lines. if

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Omi Chiba
should not do form.accepts -- crud.create will handle the form.accepts for you. Seehttp://web2py.com/book/default/chapter/07#CRUD. Anthony On Wednesday, September 7, 2011 4:29:24 PM UTC-4, Omi Chiba wrote: I'm creating a simple twitter like app for fun. To submit worked

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Omi Chiba
and look under Methods.      -Jim On 9/7/2011 3:51 PM, Omi Chiba wrote: Thank you, Anthony ! I still want to do redirect(URL()) if the entry is accepted. Can you explain what condition I should use instead of form.accepts in default.py ? It's necessary to refresh the list

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Omi Chiba
Wow ! On Sep 8, 7:55 am, DenesL denes1...@yahoo.ca wrote: Best kept secret... not anymore. Thanks to Massimo and all contributors.

[web2py] Re: deploying web2py on IIS

2011-09-08 Thread Omi Chiba
Remco, I'm another guy struggling with IIS. Following the Receipt 2 for ISAPI and I'm lost at 2.3.2. If possible, can you explain what I should do from here. So far, virtual directory ochibaapp (Renamed it from appname) is created under Default Web Site. I have setup junction for C:\w2p

[web2py] Re: deploying web2py on IIS

2011-09-08 Thread Omi Chiba
Any information is very helpful for me if there is any IIS users who successfully running web2py with this receipt 2 (ISAPI+WSGI). On Sep 8, 11:43 am, Omi Chiba ochib...@gmail.com wrote: Remco, I'm another guy struggling with IIS. Following the Receipt 2 for ISAPI and I'm lost at 2.3.2

[web2py] Re: deploying web2py on IIS

2011-09-09 Thread Omi Chiba
sherdim, Thank you so much for your reply To be honest, I cannot really understand routes even I read the book. I don't even know if I should copy the applications under web2py folder and/or where to ... Here's my directories: --- python:

[web2py] Suggestion: Input field alignment for decimal and integer

2011-09-13 Thread Omi Chiba
By default, all input field is aligned to left but we all know it should be aligned to right for numbers. We can add the following in the base.css to align them correctly. (Tested with IE and Chrome) Don't you guys think it's better to make this change on the base.css comes from web2py ?

[web2py] Re: Suggestion: Input field alignment for decimal and integer

2011-09-14 Thread Omi Chiba
I'm not float/double guy but yes, it make sense. With that, we can use this. input.decimal, input.integer, input.double { text-align: right; } I also understand the Anthony's point. My table actually has five decimal field for different pricing for the product, which look really weird

[web2py] Re: deploying web2py on IIS

2011-09-14 Thread Omi Chiba
sherdim, I checked all including your suggesion but it just didn't work. I keep getting HTTP Error 500. Windows event says Failed to import callback module 'ochibaapp' Have you successfully working on IIS 7.5 ? If not, I need to say there are maybe some compatible issue with isapi-wsgi module

[web2py] Re: Suggestion: Input field alignment for decimal and integer

2011-09-15 Thread Omi Chiba
Kenji san, The adjusting the length feature looks great ! : )

[web2py] Re: deploying web2py on IIS

2011-09-15 Thread Omi Chiba
I gave up... :'-( Start setting up Apache and it worked in one hour.

[web2py] Apache + mod_wsgi: Allow http access for application

2011-09-15 Thread Omi Chiba
I follow the official book Apache-and-mod_wsgihttp://www.web2py.com/book/default/chapter/11#Apache-and-mod_wsgi and successfully connected to Welcome app with https but I want to use http because my website is internal use and doesn't need https.

[web2py] Re: Apache + mod_wsgi: Allow http access for application

2011-09-15 Thread Omi Chiba
Ross, It works great, Thank you !!

[web2py] Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
I'm having a exactly the same problem with this. Just like Adam describe, I can connect mssql if I run web2py with rocket. Pyodbc error with web2py under Apache and mod_wsgi https://groups.google.com/forum/#!searchin/web2py/pyodbc$20apache/web2py/OAHfTqQnhvo/fCh-kPa5jrYJ I tried with two

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
Oh my god, I just gave up using IIS and now I need to give up my OS. You're probably correct because some people mention about windows binary file and they tried to build by themself. I hope someone share right binary file. Does it give more information about what object it's trying to call

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
just download the source and run that. I downloaded pyodbc-2.1.11.ziphttp://code.google.com/p/pyodbc/downloads/detail?name=pyodbc-2.1.11.zipcan=2q= and extracted. Can you explain how to run that ?

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
I just tried python setup.py install and it finished without any error, reboot apache, but I still see the same error. So, it's not binary but pyodbc itself doesn't support running under wsgi for windows ??

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
Ross, Yes, I can connect from console and web2py under rocket. It only fails to connect under wsgi on Apache. There are some post says it happens because it fails (cannot find) to import pyodbc and we can change Apache config to recognize the path just like environment setting on windows

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
This is my Traceback. (Changed id, password..etc to 'x') Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line 192, in restricted exec ccode in environment File C:/web2py/applications/Pricelist/models/db.py, line 8, in module db =

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
I see the lines when I run under rocket just like you did from console but not sure how to check what's happening under wsgi. Look like you're using windows. Are you able to connect mssql under wsgi ?? On 9月15日, 午後3:16, Willoughby neil.erik...@gmail.com wrote: That indicates to me that web2py

[web2py] Re: file locations once web2py is deployed on fluxflex

2011-09-15 Thread Omi Chiba
lan, You can select your project, go to setup - Git and try the one under How to use 1. Download the repository. Your application is under public_html - applications. https://lh5.googleusercontent.com/-pqfhVA-XLRg/TnJt4hQUmNI/AEU/wW3by0zSydg/git.PNG

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
Thank you both ! I really appreciate for your help!!! I will start looking for alternative like mod_proxy from tomorrow while we're waiting for super hero. On 9月15日, 午後4:38, Willoughby neil.erik...@gmail.com wrote: Sorry, I'm just starting out so I'm afraid that question is above my head at

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Omi Chiba
/2011/09/how-to-connect-db2-with-python-p...        Ovidio Marinho Falcao Neto              ovidio...@gmail.com                83   8826 9088 - Oi              83   9334 0266 - Claro                    Paraiba-Brasil 2011/9/15 Omi Chiba ochib...@gmail.com I'm having a exactly the same

[web2py] Re: file locations once web2py is deployed on fluxflex

2011-09-15 Thread Omi Chiba
For trouble shooting purpose, how about create new project, install web2py and do the git clone ? Like you said, I can access your site so it should download all the files with your command and I'm sure you're doing correct. There is something wrong with your project...

[web2py] Re: file locations once web2py is deployed on fluxflex

2011-09-16 Thread Omi Chiba
Ian, Yes, it prompt me to enter passphrase. I never used git before and I just follow the step by step guide on github. http://help.github.com/win-set-up-git/ On 9月15日, 午後8:04, monotasker scotti...@gmail.com wrote: Well, I tried a new test install in a separate project and I'm getting the

[web2py] selected on dropdown list

2011-09-19 Thread Omi Chiba
I have a dropdown list in the form. The value is generated from category table which has id and name field. After select the category and click submit, I want to selected the category we selected before submit (request.vars.category_name). I'm trying to use if statement but not sure what I'm

[web2py] Re: selected on dropdown list

2011-09-19 Thread Omi Chiba
Bruno, That was so quick !! I have one problem. category.id is int type but looks like request.vars.category_name is returned as string or something so this is not equal {{if category.id==request.vars.category_name:}} This works {{= selected='selected' if category.id==7 else }} I want to

[web2py] Re: selected on dropdown list

2011-09-19 Thread Omi Chiba
Oh, I figured out. I should convert category.id to string :) {{= selected='selected' if str(category.id)==request.vars.category_name else }} On 9月19日, 午後4:52, Omi Chiba ochib...@gmail.com wrote: Bruno, That was so quick !! I have one problem. category.id is int type but looks like

[web2py] Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
I have two drop down list. They have foreign key so they're parent-child structure. I want user to pick category from first list, which will execute onchange event to dynamically update second list. So far, I can confirm onchange event is working to return a string value by calling 'echo'

Re: [web2py] Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
That looks good too but I think all I need is to post 'model' or 'index' function. I'm not familiar with jQuery but something like this... http://api.jquery.com/jQuery.post/

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
Juan, I kind of understand what you suggested. OK, so I need to generate the html in controller and pass to view by XML(). I'm trying to get value for model.id in controller but I cannot do this same way on view (maybe because it's not dictionary object..?) Do you know how I can get the value ?

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
Wow! str(model.id) did the trick !! On Sep 21, 2:21 pm, juanduke juan.fu...@gmail.com wrote: Hi Omi: I think you must have a error in this line: result += option value=' + model.id + ' Just because you are trying to concat a String with a Long. And not because the model.id is wrong. Try

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
It's working !!! when it's loaded: https://lh6.googleusercontent.com/-JSEHs-9y3_s/TnpFeHkX1oI/AEk/_v9qypV6g6E/s400/Capture1.JPG After the item changed: https://lh6.googleusercontent.com/-uZWUWSnxT84/TnpFqggp3EI/AEo/1IDya_nZcOI/s400/Capture2.JPG After Submit:

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-21 Thread Omi Chiba
I got it !! It's working beautifully. select name='category_name' onchange=jQuery(model_name).remove();ajax('model', ['category_name'], 'target'); When the first list is selected, remove the second list rendered by view and dynamically create it from server side. On Sep 21, 3:57 pm, juanduke

[web2py] Re: Ubuntu and web2py

2011-09-21 Thread Omi Chiba
+1 to Richard. I did the one step deployment last Friday so I remember. On Sep 21, 5:12 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: I am pretty sure it is : Forbidden You don't have permission to access /init/appadmin on this server. -- Apache/2.2.14

[web2py] Show/hide different menu by membership role

2011-09-23 Thread Omi Chiba
For example, I have a following entry in my control for menus. I want VIP Only page only visible for the users who has role='vip' because the other user get rejected anyway and I don't need to hurt their feelings. Is this possible ? response.menu = [('Public', True, URL('index')),

[web2py] Re: Show/hide different menu by membership role

2011-09-23 Thread Omi Chiba
Oh I just found your post, you are too fast. Actually, I came up the following code and confirmed it works !! but yours looks more simple so I will try next Monday. Thank you ! response.menu = [('Public', True, URL('index')), ('Member Only', False, URL('member'))

[web2py] Re: Show/hide different menu by membership role

2011-09-23 Thread Omi Chiba
I couldn't wait for Monday. Yes, your code works !! On Sep 23, 5:16 pm, Omi Chiba ochib...@gmail.com wrote: Oh I just found your post, you are too fast. Actually, I came up the following code and confirmed it works !! but yours looks more simple so I will try next Monday. Thank you

[web2py] Re: Show/hide different menu by membership role

2011-09-23 Thread Omi Chiba
And also my code doesn't work when the user has multiple roles... Thank you for your help ! On Sep 23, 6:01 pm, Omi Chiba ochib...@gmail.com wrote: I couldn't wait for Monday. Yes, your code works !! On Sep 23, 5:16 pm, Omi Chiba ochib...@gmail.com wrote: Oh I just found your post

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-26 Thread Omi Chiba
I posted the sample app on fluxflex site. http://ochiba.fluxflex.com/Ajax_Cascading_Drop_Down/default/index On Sep 21, 5:14 pm, Omi Chiba ochib...@gmail.com wrote: I got it !! It's working beautifully. select name='category_name' onchange=jQuery(model_name).remove();ajax('model

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-27 Thread Omi Chiba
Thanks. I'm asking Massimo to upload it to appliances so you can download it from there. http://www.web2py.com/appliances I will update you when it's available. On Sep 27, 9:47 am, villas villa...@gmail.com wrote: Nice example,  thanks.   Maybe you could include the code on the example site

[web2py] Re: Cascading Drop Down Lists with Ajax

2011-09-27 Thread Omi Chiba
Massimo, villas Thank you for the suggestion. It's posted on web2pyslices.com. http://www.web2pyslices.com/slices/take_slice/144 On Sep 27, 11:08 am, villas villa...@gmail.com wrote: Thinking about it,  this kind of simple example should be in web2pyslices.com ?   I mean,  making a repository

[web2py] smartgrid: can we add field type class on th, td in web2py_table ?

2011-09-27 Thread Omi Chiba
I'm really impressed by the new smartgrid. It's really saving my time : ) The layout of table loos great but I want to align integer, decimal, double field to right for both th and td. To do that, can we assign field type class based on the field, then we can control it by css ?

[web2py] is web2py.com down ?

2011-09-27 Thread Omi Chiba
I cannot access it. maybe just me ?

[web2py] is web2py.com down ?

2011-09-27 Thread Omi Chiba
just me ?

[web2py] Re: is web2py.com down ?

2011-09-27 Thread Omi Chiba
Never mind. I can access now. On Sep 27, 2:52 pm, Omi Chiba ochib...@gmail.com wrote: just me ?

[web2py] Re: Fast CGI

2011-09-27 Thread Omi Chiba
I'm looking for the same solution because pyodbc have a connection issue nder wsgi on windows, and with wsgi on latest Ubuntu. http://code.google.com/p/pyodbc/issues/detail?id=169 Only hope to connect mssql is fastcgi. On Sep 27, 5:49 am, Web2Py Freak halna...@gardeniatelco.com wrote: windows

[web2py] SQLFORM.grid: Search only startswith

2011-09-27 Thread Omi Chiba
For example, I have a field which has 'abcab' and 'bcabc' data. If I provide 'ab' in the search box, I want to just pull the first one ('abcab') and exclude second one ('bcabc'). Can we do this ? models/db.py - db.define_table('Product', Field('Part_Number'))

[web2py] Re: smartgrid: can we add field type class on th, td in web2py_table ?

2011-09-28 Thread Omi Chiba
Martin, You know what ? it works ! On Sep 28, 7:33 am, Martín Mulone mulone.mar...@gmail.com wrote: I'm not sure if this work cause I didn't test it, but did you tried with represent?. something like this: db.mytable.price.represent = lambda price, row:

[web2py] smartgrid: currency format

2011-09-28 Thread Omi Chiba
Can we format 500.00 to $500.00 on smartgrid ?

[web2py] Re: smartgrid: currency format

2011-09-28 Thread Omi Chiba
) On Wed, Sep 28, 2011 at 4:48 PM, Omi Chiba ochib...@gmail.com wrote: Can we format 500.00 to $500.00 on smartgrid ? -- Massimiliano

[web2py] Re: smartgrid: currency format

2011-09-28 Thread Omi Chiba
db.Product.List_Price.represent = lambda value, row: XML(DIV(value,_style='text-align: right;')) On Sep 28, 10:37 am, Omi Chiba ochib...@gmail.com wrote: Wow ! This is what I want. Thanks !! On Sep 28, 9:53 am, Massimiliano mbelle...@gmail.com wrote: Is there a reason that you want to format

[web2py] Re: smartgrid: currency format

2011-09-28 Thread Omi Chiba
' object has no attribute 'hmac_key' On Sep 28, 10:48 am, Jim Steil j...@qlf.com wrote: untested db.Product.List_Price.represent = lambda value, row: XML(DIV('$ %.2f' % (0.0 if value == None else value),_style='text-align: right;')) On 9/28/2011 10:42 AM, Omi Chiba wrote: Um

[web2py] Re: smartgrid: currency format

2011-09-28 Thread Omi Chiba
)')) On Sep 28, 11:08 am, Jim Steil j...@qlf.com wrote: Can you post the relevant code from default.py?      -Jim On 9/28/2011 11:02 AM, Omi Chiba wrote: Jim, close but I got a following error. Traceback (most recent call last):    File /home/www-data/web2py/gluon/restricted.py

[web2py] Re: Fast CGI

2011-09-28 Thread Omi Chiba
or use autostart with the command above (including the paths):http://woof.magicsplat.com/isapi_scgi/autostart HTH mic 2011/9/27 Omi Chiba ochib...@gmail.com: I'm looking for the same solution because pyodbc have a connection issue nder wsgi on windows, and with wsgi on latest Ubuntu

[web2py] Re: smartgrid: currency format

2011-09-28 Thread Omi Chiba
, 2011 at 6:26 PM, Omi Chiba ochib...@gmail.com wrote: It's smartgrid so nothing really in default.py. just this one. def admin():    products = SQLFORM.grid(db.Product,deletable=False, paginate=10)    return dict(products = products) This is my table. db.define_table('Product

[web2py] Re: book version 3.1 online

2011-09-28 Thread Omi Chiba
Massimo, web2py Japan finished the tranlation for ver 3.0 at the following site. https://sites.google.com/site/web2pyjapan/book/01 Editing to (ja) is disabled now and we're kind of waiting. Now, I'm confused how we proceed it. What the best way to do the translation work ? 1. Wait for the 4th

[web2py] Re: book version 3.1 online

2011-09-28 Thread Omi Chiba
post it on web2py.com/book or you prefer I can simply link it. On Sep 28, 2:03 pm, Omi Chiba ochib...@gmail.com wrote: Massimo, web2py Japan finished the tranlation for ver 3.0 at the following site.https://sites.google.com/site/web2pyjapan/book/01 Editing to (ja) is disabled now

[web2py] Re: SQLFORM.grid: Search only startswith

2011-09-29 Thread Omi Chiba
Does anybody know where is the code so I can try customize it ? On Sep 27, 6:20 pm, Omi Chiba ochib...@gmail.com wrote: For example, I have a field which has 'abcab' and 'bcabc' data. If I provide 'ab' in the search box, I want to just pull the first one ('abcab') and exclude second one

[web2py] Re: SQLFORM.grid: Search only startswith

2011-09-30 Thread Omi Chiba
it is useful to someone else. On Sep 29, 3:32 pm, Omi Chiba ochib...@gmail.com wrote: Does anybody know where is the code so I can try customize it ? On Sep 27, 6:20 pm, Omi Chiba ochib...@gmail.com wrote: For example, I have a field which has 'abcab' and 'bcabc' data. If I

  1   2   3   4   >