[web2py] web2py and sqlite data out of sync

2016-01-16 Thread wwwgong
Hi, web2py experts: I encounter a strange issue where web2py fetches less data than what exists in sqlite database Here is a simple app to manage Chinese charactor # model: table def. db.define_table('wg_zi_shape' ,Field('zi','string',label=T('原字')) ,Field('z_upleft','string',label=T('左

[web2py] Re: ipython notebook and web2py

2016-01-08 Thread wwwgong
This integration is very useful, Thank you Anthony! On Friday, January 8, 2016 at 3:49:33 PM UTC-5, Ron Chatterjee wrote: > > This is great Anthony. For documenting code and standalone application. > Nice! > > On Friday, January 8, 2016 at 1:56:26 PM UTC-5, pepper_bg wrote: >> >> Sorry to resurre

Re: [web2py] Re: REF: Upload of Files

2013-03-23 Thread wwwgong
Thanks for sharing the solution, I did not know that quotes_file holds the file content On Friday, March 22, 2013 2:34:16 AM UTC-4, software.ted wrote: > > Ok great and thanks for all your help, the file is being saved and all > works as expected!!! code that works below: > > def index(): >

[web2py] Embed MP3 audio player in HTML via web2py

2013-03-21 Thread wwwgong
Check out my app at wwwgong.pythonanywhere.com/rpad I embed video mp3 and img I can share the code if interested -- --- 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 emai

Re: [web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-16 Thread wwwgong
I like web2py especially with the recent makeover. However, the web2py logo is kind of plain, why not add some colors to the letters? I am no artist, but attached a draft design. Obviously we need a cute snake cartoon. On Friday, March 15, 2013 10:31:30 PM UTC-4, Richard wrote: > > Here what co

[web2py] Field('upload') : problem with file name

2013-03-16 Thread wwwgong
You forgot to create the uploadfolder -- --- 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://

[web2py] smartgrid showing values from cascading foreign tables.

2013-03-10 Thread wwwgong
Don't think smartgrid can do that, try to use grid by passing the query joining 4 tables -- --- 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..

[web2py] Re: Tip of the day... ajax buttons in grid

2013-03-08 Thread wwwgong
can you explain what triggers view refresh after thing.update_record(active=not thing.active) On Thursday, March 7, 2013 5:09:01 PM UTC-5, wwwgong wrote: > > I am using v2.4.2 on win7, tried both chrome and firefox, same issue, I > have to do a refresh to see Active field checked/

[web2py] Re: Book 5th edition out

2013-03-07 Thread wwwgong
lod wrote: > > Sorry, but I didn't get what you need : are you saying that you'd need the > same thing, e.g., for the spanish version ? > Are you basing your translation on a translation of the original ? > e.g. english --> spanish --> japanese > > On Thursday,

[web2py] Re: Tip of the day... ajax buttons in grid

2013-03-07 Thread wwwgong
I am using v2.4.2 on win7, tried both chrome and firefox, same issue, I have to do a refresh to see Active field checked/unchecked On Thursday, March 7, 2013 4:54:45 PM UTC-5, Massimo Di Pierro wrote: > > It should update it. it does for me. > > On Thursday, 7 March 2013 15:43:08 UT

[web2py] Re: Tip of the day... ajax buttons in grid

2013-03-07 Thread wwwgong
Thanks for the tip, I noticed that the checkbox is not updated after clicking on/off button. how to make active field refresh automatically On Wednesday, March 6, 2013 9:09:41 PM UTC-5, Massimo Di Pierro wrote: > > Do you know you can do this? > > > db.define_table('thing',Field('name'),Field('ac

[web2py] Re: Book 5th edition out

2013-03-07 Thread wwwgong
Thanks, your little app may be customized for translation, where to see the source code? On Wednesday, March 6, 2013 7:27:34 PM UTC-5, Alan Etkin wrote: > > kindly hosted by github. http://niphlod.github.com/diffbook/ >> > > Many thanks! > > -- --- You received this message because you are s

[web2py] Re: Book 5th edition out

2013-03-07 Thread wwwgong
I tried "Table Inheritance" feature, it works like a charm. THANK YOU SO MUCH! On Tuesday, March 5, 2013 3:48:38 PM UTC-5, mdipierro wrote: > > The fifth edition of the book is out! > > in HTML: > > http://web2py.com/book > > in PDF: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manu

[web2py] Re: web2py is moving

2013-03-03 Thread wwwgong
web2py is unavail because 502 Bad Gateway -- nginx/1.2.6 On Thursday, February 28, 2013 6:40:22 PM UTC-5, Massimo Di Pierro wrote: > > web2py.com is moving to pythonanywhere.com. There may be disruptions but > we hope not. > > -- --- You received this message becaus

[web2py] Re: web2py is moving

2013-03-03 Thread wwwgong
packaged my local copy at http://dl.dropbox.com/u/54552252/web2py.app.w2p_book.w2p in case you want to import it On Sunday, March 3, 2013 8:57:17 AM UTC-5, Niphlod wrote: > > download the > zip, > decompress in applications/, choose a

[web2py] Re: The Great Web Framework Shootout

2013-03-03 Thread wwwgong
Please share the benchmark results when avail -- --- 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] Re: web2py is moving

2013-03-02 Thread wwwgong
I installed 3 languages (ENU, CHN DEU) locally, total size = 30MB so it is about 10MB/per lang On Saturday, March 2, 2013 11:53:07 PM UTC-5, wwwgong wrote: > > If you choose 1 lang, the size is much smaller > > On Saturday, March 2, 2013 11:01:27 PM UTC-5, LightDot wrote: >>

[web2py] Re: web2py is moving

2013-03-02 Thread wwwgong
If you choose 1 lang, the size is much smaller On Saturday, March 2, 2013 11:01:27 PM UTC-5, LightDot wrote: > > The book is too big to be included in every download, IMHO, it's about 120 > MB or so. > > The link... well, github -> search -> web2py book ;) > > Regards, > Ales > > On Sunday, March

[web2py] Re: I need a double entry accounting software ....

2013-02-23 Thread wwwgong
I have CRM background, very interested in ERPLibre especially using web2py. Thanks for sharing On Saturday, February 23, 2013 5:24:51 PM UTC-5, Massimo Di Pierro wrote: > > I had not seen this before. ERPLibre is impressive! > > Massimo > > On Saturday, 23 February 2013 12:58:35 UTC-6, Alan Etkin

[web2py] smartgrid breadcrums not displaying Id when details=False

2013-02-22 Thread wwwgong
found from sqlhtml.py that smartgrid breadcrums displays Row Id only if details=True: if kwargs.get('details', True): breadcrumbs.append( LI(A(name, _class=trap_class(), _href=url(args=['view',

Re: [web2py] Re: smartgrid fails to show consistent behavior between parent and child tables

2013-02-22 Thread wwwgong
the source has all the > answers. Also, I've found this group to be extremely helpful whenever you > have questions... > > -Jim > > > On Fri, Feb 22, 2013 at 10:49 AM, wwwgong > > wrote: > >> yes, that is a better solution and works! >> >> on

Re: [web2py] Re: smartgrid fails to show consistent behavior between parent and child tables

2013-02-22 Thread wwwgong
: > > Then you could put the code in your model. Would be global then > On Feb 22, 2013 9:04 AM, "wwwgong" > > wrote: > >> Jim >> Thanks, Your suggestion worked. >> It would be nice if one does not have to duplicate the code, any idea how >> pa

[web2py] Re: smartgrid fails to show consistent behavior between parent and child tables

2013-02-22 Thread wwwgong
: A(url,_href=url) > > into your list_organizations method. I don't believe your list_people > method isn't utilized in the screen shots provided. > > -Jim > > > On Thursday, February 21, 2013 5:23:27 PM UTC-6, wwwgong wrote: >> >> using web2py v2

Re: [web2py] Re: Sort order for related table grids in SQLFORM.smartgrid

2013-02-19 Thread wwwgong
Smartgrid is nice, but not well documented, how can we improve this? On Thursday, December 22, 2011 1:23:04 PM UTC-5, Adi wrote: > > *+1* > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving

[web2py] Is web2py.com down today?

2013-02-17 Thread wwwgong
cannot access web2py.com today, any clue? -- --- 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 http

Re: [web2py] field of password type is displayed as cleartext in smartgrid form

2013-02-16 Thread wwwgong
Got it, Thx -- --- 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.google.com/groups/o

Re: [web2py] ipython is your friend!

2013-02-15 Thread wwwgong
I like IPython On Sunday, February 10, 2013 6:20:30 AM UTC-5, Ramos wrote: > > +1 for a VIDEO of this... > > 2013/2/9 JimK > > >> One of the nice things about python modules that are not c-compiled is >> the fact that you can read the source code. The bad part is that the >> source code is not

[web2py] field of password type is displayed as cleartext in smartgrid form

2013-02-15 Thread wwwgong
Hi, I am using web2py v2.3.2 and see that field of password type is displayed as cleartext in smartgrid form (screenshot is attached). Is this design behavior or a bug? but password is hidden in edit view -- --- You received this message because you are subscribed to the Google Groups "web2py

[web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-02-02 Thread wwwgong
Massimo, Do you plan to add a section to briefly highlight the major revisions when the new edition of web2py book comes online? Thanks, Wen On Sunday, January 20, 2013 6:52:02 PM UTC-5, Massimo Di Pierro wrote: > > I am looking for help proofreading the final version of the book. It is > almost

[web2py] Re: auth.wiki deployment issue

2013-01-12 Thread wwwgong
the group name shipped with 2.3.2 is 'wiki_editor', I changed it to 'wiki-editor' I also add 'wiki-author' and assign both to myself. Now I can add page and media --

[web2py] Re: auth.wiki deployment issue

2013-01-12 Thread wwwgong
Hi, Alan, following your recipe: http://www.web2pyslices.com/slice/show/1565/wikifying-web2py-apps I got '401 UNAUTHORIZED' when accessing /mywiki/default/wiki/_editmedia/index I am using 2.3.2 stable on localhost, tried the same at pythonanywhere.com same error --

[web2py] Re: wiki now partially documented

2013-01-12 Thread wwwgong
Thanks for auth.wiki doc --

Re: [web2py] how to cleanse field value

2012-12-22 Thread wwwgong
,'_'), None) > > Field(..., requires=MyValidator()...) > > On Wednesday, 19 December 2012 16:54:21 UTC-6, wwwgong wrote: >> >> I thought validator only validates, can you show me how to update field >> with the sanitized value. >> Thanks, >> >&

Re: [web2py][outsource] Need a plugin that integrate jsTree or other tree plugin with closure table app

2012-12-21 Thread wwwgong
I am interested in tree widget too, have you evaluated 1) http://dev.s-cubism.com/plugin_jstree 2) http://dev.s-cubism.com/plugin_mptt which is based on Nested Set W On Thursday, September 20, 2012 3:21:14 PM UTC-4, Richard wrote: > > 1) > Users are defining information into simple form where i

Re: [web2py] how to cleanse field value

2012-12-19 Thread wwwgong
I thought validator only validates, can you show me how to update field with the sanitized value. Thanks, On Wednesday, December 19, 2012 9:57:48 AM UTC-5, viniciusban wrote: > > Try a custom validator to sanitize your description field. > > > On Wed, Dec 19, 2012 at 12

[web2py] how to cleanse field value

2012-12-19 Thread wwwgong
Hi, I like to store youtube videos into a table: db.define_table('youtube', Field('code'), Field('description') ) def youtube_repr(code,width=400,height=250): return XML(""" http://www.youtube.com/v/%(code)s&hl=en_US&fs=1&"> http:/

Re: [web2py] raspberry pi

2012-12-17 Thread wwwgong
Now I see it in the source release. Thanks, On Sunday, December 16, 2012 10:02:53 PM UTC-5, Massimo Di Pierro wrote: > > anyserver.py ships with web2py in the main folder. Run it with -h for > info. ;-) > > On Sunday, 16 December 2012 16:57:12 UTC-6, wwwgong wrote: >> >&

[web2py] Re: fail to use web2py in IPython Notebook

2012-12-17 Thread wwwgong
; > Massimo > > > > On Sunday, 16 December 2012 18:35:06 UTC-6, wwwgong wrote: >> >> I have watched video at https://vimeo.com/21185623 and try to use web2py >> inside IPython Notebook, but run

[web2py] fail to use web2py in IPython Notebook

2012-12-16 Thread wwwgong
I have watched video at https://vimeo.com/21185623 and try to use web2py inside IPython Notebook, but run into the following error: form = SQLFORM(db.ipynotebooks) ---AttributeError Traceback (mo

Re: [web2py] raspberry pi

2012-12-16 Thread wwwgong
one. > > On Friday, 14 December 2012 20:44:48 UTC-6, wwwgong wrote: >> >> yes, I bought a 512MB Raspberry Pi for $35 as a gift to my kid 2 weeks >> ago. >> >> In less than 5 mins, I am able to run web2py (v2.3.1) on this tiny and >> cheap platform. >

Re: [web2py] raspberry pi

2012-12-14 Thread wwwgong
yes, I bought a 512MB Raspberry Pi for $35 as a gift to my kid 2 weeks ago. In less than 5 mins, I am able to run web2py (v2.3.1) on this tiny and cheap platform. installed 2 of my apps, they run a bit slow, but smoothly without error. Web2py + Python + RaspberryPi is a cool toy. I am going to

[web2py] Issue 1211: form.process input parameter keepvalues=True not working

2012-12-10 Thread wwwgong
I just raised Issue 1211 with more details. In short, keepvalues=True input seems to be ignored when used with onvalidation. but form.process(keepvalues=True) is ok. Thanks, Wen def insert_numbers(): form = SQLFORM(db.numbers) if form.process(keepvalues=True,onvalidation=my_form_processin

[web2py] how to pre-default an upload field type

2012-11-25 Thread wwwgong
Hi, I like to build a small web2py app to manage documents on my computer. e.g. db.define_table('docs', Field('filename'), Field('filetype'), Field('category'), Field('description'), Field('filepath','upload') ); If I like to create a new document,e.g. 'test.doc', how can web

Re: [web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread wwwgong
Thanks for sharing your web site. I am interested in using it to teach Chinese. It would be good if you can post a youtube video on how to your site. Wen On Friday, August 31, 2012 8:52:01 AM UTC-4, Alexei Vinidiktov wrote: > > That would be great! :) > > On Fri, Aug 31, 2012 at 3:04 AM, Massi

[web2py] Re: web2py 2.0.5 is out

2012-08-31 Thread wwwgong
Congratulations and Many Thanks! The new web2py is my best birthday gift. Cheers! On Friday, August 31, 2012 5:59:43 PM UTC-4, Massimo Di Pierro wrote: > > web2py 2.0.5 is out. > All known backward compatibility issues should be fixed but continue > testing... thank you for your patience. > > m

[web2py] Re: HersPOS - New Version released 0.03 Web2py + Qooxdoo POS

2011-11-01 Thread wwwgong
gt; after adapted to it ., main thing is you can really forget about HTML > and CSS , jquery , jquery-ui , all other hack and slash libraries. > > Thanks a lot for trying HersPOS and please enjoy studying , modifying > it to your needs. > > On 11/1/11, wwwgong wrote: > > > &g

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-31 Thread wwwgong
I installed your pkg locally and run it in chrome, performance is very good On Oct 23, 8:48 am, Phyo Arkar wrote: > Hello Massimo! > > the demo is now avaliable at : > > http://herspos.appspot.com/HersPOS > > On GAE tho , joining tables not working so the main table , Sales > table having error w

[web2py] Re: HersPOS - New Version released 0.03 Web2py + Qooxdoo POS

2011-10-31 Thread wwwgong
I installed it locally, gave app name=herspos, it worked It is great learning stuff for a newbie like me. I am able to do the following: 1) browse the Date tree, sales are filtered by date 2) add sales on 'Sales' tab 3) add product item on 'Item' tab 4) I used sqlite db 5) delete some sales using

[web2py] Re: Web2py MVC and Qooxdoo

2011-10-31 Thread wwwgong
Phyo, I have downloaded your app at http://code.google.com/p/herspos/ Thanks a lot for sharing and will provide you with feedback after trying it out Wen

[web2py] Re: JSONDecodeError: No JSON object could be decoded

2011-10-31 Thread wwwgong
t;, "id": 2121494614, "result": 3}' 3 In a nutshell: web2py is simply cool ! Wen On Oct 31, 12:05 am, Jonathan Lundell wrote: > On Oct 30, 2011, at 9:00 PM, wwwgong wrote: > > > ok, do you know a javascript client example? Thanks, > > Not

[web2py] Re: JSONDecodeError: No JSON object could be decoded

2011-10-30 Thread wwwgong
ok, do you know a javascript client example? Thanks, On Oct 30, 12:42 am, Jonathan Lundell wrote: > On Oct 29, 2011, at 9:36 PM, wwwgong wrote: > > > > > > > > > > > Hi, > > add 2 functinos in myapp/controller/default.py > > >

[web2py] JSONDecodeError: No JSON object could be decoded

2011-10-29 Thread wwwgong
Hi, add 2 functinos in myapp/controller/default.py @service.run def concat(a,b): return a+b @service.jsonrpc def concat2(a,b): return a+b test them using browser 1) http://127.0.0.1:8000/myapp/default/call/run/concat?a=hello&b=world --> return 'helloworld' 2) http://127.0.0.1:8000/myapp

[web2py] Re: Web2py MVC and Qooxdoo

2011-10-18 Thread wwwgong
Hi Phyo, I have exactly the same question as yours when you first started this thread 1 month ago. can you share your working sample with qooxdoo and web2py integration? I am interested in using Qooxdoo for custom UI in front of web2py. Thanks, Wen my email=wen.g.g...@gmail.com On Sep 19, 3:31 pm

[web2py] Re: web2ruby possible?

2011-10-12 Thread wwwgong
Vote for node.js On Sep 11, 5:40 pm, "dustin.b" wrote: > 1+ vote for node.js ;) > > On 11 Sep., 21:14, David Marko wrote: > > > > > Or to node.js :-)

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

2011-09-16 Thread wwwgong
Interesting to read. you should watch a new documentary 'Forks over Knives' (http:// www.forksoverknives.com/) because we want you to live longer and keep web2py going. By the way, I am introducing web2py to 11 year old kids in my python class. Hope more people to introduce this cool stuff to kid

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

2011-09-07 Thread wwwgong
Congratulations! more details from here: http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0¤t=10&last=1#slideshowTop