[web2py] Running DAL oustide web2py
Hi all, there is a simple way to run DAL oustide web2py? I need to write a script to access to the DB using the web2py model, something like import myappmodel import DAL [...otherstuff...] db = DAL('sqlite://storage.sqlite') etc etc Where can I find an example? Thank you! -- Software Architect / Team Leader http://Gioorgi.com -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Mercurial or Bazaar?
hi all, I have seen there are two web2pty repositories: one based on mercurial and one based on bazaar. Which is the official one? By the way, I have tried both revision control system... I am sticking on mercurial because it seems more popular. I got a very bad feeling with subversion, and I give it up in favor of the distributed version control mantra; what are your... preferences? :) -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] [Interview] Where do you use web2py?
Hi all, in the attempt to better knowing web2py and its community, I'd like to write some entry on my blog (gioorgi.com). I want to do a useful work for the community itself. This day I'd like to focus myself on the question: for which projects do you use web2py? I have seen the master project open sourced in the last few days posted by Asefa Debebe on 7th March (titled 'Relase of the first HL7 based on web2py framework', demo at http://web2py.com/HLv3). So, how you are using web2py? For instance, do you prefer form-entry based application (data entry, CRM,etc) or community based one (like CMS, Facebook clone etc)? ciao ciao! -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Rendering one-to many as a select combo box?
Hi all, I have a simple one-to many relation between two tables. When I use the admin interface the foreign key is rendered as a textbox. I'd like to render it with a combo box (select tag). There is a simple way to do it? I have tried to use the widget property of the Field object, without much success. Can someone point me to an example? This is the code and the last line is wrong (I get an error): db.define_table('category',Field('name','string')) db.define_table('note', Field('description','string'), Field('created_on','date'), Field('category',db.category)) db.note.category.widget=SQLFORM.widgets.multiple.widget -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Introducing myself: Giovanni Giorgi
Hi all, I am new to web2py, so I will introduce shortly myself. My name is Giovanni Giorgi, I am a 35-years old Senior Consultant. I live in Milan, in Italy. I got a master degree on Information Technology on 2000, I have worked as Software Architect for financial institutions (like Unicredit Bank, DeutscheBank etc). On my day-by-day work I use the Java Programming language, but I like a lot explore different approaches. I have used django python 0.9x for developing two web sites. Anyway after leaving the project alone for a while, I find very difficult to learn back the django framework. So I am trying to use web2py for prototyping my ideas. I have written two small blog entries: http://gioorgi.com/2010/web2py-absolute-trouble-shooter/ http://gioorgi.com/2009/web2py/ The web2py approach is very promising in my own opinion, and I will keep following the mailing list in the future. My free time is very limited but I will try to contribute to the web2py community, as I have done on other open source project like Squeak Smalltalk. So, nice to meet you :) -- Giovanni Giorgi Solution Architect Team Leader http://gioorgi.com/ -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Pdf version of the web2py manual?
Hi all, where can I find a Pdf version of the web2py manual? Bye -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
Re: [web2py] Re: wordpress
Hi, I am working on a first version and it is easy to code after you have understood the css. I will post to the list a first preview in the w.e. On Thu, March 4, 2010 02:02, mdipierro wrote: The nice thing about wordpress is that it is color neutral and it doed almost everything with CSS not images. They have a few images like this for example: http://s0.wp.com/wp-admin/images/gray-grad.png and they they have tabs like div id=someblock class=rounded closed div class=handlediv title=Click to toggle br/ /div h3 class=handlespanTitle/span/h3 div class=inside /div /div all the effect logic for all someblocks can be handled by one very simple JS // start with all closed blocks jQuery(document).ready(function(){jQuery('.inside').hide();}); // slide-toggle when clicking on the handles jQuery('handlediv, h3.handle').click(function() {jQuery(this).parent().child('inside').slideToggle();}); the rounded corner are handled via CSS style .rounded { -moz-border-radius-bottomleft:6px; -moz-border-radius-bottomright:6px; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; width: 80%; border: 1px solid #33; } h3 { background:#DFDFDF url(images/gray-grad.png) repeat-x scroll left top; text-shadow:0 1px 0 #FF; width: 100%; } /style Notice that when the .inside is closed the H3 has 4 rounded corners. When the .inside is open the H3 has top rounded corners and and the border of .rounded someblock has bottom rounded corners too, which is a cool effect. It should be possible to apply the same logic to all admin views. There is not really much more than that except for the top menu (which web2py needs) and the left accordion menu (which web2py admin does not need). I am not saying this is easy. It takes time, understanding of CSS and an artistic eye. Massimo On Mar 3, 5:57 pm, Richard richar...@gmail.com wrote: that would be great! There was an OSX admin style posted here some time back but can't find it right now ... Richard On Mar 4, 3:07 am, Giovanni Giorgi j...@objectsroot.com wrote: I am working on an application and I need to change the CSS. I can grab the Wordpress CSS and adapt it... :) After I finished the work, how do you like to send you the changes? On Wed, March 3, 2010 17:04, mdipierro wrote: I really like the look and feel of the management interface of wordpress (white/black/gray with rounder corner and js effects/menu). It would be nice to use their CSS and images in web2py admin. What do you think? Any volunteers to work on it? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en. -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en. -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Web2Py Book application
Hi all, I am new to web2py, even if I am following it from time to time (http://gioorgi.com/2009/web2py/) I have seen the Book application used for the web2py book http://web2py.com/book/ Where Is it possible to download the source of this application? I'd like to study it for learning web2py... Thank you! -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
Re: [web2py] wordpress
I am working on an application and I need to change the CSS. I can grab the Wordpress CSS and adapt it... :) After I finished the work, how do you like to send you the changes? On Wed, March 3, 2010 17:04, mdipierro wrote: I really like the look and feel of the management interface of wordpress (white/black/gray with rounder corner and js effects/menu). It would be nice to use their CSS and images in web2py admin. What do you think? Any volunteers to work on it? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en. -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
Re: [web2py] Re: wordpress
I will start doing some tests on a demo app, then I will send it to you when ready. I plan to work on it on the weekend. Because Wordpress CSS is quite complex I will start with a prototype. Ciao ciao :) On Wed, March 3, 2010 17:27, mdipierro wrote: You should be able to do this by just changing the views, css and static files in web2py admin. You can just zip the admin folder and I will check for differences. On Mar 3, 10:07 am, Giovanni Giorgi j...@objectsroot.com wrote: I am working on an application and I need to change the CSS. I can grab the Wordpress CSS and adapt it... :) After I finished the work, how do you like to send you the changes? On Wed, March 3, 2010 17:04, mdipierro wrote: I really like the look and feel of the management interface of wordpress (white/black/gray with rounder corner and js effects/menu). It would be nice to use their CSS and images in web2py admin. What do you think? Any volunteers to work on it? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en. -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en. -- Team Leader Gioorgi.com Chief Editor -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:14892] Small problem with bookreviews
Hi, I am new to the list. I know django and python, and I'd like to try web2py. After downloading bookreviews on my winxp, I tried it (I am using sqlite db only). I get stucked because of this error: Traceback (most recent call last): File c:\giorgi\ordev\web2py\gluon\restricted.py, line 62, in restricted exec ccode in environment File C:\giorgi\ordev\web2py\applications\bookreviews/views/blog/ show.html, line 53, in module /table File c:\giorgi\ordev\web2py\gluon\sql.py, line 1390, in __iter__ yield self[i] File c:\giorgi\ordev\web2py\gluon\sql.py, line 1354, in __getitem__ row[tablename][fieldname]=base64.b64decode(str(value)) File C:\Python25\lib\base64.py, line 76, in b64decode raise TypeError(msg) TypeError: Incorrect padding The db is empty right now. How can I fix it? Thank you! -- Team Leader Gioorgi.com Chief Editor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---