[web2py] Proper way to send multiple emails in Background
Hi all, Is there a proper way to send multiple emails in the background of your application? I would not want the user to wait while the emails are being sent. I am considering using a threads, but I would like to hear from the community if this is the best approach. Thanks. -- Kevin Miller -- --- 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/opt_out.
Re: [web2py] Re: web2py default layout.html
Thanks again Annet and all the others who took the time to respond to my question. On Wed, Sep 12, 2012 at 11:11 AM, Annet wrote: > @Massimo, > > > aha! Thanks Annet, this fixes a long standing problem. > > > Well, Anthony already mentioned the span12, I just provided my solution to > the problem. > > @Dundee > > In an external style sheet I defined: > > .pad {padding: 18px;} > .pad-hor {padding: 0px 18px;} > .pad-vert {padding: 18px 0px;} > > > I use these selectors in the following way: > > > > > > > > > > > Kind regards, > > Annet. > > -- > > > > --
Re: [web2py] Re: web2py default layout.html
Yes definitely that span12 is causing the problem. Thanks guys. Now I have to add some extra padding now. On Wed, Sep 12, 2012 at 2:35 AM, Annet wrote: > > missing some s for the first "span12"s ? >> > > You're right, it should be: > > > > > > > > > > > Kind regards, > > Annet. > > -- > > > > --
Re: [web2py] Re: web2py default layout.html
I tried to fix it but was unsuccessful so I resorted to just making sure that my content does not take up the entire section. I use a width of 95% and that did the trick. I know that this is not the best fixed. I will be looking on it some more. NB: This problem only happens when the columns are NOT turned on. So I only have to do this on pages where I did not turn on any columns. Luckily most of my pages have columns. I think it has to do with the margin-left:20px to the section when its of class="span12". Not sure. On Tue, Sep 11, 2012 at 10:30 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Not intended. Can you help us fix it? > > > On Tuesday, 11 September 2012 10:11:35 UTC-5, dundee wrote: >> >> >> Hi All, >> >> I notice that when I use the layout.html, even though the div with >> class="container" and the Section with id="main" are the same size, the >> Section is pushed to the right. >> I used the inspector in firefox to check it, when I noticed that text I >> had was going out of the container div. This was obvious since I gave the >> container a different color. >> >> Is this the way the container div and main section should work? >> >> I can work around it, but I want to be sure that this is not a bug. >> >> >> >> Thanks. >> > -- > > > > --
[web2py] web2py default layout.html
Hi All, I notice that when I use the layout.html, even though the div with class="container" and the Section with id="main" are the same size, the Section is pushed to the right. I used the inspector in firefox to check it, when I noticed that text I had was going out of the container div. This was obvious since I gave the container a different color. Is this the way the container div and main section should work? I can work around it, but I want to be sure that this is not a bug. Thanks. --
Re: [web2py] Re: Sorting ajax return
Thanks for the replies guys. select().as_list() did the job for me. Luckily I don't have belongs in the query. On Mon, Sep 10, 2012 at 10:01 AM, Marek Mollin wrote: > bear in mind if you have belongs in query(rdbms optimizes ids when using > belongs), you might have to sort manualy via python builtin sorted (which > can sort all iterables) > > W dniu niedziela, 9 września 2012 17:55:26 UTC+2 użytkownik Anthony > napisał: > >> Do you have to use .as_dict()? Instead, you could use .as_list(), and >> you'll get a list of dictionaries instead of a dictionary of dictionaries. >> The list will retain the order of the original select (presumably you could >> use "orderby" to have the database return the records in the order you >> want). >> >> Anthony >> >> On Sunday, September 9, 2012 10:42:32 AM UTC-4, dundee wrote: >>> >>> >>> Hi all, >>> >>> I have an ajax call to some values and I use the ...select().as_dict in >>> my controller so that I can return a dict to process the results in my view. >>> Now I realize that I need these values to be sorted. As a dict >>> (..select().as_dict) is not ordered, how can this be accomplished? >>> >>> Once I needed something like this but I used the Collections module and >>> the OrderedDict, but this is different. >>> >>> I need some opinions on the best approach for this. >>> >>> >>> Thanks. >>> >>> >>> Regards >>> >>> Kevin >>> >> -- > > > > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7 --
[web2py] Sorting ajax return
Hi all, I have an ajax call to some values and I use the ...select().as_dict in my controller so that I can return a dict to process the results in my view. Now I realize that I need these values to be sorted. As a dict (..select().as_dict) is not ordered, how can this be accomplished? Once I needed something like this but I used the Collections module and the OrderedDict, but this is different. I need some opinions on the best approach for this. Thanks. Regards Kevin --
Re: [web2py] Re: web2py 2.0.6 and JqueryUI
Ok I found my problem that I spoke of earler. It was the version of jquery. I was using jquery 1.7.2 before with no problems. When I upgraded to web2py 2.0.6, it came with Jquery 1.8.0 and that was causing the problem. So I just copied the older version jquery and all is ok for now. JQuery UI 1.8.16. These versions were compatible for me, so you might want to check if all versions are compatible. On Tue, Sep 4, 2012 at 2:27 AM, Annet wrote: > The issue has something to do with web2py. > > In 1.99.7 > jQuery 1.7.1 > jQuery UI 1.8.20 > > ... the date and auto complete field do work: > > class="date hasDatepicker"> > > type="text" value="" name="locality" autocomplete="off" role="textbox" > aria-autocomplete="list" aria-haspopup="true"> > > > In 2.0.6 > jQuery 1.7.1 > jQuery UI 1.8.20 > > ... (same code, different web2py version) the date and autocomplete field > do not work when they are in the same form. > > class="date input-xlarge hasDatepicker"> > > > class="input-xlarge string"> > > > I have no idea why. > > > Kind regards, > > Annet > > > > > > > On Tuesday, 4 September 2012 06:43:28 UTC+2, Annet wrote: >> >> >> Version of jQuery bundled with web2py welcome app has changed between >>> 1.99.x and 2.0.x, so if you're upgrading your existing app in any way, this >>> might be a factor too. >>> >> >> Thanks for your reply, you're right I had to update jQuery UI form 1.8.20 >> to 1.8..23 to fix the issue. >> >> I am having another issue with jQuery UI. When a form contains both a >> date and an autocomplete field the calendar breaks the autocomplete, i.e. >> none of the autocomplete fields are rendered as autocomplete: >> >> > class="input-xlarge string"> >> >> ... where I expect: >> >> > class="input-xlarge string ui-autocomplete-input" autocomplete="off" >> role="textbox" aria-autocomplete="list" aria-haspopup="true"> >> >> >> I know this is not related to web2py, but maybe you know whether there's >> a fix for this issue. >> >> >> Kind regards, >> >> Annet >> >> > -- > > > > --
Re: [web2py] Re: web2py 2.0.6 and JqueryUI
I cleared the cache and refreshed the page and I got the same result. That line was from a javascript file that I created. It was in a method that I called when a linked was clicked. On Sun, Sep 2, 2012 at 1:42 PM, Niphlod wrote: > could you please try simply hitting ctrl+f5 to refresh the cached files > and see if that errors goes away ? BTW, that line comes from what js file ? > > > On Sunday, September 2, 2012 7:43:14 PM UTC+2, dundee wrote: >> >> Hi all, >> >> I have converted my app from web2py 2.0 to use web2py 2.0.6. Everything >> is working fine except my jqueryUI dialog. I have used it all the 2.0.x >> versions and it worked fine. >> I am getting this error in firebug: >> >> TypeError: i is undefined >> >> ...){if(typeof l!=="number")return j["outer"+g].call(this,l);**return >> this.each(funct... >> >> >> I can't see why I am getting this error. I have used jquery ui like this: >> >> var $dialog = $('') >> .html($allevents) >> .dialog({ >> autoOpen: true, >> height:400, >> width: 300, >> title: $dialogTitle >> }); >> >>$dialog.dialog('open'); >> >> >> I have been using jqueryUI like this in the same app for the longest >> while, then suddenly it stopped working. I am also using the same version >> of jqueryUI too. >> I tried many things, I don't know what else to do. >> >> >> Thanks. >> >> -- > > > > --
[web2py] web2py 2.0.6 and JqueryUI
Hi all, I have converted my app from web2py 2.0 to use web2py 2.0.6. Everything is working fine except my jqueryUI dialog. I have used it all the 2.0.x versions and it worked fine. I am getting this error in firebug: TypeError: i is undefined ...){if(typeof l!=="number")return j["outer"+g].call(this,l);return this.each(funct... I can't see why I am getting this error. I have used jquery ui like this: var $dialog = $('') .html($allevents) .dialog({ autoOpen: true, height:400, width: 300, title: $dialogTitle }); $dialog.dialog('open'); I have been using jqueryUI like this in the same app for the longest while, then suddenly it stopped working. I am also using the same version of jqueryUI too. I tried many things, I don't know what else to do. Thanks. --
Re: [web2py] web2py 2.0.2 is out
Massimo and the team and all those who have contributed, a HUGE THANK YOU. On Wed, Aug 29, 2012 at 10:41 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > After 5 months. It is done. This is the most waited and the most > feature-packed release. > > I am sure we'll find some corners that need to be ironed but it is > considerably better than 1.99.7. It adds lot of new features and improves > many existing ones: > > - 57,000 new lines of code and closed 279 issues since 1.99.7. > - Retrieving data from DB should be faster, in particular > select(cacheable=True) > - Has a new scheduler, a built-in wiki, new language and pluralization > system, better markmin with oembed support and better scaffolding app, > increased security. > - Lots of experimental features including GIS support, mongodb support, > built-in auth.wiki(), and more. > > Should be 100% backward compatible. If you run into any issue let us know > ASAP. > > I personally want to thank the major contributors to this release (in > alphabetic order) > Alan, Andrew, Anthony, Bruno, Christian, Dave, Dominic, Iceberg, Jonathan, > Marc, Mariano, Marin, Martin, Mark, Michael, Michele, Niphlod, Patrick, > Vladyslav, > They spend many nights testing, coding, debugging at a very fast pace. > > Many many people have contributed. > > If your contribution has not been properly acknowledged please let us know > ASAP. It is probably an oversight. > > > Massimo > > > Detailed changelog > === > > ## 2.00.2 > > ### DAL Improvements > > - Support for DAL(lazy_tables=True) and db.define_table(on_define=lambda > table:), thanks Jonathan > - db(...).select(cacheable=True) make select 30% faster > - db(...).select(cache=(cache.ram,3600)) now caches parsed data 100x faster > - db(...).count(cache=(cache.ram,3600)) now supported > - MongoDB support in DAL (experimental), thanks Mark Breedveld > - geodal and spatialite, thanks Denes and Fran (experimental) > - db.mytable._before_insert, _after_insert, _before_update, _after_update, > _before_delete. _after_delete (list of callbacks) > - db(...).update_naive(...) same as update but ignores > table._before_update and table._after_update > - DAL BIGINT support and DAL(...,bigint_id=True) > - IS_IN_DB(..., distinct=True) > - new syntax: db.mytable.insert(myuploadfield=open()), thank you > Iceberg > - db(...).select(db.mytable.myfield.count(distinct=True)) > - db(db.a)._update(name=db(db.b.a==db.a.id).nested_select(db.b.id)) > - db.mytable.myfield.filter_in, filter_out > - db.mytable._enable_record_versioning(db) adds versioning to this table > - teradata adapter, thanks Andrew Willimott > - experimental Sybase Adapter > - added db.table.field.avg() > - Support for Google App Engine projections, thanks Christian > - Field(... 'upload', default=path) now accepts a path to a local file as > default value, if user does not upload a file. Relative path looks inside > current application folder, thanks Marin > - executesql(...,fields=,columns=) allows parsing of results in Rows, > thanks Anthony > > ### Auth improvements > > - auth.enable_record_versioning(db) adds full versioning to all tables > - @auth.requires_login(otherwise=URL(...)) > - auth supports salt and compatible with third party data, thanks Dave > Stoll > - CRYPT now defaults to pbkdf2(1000,20,sha1) > - Built-in wiki with menu, tags, search, media, permissions. def index: > return auth.wiki() > - auth.settings.everybody_group_id > - allow storage of uploads on any PyFileSystem (including amazon) > > ### Form improvements > > - FORM.confirm('Are you sure?',{'Back':URL(...)}) > - SQLFORM.smartdictform(dict) > - form.add_button(value,link) > - SQLFORM.grid(groupby='...') > - fixed security issue with SQLFORM.grid and SQLFORM.smartgrid > - more export options in SQLFORM.grid and SQLFORM.smartgrid (html, xml, > csv, ...) > > ### Admin improvements > > - new admin pages: manage_students, bulk_regsiter, and progress reports > - increased security in admin against CSRF > - experimental Git integration > - experimental OpenShift deployment > - multi-language pluralization engine > - ace text web editor in admin > - Ukrainian translations, thanks Vladyslav Kozlovskyy > - Romanian translation for welcome, thanks ionel > - support for mercurial 2.6, thanks Vlad > > ### Scheduler Improvements (thanks to niphlod, ykessler, dhx, toomim) > > - web2py.py -K myapp -X starts the myapp scheduler alongside the webserver > - tasks are marked EXPIRED (if stop_time passed) > - functions with no result don't end up in scheduler_run > - more options: web2py.py -E -b -L > - scheduler can now handle 10k tasks with 20 concurrent workers and with > no issues > - new params: > tasks can be found in the environment (no need to define the tasks > parameter) > max_empty_runs kills the workers automatically if no new tasks are > found in queue (nice for "spikes" of processing power) > discard_results to completely discard the results (if you don't need > the
Re: [web2py] Re: web2py 2.0 stats
I have been waiting to hear that for the longest while. Release it :-) On Wed, Aug 29, 2012 at 9:55 AM, Ezugworie Ikechukwu < ezugworie.ikechu...@gmail.com> wrote: > Impatiently waiting > > > On Wed, Aug 29, 2012 at 3:53 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> Go admin button is gone from the Welcome? >> >> Richard >> >> >> On Wed, Aug 29, 2012 at 10:51 AM, Richard Vézina < >> ml.richard.vez...@gmail.com> wrote: >> >>> Nice! >>> >>> Richard >>> >>> >>> On Wed, Aug 29, 2012 at 10:50 AM, Massimo Di Pierro < >>> massimo.dipie...@gmail.com> wrote: >>> >>>> from 35643 in 1.99.7 to 40481 in 2.0.1 (looking at gluon/*.py only) >>>> >>>> >>>> On Wednesday, 29 August 2012 09:38:34 UTC-5, Anthony wrote: >>>>> >>>>> How many total lines of code, not including anything in /applications >>>>> or /contrib? >>>>> >>>>> Anthony >>>>> >>>>> On Tuesday, August 28, 2012 11:35:15 PM UTC-4, Massimo Di Pierro wrote: >>>>>> >>>>>> It is ready but we cannot stop tweaking it ... >>>>>> >>>>>> we replaced 16,000 lines of code and we added 41,000 new lines when >>>>>> compared with web2py 1.99.2 (minified js count as one line). >>>>>> >>>>>> We may release it tomorrow. >>>>>> >>>>>> -- >>>> >>>> >>>> >>>> >>> >>> >> -- >> >> >> >> > > -- > > > > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7 --
Re: [web2py] Re: modules folder and pythonpath in web2py
I realize that I had to add the modules folder as an external library. :-) Everything seems to be ok now. On Wed, Aug 15, 2012 at 5:31 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > +1 > > > On Wednesday, 15 August 2012 12:09:15 UTC-5, dundee wrote: >> >> >> Hi all, >> >> I have decided to start using eclipse for python development. >> I did all the import stuff and added the modules folder in my pythonpath. >> Everything works find except I keep getting the red X when I am using files >> from the modules folder. >> It works without problems with web2py. >> I am using eclipse Juno release. >> >> Thanks. >> >> Kevin Miller >> > -- > > > > --
[web2py] modules folder and pythonpath in web2py
Hi all, I have decided to start using eclipse for python development. I did all the import stuff and added the modules folder in my pythonpath. Everything works find except I keep getting the red X when I am using files from the modules folder. It works without problems with web2py. I am using eclipse Juno release. Thanks. Kevin Miller --
Re: [web2py] Functions in Views
Thank you very much Bruno. Just found out that I can return it in view. Thanks a lot for your reply. On Mon, Aug 13, 2012 at 7:48 PM, Bruno Rocha wrote: > You only can call functions that are in global scope. > > if you define function in /models/ so you can call those functions in > controllers and views. > > If you defined in controller, so you have to return it to the view. > > controller/default.py > --- > > def foo(): > return "bar" > > def index(): > name = "Bruno" > form = FORM() > return dict(form=form, name=name, foo=foo) > > -- > > > > > *Bruno Cezar Rocha** - @rochacbruno* > rochacbr...@gmail.com | Mobile: +55 (11) 99210-8821 > www.CursoDePython.com.br | www.rochacbruno.com.br > Blog: Loading html elements dynamically with web2py and ajax > <https://rochacbruno.snipt.net/loading-html-elements-dynamically-with-web2py-and-ajax/> > Get a signature like this. > <http://r1.wisestamp.com/r/landing?promo=18&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18> > Click > here.<http://r1.wisestamp.com/r/landing?promo=18&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18> > > > > On Mon, Aug 13, 2012 at 9:34 PM, Kevin Miller wrote: > >> >> Hi All, >> >> Can I call custom functions in views? Functions that I have created in my >> controller/default.py. >> >> >> >> Thanks. >> >> -- >> >> >> >> > > -- > > > > --
[web2py] Functions in Views
Hi All, Can I call custom functions in views? Functions that I have created in my controller/default.py. Thanks. --
[web2py] [WEB2PY] Twitter bootstrap Carousel not cycling
Hi all, Any ideas why twitter bootstrap carousel not cycling. I followed what was told: I put this in the header: $(document).ready(function(){ $('#myCarousel').carousel({ interval: 2000 }); } and in the body I placed the code as indicated on the website. It only cycles after I click on one of the controls. I want it to cycle automatically. Thanks. Kevin --
Re: [web2py] displacement of password button [web2py twitter bootstrap]
To me it seems like it was the placement of the welcome message that caused the problem. In the latest build the welcome message is now in the same line as the other auth links. Are you sure you are using the most current build? If you were using a previous build you should probably clear your browsing data and refresh. Not sure why you are still having the problem. Is it in both browsers or just google chrome? On Wed, Jul 25, 2012 at 5:57 AM, Simon Ashley wrote: > Negative on that. > Still have an issue from the most currently nightly build. > Has anyone tracked down precisely what's causing it? > > TIA, > > -- > > > > --
[web2py] web2py instant admin
Hi all, Anyone using web2py instant admin? I have a problem with the css. I have installed the plugin its functional, but its not picking up the CSS. Any reason? Thanks very much. Kevin --
Re: [web2py] displacement of password button [web2py twitter bootstrap]
Thank you for testing for me. I downloaded this morning at its working now. I had a previous download that was not updated, so whatever was causing that was fixed some time ago. Thanks again. On Tue, Jul 24, 2012 at 7:17 AM, Johann Spies wrote: > On 24 July 2012 14:13, Kevin Miller wrote: > >> Which version are you using? oops... I forgot to say that it only happens >> in google chrome. >> >> >> > I have updated this morning from the trunk and that was using Firefox. > > I have tested now in Chrome and it also works correctly. > > > Regards > Johann > > > -- > Because experiencing your loyal love is better than life itself, > my lips will praise you. (Psalm 63:3) > > -- > > > > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7 --
Re: [web2py] displacement of password button [web2py twitter bootstrap]
Which version are you using? oops... I forgot to say that it only happens in google chrome. On Tue, Jul 24, 2012 at 4:58 AM, Johann Spies wrote: > On 24 July 2012 05:03, Kevin Miller wrote: > >> >> Hi all, >> >> Anyone knows why the password button is displaced by the welcome message >> when using twitter bootstrap and Nightly Build? >> I have attached a picture as example. >> >> >> No such problem here. > > I have attached mine (on the welcome app) > > Regards > Johann > > -- > Because experiencing your loyal love is better than life itself, > my lips will praise you. (Psalm 63:3) > > -- > > --
[web2py] displacement of password button [web2py twitter bootstrap]
Hi all, Anyone knows why the password button is displaced by the welcome message when using twitter bootstrap and Nightly Build? I have attached a picture as example. Thanks. Kevin -- <>
Re: [web2py] Re: Profile link
Perfect. Thank you very much. I wanted a custom view. I choose the latter approach and it worked like a charm. I didn't realize it was that easy. Thanks again. On Wed, Jul 11, 2012 at 11:52 AM, Anthony wrote: > Just to clarify, are you saying your profile page has a custom URL (i.e., > something other than /default/user/profile), or that it simply has a custom > view (i.e., you need to use a view other than the standard > /views/default/user.html view)? If the latter, there are two options. > First, rather than having a separate view file, you could add a condition > to the user.html view that displays a custom view when request.args(0) == > 'profile'. The other option is specifying a custom view in the user() > function: > > def user(): > if request.args(0) == 'profile': > response.view = 'default/profile.html' > > Anthony > > Thanks for the reply. That is my setup. The only edit I want is to change >> the link on profile to point to my custom profile. Apart from that, I don't >> want to edit any other function of the Auth system. Thanks. I kind a see >> where it might be possible in gluon/tools.py, but I don't want to touch the >> source code directly. I was hoping there was some settings I could alter. >> >> I also did not want to create a custom navbar. However manipulating it >> after it is generated seems an option. How do you do that to change the >> link on the profile? >> >> Thanks. >> >> On Wed, Jul 11, 2012 at 10:31 AM, Anthony wrote: >> >> The navbar assumes all the Auth actions are handled by the same function, >>> with the action being specified via request.args[0]. If that's not your >>> setup, then you'll have to create a custom navbar, or manipulate the navbar >>> after it is generated. >>> >>> Anthony >>> >>> >>> On Wednesday, July 11, 2012 11:15:21 AM UTC-4, dundee wrote: Hi all, I have created a custom view for profile. However, I don't know where to look to change the profile link (auth.navbar) to use my link. Thanks. >>> >> >> >>
Re: [web2py] Re: Profile link
Thanks for the reply. That is my setup. The only edit I want is to change the link on profile to point to my custom profile. Apart from that, I don't want to edit any other function of the Auth system. Thanks. I kind a see where it might be possible in gluon/tools.py, but I don't want to touch the source code directly. I was hoping there was some settings I could alter. I also did not want to create a custom navbar. However manipulating it after it is generated seems an option. How do you do that to change the link on the profile? Thanks. On Wed, Jul 11, 2012 at 10:31 AM, Anthony wrote: > The navbar assumes all the Auth actions are handled by the same function, > with the action being specified via request.args[0]. If that's not your > setup, then you'll have to create a custom navbar, or manipulate the navbar > after it is generated. > > Anthony > > > On Wednesday, July 11, 2012 11:15:21 AM UTC-4, dundee wrote: >> >> Hi all, >> >> I have created a custom view for profile. However, I don't know where to >> look to change the profile link (auth.navbar) to use my link. >> >> Thanks. >> > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
[web2py] Profile link
Hi all, I have created a custom view for profile. However, I don't know where to look to change the profile link (auth.navbar) to use my link. Thanks.
Re: [web2py] Multiple select Web2py
I am using the Nightly Build as I need twitter bootstrap :-) On Tue, Jul 10, 2012 at 11:41 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok, so must be a issue with web2py... Which version are you using? > > Maybe open issue on google code. > > Richard > > > On Tue, Jul 10, 2012 at 11:48 AM, Kevin Miller wrote: > >> Thanks for your reply. The form is auto generated by web2py. It is the >> profile link you click on when you log in the system. >> >> >> On Tue, Jul 10, 2012 at 8:25 AM, Richard Vézina < >> ml.richard.vez...@gmail.com> wrote: >> >>> Would need to see the model and your controller function that create the >>> form... >>> >>> Richard >>> >>> >>> On Tue, Jul 10, 2012 at 12:50 AM, Kevin Miller >>> wrote: >>> >>>> Hi all, >>>> >>>> I have a multiple select that I attach to a auth user profile. >>>> However, after I save the profile and log back in, I don't see the >>>> selected values when I am editing the profile form. >>>> >>>> Any ideas. >>>> >>>> Thank you all very much. >>>> >>> >>> >> >> >> -- >> Kevin Miller >> Acting Data Controller >> Department of Computing >> UWI, Mona >> Kingston 7 >> > > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
Re: [web2py] Multiple select Web2py
Thanks for your reply. The form is auto generated by web2py. It is the profile link you click on when you log in the system. On Tue, Jul 10, 2012 at 8:25 AM, Richard Vézina wrote: > Would need to see the model and your controller function that create the > form... > > Richard > > > On Tue, Jul 10, 2012 at 12:50 AM, Kevin Miller wrote: > >> Hi all, >> >> I have a multiple select that I attach to a auth user profile. >> However, after I save the profile and log back in, I don't see the >> selected values when I am editing the profile form. >> >> Any ideas. >> >> Thank you all very much. >> > > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
[web2py] Multiple select Web2py
Hi all, I have a multiple select that I attach to a auth user profile. However, after I save the profile and log back in, I don't see the selected values when I am editing the profile form. Any ideas. Thank you all very much.
[web2py] Re: footer misplaced with three columns (NightlyBuild)
Hi all, Well what I notice is that when the sidebars are enabled the sticky footer stays at the bottom of the page, where it should be. However, when disabled the sticky footer does not work. On Sat, Jul 7, 2012 at 11:04 PM, Kevin Miller wrote: > Hi all, > > Anyone else having this problem? > > When I use three columns like this: > > {{left_sidebar_enabled,right_sidebar_enabled=True,True}} > > The footer gets misplaced. If I disable the left and right sidebar, > everything is ok. > > Thanks very much. > > > Kevin Miller > > > > > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
[web2py] footer misplaced with three columns (NightlyBuild)
Hi all, Anyone else having this problem? When I use three columns like this: {{left_sidebar_enabled,right_sidebar_enabled=True,True}} The footer gets misplaced. If I disable the left and right sidebar, everything is ok. Thanks very much. Kevin Miller
Re: [web2py] Re: Launch of Web2py 2
Thank you pbreit. Since web2py is the easiest web framework to move your app around, I will definately try this version shortly. On Sun, Jul 1, 2012 at 10:35 PM, pbreit wrote: > The most current changeset from Google Code is probably the most stable > version of Web2py: > http://code.google.com/p/web2py/source/checkout > > I'm not sure how mission critical your app is but you can generally feel > comfortably using the most recent version of the source code. > > >
Re: [web2py] Re: Launch of Web2py 2
I see your point, but I am not a designer and the integration of twitter bootstrap and web2py is my answer. It has mostly been working out so far. It would take too much work for me to style my app from scratch. :-) On Thu, Jun 28, 2012 at 4:34 PM, Niphlod wrote: > don't know if anyone "official" will pop up giving a timetable, but if > your only concern is an app with twitter bootstrap I truly recommend to > release it with your own template and css's rules > > Having to wait a 2.0 release just only for the styles of scaffolding app > seems to me an overkill. I myself took that road... I'm waiting for a 2.0 > just to be able to exploit some new features that regards gluon libraries > > > Anyway, if you're fighting, I've seen particularly "gifted" members that > are truly helpful with bootstrap's internals: if something come up with the > standard template and it's unresolvable without hacking just css, a patch > would be submitted :D > > > > > On Thursday, June 28, 2012 11:26:34 PM UTC+2, dundee wrote: >> >> Hi All, >> >> Anyone knows when web2py 2.0 will be released? >> >> I am fighting with the nightly build and having some trouble with twitter >> bootstrap. >> >> I have an app that I want to release but I don't want to release it using >> the NIghtly build and I need to use twitter bootstrap. >> >> Would really love to have a release date so that I can know what to do. >> >> >> Thanks all. >> >> >> >>
[web2py] Launch of Web2py 2
Hi All, Anyone knows when web2py 2.0 will be released? I am fighting with the nightly build and having some trouble with twitter bootstrap. I have an app that I want to release but I don't want to release it using the NIghtly build and I need to use twitter bootstrap. Would really love to have a release date so that I can know what to do. Thanks all.
[web2py] Container div background
Hi All, I am using the Nightly Build with twitter-bootstrap which is fun for the most part. However I wanted the container to have a white background. I thought I could just find the div and add the color:#FF; to the div in the web2py.css file. This has some weird effects. I even tried using inline CSS as I thought something else in the web2py.css was affected me, but still the same problem. What I am trying to achieve is this: I have a static background which is working, but I want the div container to have a white background. When I tried the above, only some content in some of my divs is being wiped out. Any ideas on how I can get the container to be white? Thanks very much.
Re: [web2py] Re: bootstrap carousel web2py Nightly build
Thanks for the replies. That fixed worked for me Paolo. On Tue, Jun 19, 2012 at 2:59 PM, LightDot wrote: > I was too quick to comment and too optimistic :) > > It seems Bootstrap's css will need to be further tested for collisions > with current web2py css code. I'm using Carousel myself but didn't notice > the problem because I have never enabled the controls... > > Regards > > On Tuesday, June 19, 2012 9:35:42 PM UTC+2, Paolo Caruccio wrote: >> >> I'm building an app for trying carousel feature and I met the same your >> issue. >> >> My solution (note style statement): >> >> >> > style="width:40px;float:none;**text-align:center;">› >> >> Maybe you should adapt the width to your necessity. >> >> The inline css style overwrites the ".right" rule in web2py.css >> >> >> Il giorno martedì 19 giugno 2012 19:25:07 UTC+2, dundee ha scritto: >>> >>> Hey all, >>> >>> Anyone trying to use carousel in web2py nightly build? >>> I used it exactly as stated on the bootstrap web site. However, the >>> controls are not rendered properly and I can only the next button works. >>> The controls are positioned correctly but a big border is around the >>> controls. >>> >>> >>> ‹ >>> >>> › >>> >>> >>> I have attached a screenshot. >>> >>> Thanks. >>> >> -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7 --
Re: [web2py] Re: Web2py Admin interface
Thanks y'all. On Thu, Jun 14, 2012 at 9:35 AM, Michele Comitini < michele.comit...@gmail.com> wrote: > Or use ssh to make a tunnel: > > ssh -L 18000:localhost:8000 > > then access your web2py as: > http://localhost:18000/admin > > mic > > > 2012/6/14 Anthony : > > Access it over HTTPS. > > > > > > On Thursday, June 14, 2012 10:12:54 AM UTC-4, dundee wrote: > >> > >> Hi all, > >> > >> I just realize that the admin interface in web2py is disabled in > >> production mode. I though it would be available so I can securely > manage all > >> my tables (CRUD). > >> I know there must be way to do this. Anyone can point me to the right > >> material to properly do this? > >> > >> > >> Thanks. > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
[web2py] Web2py Admin interface
Hi all, I just realize that the admin interface in web2py is disabled in production mode. I though it would be available so I can securely manage all my tables (CRUD). I know there must be way to do this. Anyone can point me to the right material to properly do this? Thanks.
[web2py] search bar in top bar
Hi all, How can i make the top bar fixed/static at the top of the web2py default theme. I also want a nice search bar in the bar. Any ideas please. Thanks.
Re: [web2py] Re: recaptcha and web2py
Thanks for the reply. I tried: auth.settings.login_captcha = None This did not work for me. Then I tried auth.settings.login_captcha = False and that did the trick. Thank you very much. Regards. On Mon, Jun 11, 2012 at 4:06 PM, Niphlod wrote: > check auth.settings > > login_captcha = None > register_captcha = None > retrieve_username_captcha = None > retrieve_password_captcha = None > > Il giorno lunedì 11 giugno 2012 22:55:31 UTC+2, dundee ha scritto: > >> Hey all, >> >> I have enabled the recaptcha system by using: >> >> from gluon.tools import Recaptcha >> auth.settings.captcha = Recaptcha(request, >> >> 'PUBLIC_KEY', 'PRIVATE_KEY') >> >> >> >> as recommended by the web2py book. However, even my reset password needs a >> recaptcha. I don't even want it for the login. >> >> I only want it for registration. How can I remove the recaptcha from the >> request password and login and keep it on registration form? >> >> >> >> Thanks. >> ** >> >> >> -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
[web2py] recaptcha and web2py
Hey all, I have enabled the recaptcha system by using: from gluon.tools import Recaptcha auth.settings.captcha = Recaptcha(request, 'PUBLIC_KEY', 'PRIVATE_KEY') as recommended by the web2py book. However, even my reset password needs a recaptcha. I don't even want it for the login. I only want it for registration. How can I remove the recaptcha from the request password and login and keep it on registration form? Thanks. **
[web2py] How to Top Bar fixed
Is there an easy way how to make the top bar in web2py fixed? Thanks
Re: [web2py] Re: Embed youtube videos
Yes thanks. I was thinking about that. Thank you very much for your responses. I recently started to use web2py and I think its a wonderful python framework. This is my first project with it. On Thu, Jun 7, 2012 at 2:15 AM, pbreit wrote: > You could write a little but of code to figure out if the user put in the > whole URL or just the code and then just save the code. > > > On Wednesday, June 6, 2012 10:46:55 PM UTC-7, dundee wrote: >> >> Ok thanks for answering. Thanks for the idea. I include the first part of >> the url and replace the code section with the argument passed to the view. >> When I used the entire URL it did not work. The only problem I don't like >> with this approach is that the user has to enter the code (which is >> sometimes hard to extract for some users) in the form. Is there an easy way >> for the user? To just copy the url or something like that. >> >> Thanks again. >> >> >> On Wed, Jun 6, 2012 at 10:48 PM, pbreit wrote: >> >>> Should be pretty easy. Once you capture the YouTube URL, just pass it to >>> a view and then: >>> >>> === view.html === >>> >> src="{{=video.url}}?autoplay=**1&origin=http://example.com"; >>> frameborder="0"/> >>> >>> === controller.py === >>> def play_video(): >>> video = db.video(request.args(0)) >>> return dict(video=video) >>> >>> video.url would need to be something like " >>> http://www.youtube.com/embed/**u1zgFlCw8Aw<http://www.youtube.com/embed/u1zgFlCw8Aw>". >>> You can store the whole URL or just the YouTube code ("u1zgFlCw8Aw"). >>> >>> From: >>> https://developers.google.com/**youtube/player_parameters#** >>> Embedding_a_Player<https://developers.google.com/youtube/player_parameters#Embedding_a_Player> >>> >>> >>> On Wednesday, June 6, 2012 7:26:45 PM UTC-7, dundee wrote: >>>> >>>> I have been trying to figure out the best way to embed a youtube video >>>> in web2py. I would like a form with an entry for the youtube video >>>> link/code then at some point it will be displayed. >>>> I found this comment using the widget from plugin_wiki, but that did >>>> not work for me: >>>> >>>> https://groups.google.com/**foru**m/?fromgroups#!topic/**web2py/** >>>> j8-EG58VbA4<https://groups.google.com/forum/?fromgroups#%21topic/web2py/j8-EG58VbA4> >>>> >>>> >>>> Thanks very much. >>>> >>>> >> >> >> -- >> Kevin Miller >> Acting Data Controller >> Department of Computing >> UWI, Mona >> Kingston 7 >> > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
Re: [web2py] Re: Embed youtube videos
Ok thanks for answering. Thanks for the idea. I include the first part of the url and replace the code section with the argument passed to the view. When I used the entire URL it did not work. The only problem I don't like with this approach is that the user has to enter the code (which is sometimes hard to extract for some users) in the form. Is there an easy way for the user? To just copy the url or something like that. Thanks again. On Wed, Jun 6, 2012 at 10:48 PM, pbreit wrote: > Should be pretty easy. Once you capture the YouTube URL, just pass it to a > view and then: > > === view.html === >src="{{=video.url}}?autoplay=1&origin=http://example.com"; > frameborder="0"/> > > === controller.py === > def play_video(): > video = db.video(request.args(0)) > return dict(video=video) > > video.url would need to be something like " > http://www.youtube.com/embed/u1zgFlCw8Aw";. You can store the whole URL or > just the YouTube code ("u1zgFlCw8Aw"). > > From: > https://developers.google.com/youtube/player_parameters#Embedding_a_Player > > > On Wednesday, June 6, 2012 7:26:45 PM UTC-7, dundee wrote: >> >> I have been trying to figure out the best way to embed a youtube video in >> web2py. I would like a form with an entry for the youtube video link/code >> then at some point it will be displayed. >> I found this comment using the widget from plugin_wiki, but that did not >> work for me: >> >> https://groups.google.com/**forum/?fromgroups#!topic/**web2py/j8-EG58VbA4<https://groups.google.com/forum/?fromgroups#%21topic/web2py/j8-EG58VbA4> >> >> >> Thanks very much. >> >> -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
[web2py] Embed youtube videos
I have been trying to figure out the best way to embed a youtube video in web2py. I would like a form with an entry for the youtube video link/code then at some point it will be displayed. I found this comment using the widget from plugin_wiki, but that did not work for me: https://groups.google.com/forum/?fromgroups#!topic/web2py/j8-EG58VbA4 Thanks very much.
Re: [web2py] Re: Edit the regsitration form view and Profile
ok I see you corrected it. Thanks again. On Tue, May 15, 2012 at 7:10 AM, Kevin Miller wrote: > Thank you very much for your reply Alan. I had to add > db.auth_user.About_me.writable=False and > db.auth_user.About_Me.writable=False for it to work. > > On Tue, May 15, 2012 at 6:53 AM, Alan Etkin wrote: >> I guess you can disable those fields if the user is not logged in. Perhaps >> adding this to the end of the model: >> >> if not auth.is_logged_in(): >> db.auth_user.upload.readable = False >> db.auth_user.About_Me.readable = False >> >> >> >> On Monday, May 14, 2012 8:18:05 PM UTC-3, dundee wrote: >>> >>> Hello All, >>> I am a newbie to web2py. I have edited the User Profile to add fields like >>> this: >>> auth=Auth(db) >>> auth.settings.extra_fields['auth_user']= >>> [Field('Pic','upload'),Field('About_Me','text')] >>> >>> This if fine for the Profile view. However, I do not want these fields to >>> be available in the registration form. How can I hide these fields from the >>> registration for but keep them for the profile view? >>> >>> Thanks very much for your answers. >>> >> > > > > -- > Kevin Miller > Acting Data Controller > Department of Computing > UWI, Mona > Kingston 7 -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7
Re: [web2py] Re: Edit the regsitration form view and Profile
Thank you very much for your reply Alan. I had to add db.auth_user.About_me.writable=False and db.auth_user.About_Me.writable=False for it to work. On Tue, May 15, 2012 at 6:53 AM, Alan Etkin wrote: > I guess you can disable those fields if the user is not logged in. Perhaps > adding this to the end of the model: > > if not auth.is_logged_in(): > db.auth_user.upload.readable = False > db.auth_user.About_Me.readable = False > > > > On Monday, May 14, 2012 8:18:05 PM UTC-3, dundee wrote: >> >> Hello All, >> I am a newbie to web2py. I have edited the User Profile to add fields like >> this: >> auth=Auth(db) >> auth.settings.extra_fields['auth_user']= >> [Field('Pic','upload'),Field('About_Me','text')] >> >> This if fine for the Profile view. However, I do not want these fields to >> be available in the registration form. How can I hide these fields from the >> registration for but keep them for the profile view? >> >> Thanks very much for your answers. >> > -- Kevin Miller Acting Data Controller Department of Computing UWI, Mona Kingston 7