Would someone please point me to a web shop site implemented using web2py? Thanks in advance. --- Ron K. Jeffries http://ronkjeffries.posterous.com
On Sat, Apr 17, 2010 at 08:33, <web2py+nore...@googlegroups.com> wrote: > Today's Topic Summary > > Group: http://groups.google.com/group/web2py/topics > > error compiling app [1 Update] > compiling apps and reporting errors [1 Update] > nightly built [7 Updates] > Jquery Modal with values from [1 Update] > How to return the resources? [3 Updates] > NameError: global name 'formstyle' is not defined [1 Update] > _href and src url not rendered [3 Updates] > options.py problem [1 Update] > web2conf for FLISOL installfest [2 Updates] > web2py on IDE [2 Updates] > web2py on Kodingen? [1 Update] > Presentation of web2py [2 Updates] > > Topic: error compiling app > > Jonathan Lundell <jlund...@pobox.com> Apr 17 08:23AM -0700 ^ > > On Apr 16, 2010, at 6:47 PM, mdipierro wrote: > >> reponse.layout}} instead. I tried and both work for me (unless the app >> is bytecode compiled). If the app is bytecode compiled dynamical >> extend and imports are not supported. > > That sounds like what I'm seeing. The failure (traceback below) happens > during the compile itself. > > The exception is raised during the eval in parse_template: > > # check whether it extends a layout > while 1: > match = re_extend.search(text) > if not match: > break > t = os.path.join(path, eval(match.group('name'), context)) > try: > fp = open(t, 'rb') > > > Perhaps the eval should be in a try, to make the error reporting a little > more explicit? Otherwise it's a little confusing for code that works > normally to crash a compile. > > > > > Topic: compiling apps and reporting errors > > Jonathan Lundell <jlund...@pobox.com> Apr 17 08:17AM -0700 ^ > > On Apr 16, 2010, at 6:39 PM, mdipierro wrote: > >> I think I fixed it in trunk, please let check it. > > It looks right. I'll try to make a test case. > > Two minor things. You added ", e" to the except clause, but e appears to be > unused. Is there a reason for it? > > Second, while it makes no difference to the logic, I'd return None instead > of False in the normal case, for aesthetic reasons. > > > > > Topic: nightly built > > mdipierro <mdipie...@cs.depaul.edu> Apr 16 10:17PM -0700 ^ > > Please check it: > > http://web2py.com/examples/static/nightly/web2py_src.zip > http://web2py.com/examples/static/nightly/web2py_win.zip > http://web2py.com/examples/static/nightly/web2py_osx.zip > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > mdipierro <mdipie...@cs.depaul.edu> Apr 16 10:40PM -0700 ^ > > Replaced CherryPy with Rocket web server, thanks Tim > CacheOnDisk allows to specify a folder > IS_DATE/DATETIME can handle any year since 0 > Field().with_alias, thanks Nathan and Mengu > has_membership(group=...,role=...), thank Jonathan > db.define_table(username=True), thanks Jonathan > gluon.tools.prettydate > can specify hostname in routes_out (same syntax as routes in), thanks > Martin > db.table.bulk_insert([...records...]) now works on GAE, thanks Jon > IS_EMAIL validates on 'localhost', thanks Jonathan > welcome/views/layout.html uses ez.css, thanks Yarko > mail attachments support utf8, thanks szimszon > works with PyPy, thanks Joe > better Firebird support, thanks Jose > better Oracle support, thanks Gabriele > cron supports days of week > SQLFORM(...,formstyle="table3cols") or "table2cols" or "divs" or "ul" > crud.settings.formstyle > web2py.py -f folder allows to specify locations of applications, > thanks Iceberg > better/faster regex in template works in Jython > fixed lots of small bugs > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > Jason Brower <encomp...@gmail.com> Apr 17 09:54AM +0300 ^ > > Woah nelly. These are cool features! > br, > Jason > On Fri, 2010-04-16 at 22:40 -0700, mdipierro wrote: > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > DenesL <denes1...@yahoo.ca> Apr 17 04:49AM -0700 ^ > > Indeed, thanks fly off to all involved. > The readme says 1.77.1, but no official announce? > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > Yarko Tymciurak <resultsinsoftw...@gmail.com> Apr 17 07:24AM -0700 ^ > >> Indeed, thanks fly off to all involved. >> The readme says 1.77.1, but no official announce? > > More importantly: there README says 1.77.1, but: > - The VERSION file doesn't; > - There was no action: hg tag "1.77.1" > (I can tell from the .hgtags file) > > Just a reminder. > > - Yarko > > > > > > Yarko Tymciurak <resultsinsoftw...@gmail.com> Apr 17 07:28AM -0700 ^ > > On Apr 17, 9:24 am, Yarko Tymciurak <resultsinsoftw...@gmail.com> > wrote: >> - There was no action: hg tag "1.77.1" >> (I can tell from the .hgtags file) > >> Just a reminder. > > ... .a reminder, also, to try this build, and report any problems > > > > mdipierro <mdipie...@cs.depaul.edu> Apr 17 07:45AM -0700 ^ > > I have not tagged it because this is not 1.77.1 yet. The reade shows > what 1.77.1 will show. > > Massimo > > On Apr 17, 9:28 am, Yarko Tymciurak <resultsinsoftw...@gmail.com> > wrote: > > > > Topic: Jquery Modal with values from > > ChrisM <cjjmur...@gmail.com> Apr 17 04:03AM -0700 ^ > > Hi, > I have web2py return a selection from a controller function i.e. > return dict(beats=beats) > which I am iterating on a page using: > > I have a jquery Modal dialog which is shown after this click function > for each "b": > {{for b in beats:}} > $('#msemp_{{=b.uuid}}').click(function() { > $('#dialog_{{=b.uuid}}').dialog({"autoOpen": "false", "width": > "600px"}); > $('#dialog_{{=b.uuid}}').dialog('open'); > {{pass}} > > then in body: > > {{for b in beats:}} > <div>somestuff<div class="msemp_{{=b.uuid}}"></div></div> > {{pass}} > > > I have in the jquery modal dialog form using the slider widget. > > <div id="dialog_{{=b.uuid}}" style="display: none;" title="Send > Empathy To This Person"> > {{def give_emp(val): > return DIV( > form.custom.begin, > DIV(form.custom.widget.q), > DIV(form.custom.submit), > form.custom.end > ) > pass > }} > {{=give_emp()}} > <p style="color:white;">just to test uuid value: {{=b.uuid}}</p> > <p style="color:white;">just to test user_id value: {{=b.user_id}}</ > p> > </div> > > > I want to be able to pass values from b.??? (ie. b.user_id) to the > jquery modal dialog. > > I have tried web2py ajax function using a callback function from > controller but I couldn't get it working and also maybe this would > involve too many server requests (GAE?). > > I have also tried callback functions in jquery but couldn't get it to > work. > > Maybe there is a simpler approach? > > Any help /ideas most appreciated. > > ChrisM > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > Topic: How to return the resources? > > aabelyakov <aabelya...@gmail.com> Apr 17 01:46AM -0700 ^ > > Yes, this is the right decision! > Topic closed. > Thanks > > > > > Jason Brower <encomp...@gmail.com> Apr 17 12:07PM +0300 ^ > > To add to the closed topic. (: > Massimo and I worked over this with PySerial and yeah, having a separate > program to manage the serial connection is actually VITAL. Especially > if your making devices that send important other data. Have that > external app just update a file in queue with information, and when you > need it displayed in the webbrowser you can just make a request for the > status from that file. > This is similar to the issues found in a webcam. You don't make the web > application take a picture of a file when a webpage requests it as it > would pile full of requests and errors as everyone is trying to use the > same device. With a file, like an image, everyone should have access to > it very easily. > In my setup I was dealing with industrial robots, some logic had to be > done faster than the webbrowser could do it. So having a "machine > server" as we call it at work, helps take care of those common logic > steps so that web2py doesn't worry about it. > BR, > Jason Brower > > On Sat, 2010-04-17 at 01:46 -0700, aabelyakov wrote: > > > > aabelyakov <aabelya...@gmail.com> Apr 17 02:22AM -0700 ^ > > Jason, thank you for the important addition... > > > > > Topic: NameError: global name 'formstyle' is not defined > > aabelyakov <aabelya...@gmail.com> Apr 17 01:56AM -0700 ^ > > I re-downloaded a working copy of trunk > from https://web2py.googlecode.com/hg/. > > Error disappeared. > Topic closed. > Thanks > > > > > Topic: _href and src url not rendered > > annet <annet.verm...@gmail.com> Apr 17 12:52AM -0700 ^ > > In the view of a html mail function I have got the following A-helper > and img tag: > > <td class="browserversion" align="left"> > <p>Having trouble viewing this email? {{=A('View it in your browser', > _href=URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}</p> > </td> > > > <td class="header" align="left"> > <img src="{{=URL(r=request,c='static',f='template/header.jpg')}}" > alt="Header" width="600" height="192" /> > </td> > > > When I expose the function both locally and on the server the _href > and src attributes aren't rendered, i.e. when I open the mail in a > mail client or for example roundcube web mail the attributes just > aren't there: > > > <td class="browserversion" align="left"> > <p>Having trouble viewing this email? <a>View it in your browser</a></ > p> > </td> > > <td class="header" align="left"> > <img alt="Header" width="600" height="192" > > </td> > > > Does one of you know why, and how to solve this problem? > > > Kind regards, > > Annet. > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > annet <annet.verm...@gmail.com> Apr 17 01:12AM -0700 ^ > > Maybe the following information is of help to help me solve the > problem. The mail function reads like: > > > def send_mail(): > mailinglist=db((db.bedrijfcontactpersoon.bedrijf==db.bedrijf.id)&(db.bedrijfcontactpersoon.bedrijf==db.bedrijfinschrijving.bedrijf)& > \ > > (db.bedrijfcontactpersoon.contactpersoon==db.contactpersoon.id)&(db.bedrijfinschrijving.inschrijving==2)& > \ > (db.contactpersoon.subscription==True))\ > .select(db.bedrijf.bedrijfsnaam,db.bedrijfcontactpersoon.bedrijf,db.contactpersoon.id,db.contactpersoon.email, > \ > orderby=db.bedrijfcontactpersoon.bedrijf) > for item in mailinglist: > context=dict(item=item) > message=response.render('clublocatormail/ > send_mail.html',context) > recipient=item.contactpersoon.email > boolean=mail.send(to=[recipient],subject='Bedrijfsgegevens ' + > item.bedrijf.bedrijfsnaam + ' in Fitwise',message=[None,message]) > if boolean: > > db.mailing_stats.insert(bedrijf=item.bedrijfcontactpersoon.bedrijf,contactpersoon=item.contactpersoon.id, > \ > controller='clublocatormail',functie='send_mail') > else: > > db.admin_stats.insert(bedrijf=item.bedrijfcontactpersoon.bedrijf,contactpersoon=item.contactpersoon.id, > \ > controller='clublocatormail',functie='send_mail') > return True > > > And the view: > > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=utf-8" /> > <title>Template - Single Column</title> > </head> > <body> > <style type="text/css" media="screen"> > </style> > <table class="bg1" width="100%" border="0" cellspacing="0" > cellpadding="0"> > <tbody> > <tr> > <td align="center"> > <table class="bg2" width="600" border="0" cellspacing="0" > cellpadding="0"> > <tbody> > <tr> > <td class="browserversion" align="left"> > <p>Having trouble viewing this email? {{=A('View > it in your browser', > _href=URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}</p> > </td> > </tr> > <tr> > <td class="header" align="left"> > <img src="{{=URL(r=request,c='static',f='template/ > header.jpg')}}" alt="Header" width="600" height="192" /> > </td> > </tr> > <tr> > <td valign="top" class="body"> > <table width="100%" border="0" cellspacing="0" > cellpadding="0"> > <tbody> > <tr> > <td class="content" valign="top" > align="left"> > > <h2>Fitwise</h2> > > <p>Fitwise is een informatie en > communicatie tool op internet waarmee u uw klanten en potentiële > klanten moeiteloos bereikt en waarmee zij > u moeiteloos kunnen vinden via onze > {{=A('club locator', > _href=URL(r=request,c='clublocatormail',f='clublocator',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}. > Als ondernemer wilt u natuurlijk dat uw > bedrijfsgegevens in ons systeem up-to-date zijn. Controleer daarom > {{=A('uw bedrijfsgegevens in Fitwise', > _href=URL(r=request,c='clublocatormail',f='check_details',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}</p> > > <p>Zijn uw bedrijfsgegevens in ons systeem > niet up-to-date of wilt u uzelf als contactpersoon aanmelden. Vul dan > het > {{=A('wijzigingsformulier', > _href=URL(r=request,c='clublocatormail',f='update_form',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id,]), > _target="_blank")}} in. > Zijn uw bedrijfsgegevens in ons systeem up- > to-date? Laat het ons weten via het > {{=A('bevestigingsformulier', > _href=URL(r=request,c='clublocatormail',f='update_form',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id,]), > _target="_blank")}}.</p> > > <p class="signature"><br />Met > vriendelijke groet<br /> > </p> > > </td> > </tr> > </tbody> > </table> > </td> > </tr> > <tr> > <td class="footer" valign="middle" align="left" > height="61"> > <p>Not interested anymore? {{=A('Unsubscribe', > _href=URL(r=request,c='clublocatormail',f='unsubscribe',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id,]))}} > </p> > </td> > </tr> > </tbody> > </table> > </td> > </tr> > </tbody> > </table> > </body> > </html> > > > > > When I change the mail function to read like: > > def not_send_mail(): > > item=db((db.bedrijfcontactpersoon.bedrijf==db.bedrijf.id)&(db.bedrijfcontactpersoon.bedrijf==db.bedrijfinschrijving.bedrijf)& > \ > > (db.bedrijfcontactpersoon.contactpersoon==db.contactpersoon.id)&(db.bedrijfinschrijving.inschrijving==2)& > \ > (db.contactpersoon.subscription==True))\ > .select(db.bedrijf.bedrijfsnaam,db.bedrijfcontactpersoon.bedrijf,db.contactpersoon.id,db.contactpersoon.email, > \ > orderby=db.bedrijfcontactpersoon.bedrijf) > return dict(item=item) > > > And in the view replace item with item[0]. Then, when I expose the > not_send_mail function the view is rendered correctly: > > > <td class="browserversion" align="left"> > <p>"Having trouble viewing this email?" > <a href="/mock_crm/clublocatormail/browser_version/2/2" > _target="_blank"> > </p> > </td> > > <td class="header" align="left"> > <img src="/mock_crm/static/template/header.jpg" alt="Header" > width="600" height="192"> > </td> > > > Kind regards, > > Annet > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > annet <annet.verm...@gmail.com> Apr 17 01:26AM -0700 ^ > > I converted the send_mail function to a none mail function. The > send_mail function: > > > def send_mail(): > > mailinglist=db((db.bedrijfcontactpersoon.bedrijf==db.bedrijf.id)&(db.bedrijfcontactpersoon.bedrijf==db.bedrijfinschrijving.bedrijf)& > \ > > (db.bedrijfcontactpersoon.contactpersoon==db.contactpersoon.id)&(db.bedrijfinschrijving.inschrijving==2)& > \ > (db.contactpersoon.subscription==True))\ > .select(db.bedrijf.bedrijfsnaam,db.bedrijfcontactpersoon.bedrijf,db.contactpersoon.id,db.contactpersoon.email, > \ > orderby=db.bedrijfcontactpersoon.bedrijf) > for item in mailinglist: > context=dict(item=item) > message=response.render('clublocatormail/ > send_mail.html',context) > recipient=item.contactpersoon.email > boolean=mail.send(to=[recipient],subject='Bedrijfsgegevens ' + > item.bedrijf.bedrijfsnaam + ' in Fitwise',message=[None,message]) > if boolean: > > db.mailing_stats.insert(bedrijf=item.bedrijfcontactpersoon.bedrijf,contactpersoon=item.contactpersoon.id, > \ > controller='clublocatormail',functie='send_mail') > else: > > db.admin_stats.insert(bedrijf=item.bedrijfcontactpersoon.bedrijf,contactpersoon=item.contactpersoon.id, > \ > controller='clublocatormail',functie='send_mail') > return True > > > ... and its view: > > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=utf-8" /> > <title>Template - Single Column</title> > </head> > <body> > <style type="text/css" media="screen"> > </style> > <table class="bg1" width="100%" border="0" cellspacing="0" > cellpadding="0"> > <tbody> > <tr> > <td align="center"> > <table class="bg2" width="600" border="0" cellspacing="0" > cellpadding="0"> > <tbody> > <tr> > <td class="browserversion" align="left"> > <p>Having trouble viewing this email? {{=A('View > it in your browser', > _href=URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}</p> > </td> > </tr> > <tr> > <td class="header" align="left"> > <img src="{{=URL(r=request,c='static',f='template/ > header.jpg')}}" alt="Header" width="600" height="192" /> > </td> > </tr> > <tr> > <td valign="top" class="body"> > <table width="100%" border="0" cellspacing="0" > cellpadding="0"> > <tbody> > <tr> > <td class="content" valign="top" > align="left"> > > <h2>Fitwise</h2> > > <p>Fitwise is een informatie en > communicatie tool op internet waarmee u uw klanten en potentiële > klanten moeiteloos bereikt en waarmee zij > u moeiteloos kunnen vinden via onze > {{=A('club locator', > _href=URL(r=request,c='clublocatormail',f='clublocator',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}. > Als ondernemer wilt u natuurlijk dat uw > bedrijfsgegevens in ons systeem up-to-date zijn. Controleer daarom > {{=A('uw bedrijfsgegevens in Fitwise', > _href=URL(r=request,c='clublocatormail',f='check_details',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id]), > _target="_blank")}}</p> > > <p>Zijn uw bedrijfsgegevens in ons systeem > niet up-to-date of wilt u uzelf als contactpersoon aanmelden. Vul dan > het > {{=A('wijzigingsformulier', > _href=URL(r=request,c='clublocatormail',f='update_form',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id,]), > _target="_blank")}} in. > Zijn uw bedrijfsgegevens in ons systeem up- > to-date? Laat het ons weten via het > {{=A('bevestigingsformulier', > _href=URL(r=request,c='clublocatormail',f='update_form',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id,]), > _target="_blank")}}.</p> > > <p class="signature"><br />Met > vriendelijke groet<br /> > </p> > > </td> > </tr> > </tbody> > </table> > </td> > </tr> > <tr> > <td class="footer" valign="middle" align="left" > height="61"> > <p>Not interested anymore? {{=A('Unsubscribe', > _href=URL(r=request,c='clublocatormail',f='unsubscribe',args=[item.bedrijfcontactpersoon.bedrijf,item.contactpersoon.id,]))}} > </p> > </td> > </tr> > </tbody> > </table> > </td> > </tr> > </tbody> > </table> > </body> > </html> > > > > > The not_send_mail function: > > def not_send_mail(): > > item=db((db.bedrijfcontactpersoon.bedrijf==db.bedrijf.id)&(db.bedrijfcontactpersoon.bedrijf==db.bedrijfinschrijving.bedrijf)& > \ > > (db.bedrijfcontactpersoon.contactpersoon==db.contactpersoon.id)&(db.bedrijfinschrijving.inschrijving==2)& > \ > (db.contactpersoon.subscription==True))\ > .select(db.bedrijf.bedrijfsnaam,db.bedrijfcontactpersoon.bedrijf,db.contactpersoon.id,db.contactpersoon.email, > \ > orderby=db.bedrijfcontactpersoon.bedrijf) > return dict(item=item) > > > ... and in its view, which is identical to the one above, I replaced > the item attributes with item[0]. When I expose the latter the _href > and scr attributes are rendered correctly: > > > <td class="browserversion" align="left"> > <p>"Having trouble viewing this email?" > <a href="/mock_crm/clublocatormail/browser_version/2/2" > _target="_blank">View it in your brwoser</a> > </p> > </td> > > <td class="header" align="left"> > <img src="/mock_crm/static/template/header.jpg" alt="Header" > width="600" height="192" > > </td> > > > Is it the response.render() function that is causing the problem, or > something else? > > > Kind regards, > > Annet. > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > Topic: options.py problem > > Tomas Pelka <tompe...@gmail.com> Apr 17 09:51AM +0200 ^ > > Still: > Cannot import config file [options] > > Btw I need to start web2py from script using: > > gluon.widget.start(cron=True) > > Is there any way how to preset options? Looking in source I can see that > > 647 parser.add_option('-L', > 648 '--config', > 649 dest='config', > 650 default='', > 651 help='config file') > > there is no default config, right? > > Thanks > > mdipierro wrote: > > -- > Tom > > > > Topic: web2conf for FLISOL installfest > > mdipierro <mdipie...@cs.depaul.edu> Apr 16 08:12PM -0700 ^ > > I spoke with Yarko. The GPL license was not intentional and we suggest > it be changed to BSD. > I normally license apps (but web2py itself) under BSD license (with > some exceptions, depending on collaborators). > > > > > Mariano Reingart <reing...@gmail.com> Apr 17 02:10AM -0300 ^ > > Looking now, the google code site already says New BSD Licence. > When I make some time I'll upload a branch at googlecode, under the > licence you choose, and please fell free to add my name/email for > further contacts. > > Best regards, > > Mariano Reingart > http://www.web2py.com.ar > http://www.sistemasagiles.com.ar > http://reingart.blogspot.com > > > > > > Topic: web2py on IDE > > Mengu <whalb...@gmail.com> Apr 16 08:37PM -0700 ^ > > thanks massimo. any recommendations for web2py or general purpose? > > > > > mdipierro <mdipie...@cs.depaul.edu> Apr 16 09:44PM -0700 ^ > > I cannot think of anything specific. What will the license be? > > > > > Topic: web2py on Kodingen? > > ChilliCoder <chilli.co...@gmail.com> Apr 16 08:29PM -0700 ^ > > Anyone tried it? > > I found a directory test on my account with python and fcgi samples > but I'm not that expert to understand it. > > Regards, > > > -- > Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en > > > > Topic: Presentation of web2py > > Yarko Tymciurak <resultsinsoftw...@gmail.com> Apr 16 08:13PM -0700 ^ > >> Thank you. I will turn it into a wiki app and ask people on reddit to >> add other frameworks and correct any mistake. > > ... I was thinking a similar thing; > > Would be nice to have each "page" have tabs per framework.... it would > be nice to be able to flip back and forth > > > > mdipierro <mdipie...@cs.depaul.edu> Apr 16 08:18PM -0700 ^ > > I will try to do that. > > On Apr 16, 10:13 pm, Yarko Tymciurak <resultsinsoftw...@gmail.com> > wrote: > >