[web2py] Re: New-py4web-group

2020-04-12 Thread Andrew W
Excellent, thanks Massimo. On Sunday, March 29, 2020 at 8:46:26 AM UTC+13, Massimo Di Pierro wrote: > > We ave a new group for py4web questions and discussions: > > https://groups.google.com/forum/#!forum/py4web > > Please also use it for pydal, yatl, and pluralize questions. > For web2py

[web2py] py4web - Deployment on GCloud (aka Google App Engine)

2020-04-12 Thread Andrew W
it : gcloud app deploy app.yaml --promote I'm ready to build out my first py4web app ! Might be worth adding this to the script and/or documentation. Regards Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: Weird problems with scheduler on OSX

2015-09-14 Thread Andrew W
Late to this as I haven't run the scheduler on my mac before. The script runs fine. I'm getting the same python error. Running 2.12.3 Stable. Andrew W On Monday, March 9, 2015 at 10:59:36 AM UTC+13, Niphlod wrote: > > try this script and see if it fails. it's the boiled down version o

[web2py] Re: Web2py web mapping capabilities

2014-09-16 Thread Andrew W
You could also use d3.js with web2py, using geojson and topojson for display. See d3js.org -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] Re: a proposal for form improvement

2014-09-08 Thread Andrew W
Sounds like I need to improve my JS skills. A Plugin or a Module ? which is better for this type of thing ? On Friday, September 5, 2014 3:56:23 PM UTC+10, Massimo Di Pierro wrote: Please find attached a welcome4.zip with contains the following files: controllers/default.py

[web2py] Re: scheduler new feature: task dependencies

2014-08-06 Thread Andrew W
Sounds great. Looking forward to testing it out. Thanks Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] Re: scheduler new feature: task dependencies

2014-08-06 Thread Andrew W
AM UTC+10, Andrew W wrote: Sounds great. Looking forward to testing it out. Thanks Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] When to use jQuery.ajax or $.web2py.component ?

2014-06-30 Thread Andrew W
Hello, I've been looking into the use of callbacks and components to make a more dynamic app. I revisited the reddit_clone app from web2py training videos and noticed that is uses the following: jQuery.ajax({method:'post',url:'{{=URL(comm_vote_callback)}}', Trying to understand the rule

[web2py] Re: When to use jQuery.ajax or $.web2py.component ?

2014-06-30 Thread Andrew W
of reddit_clone as an example. Regards Andrew W On Tuesday, July 1, 2014 1:40:17 PM UTC+10, Anthony wrote: The jQuery ajax method can be used but is not web2py specific. web2py components provide some additional functionality and convenience. See the documentation: http://web2py.com/books

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-20 Thread Andrew W
Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Andrew W
Hi, trying to find out more about $.web2py.component, but it's not in the book. Chapter 11 mentions web2py_ajax_component but it isn't mentioned in Chapter 12 as indicated. An old reference perhaps. Anthony, I don't understand If you want to dynamically add a component in the browser, you

[web2py] Re: Brainstorming

2014-06-17 Thread Andrew W
I want to use the template capabilities of web2py for server side script generation, not just html. From my brief look at the ractive website I'm wondering if it is any better than what web2py does now. Do I really want a js library for this for server side templating. I could use node but

[web2py] Re: {{=XML(data)}} for javascript variable issue

2014-06-12 Thread Andrew W
Yes. Add a script section -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] json to D3 graph

2014-06-11 Thread Andrew W
What else is in your view? Is the code inside a script? What if you just returned dict( flare=flare) in your controller? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: json to D3 graph

2014-06-11 Thread Andrew W
link = svg.selectAll(.link) .data(links) .enter().append(path) .attr(class, link) .attr(d, diagonal); Hope you can give me a crucial hint. On Wednesday, June 11, 2014 5:49:13 PM UTC+2, Andrew W wrote: What else is in your view? Is the code inside a script? What

[web2py] Re: json to D3 graph

2014-06-11 Thread Andrew W
P..S. The above uses the approach of the generic.json files. Refer to: http://web2py.com/books/default/chapter/29/10/services?search=serializers and the generic.json code. On Thursday, June 12, 2014 8:20:04 AM UTC+10, Andrew W wrote: This may not be the crucial hint, but I noticed that your

[web2py] Re: Simple loan system for library

2014-05-23 Thread Andrew W
Hi John, One step at a time, looking at your database model, how does 'copies' relate to a book ? You are missing a foreign key reference. Are there any other attributes that a copy may have ? On Saturday, May 24, 2014 7:30:35 AM UTC+10, john smith wrote: I'm trying to create library

[web2py] Re: D3.js calling Json in View

2014-05-23 Thread Andrew W
, Andrew W wrote: Also, try scheme='https' in your case. See Core chapter of book. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: D3.js calling Json in View

2014-05-22 Thread Andrew W
I'm not at a desktop machine so I'll be brief. D3 expects an array, you have provided a dict. When you reference data such as in the foreach, try data.dashboard_data which will reference the array. Syntax is probably not quite correct. Also, if you're not sure add console.log stmts to show the

[web2py] Re: D3.js calling Json in View

2014-05-22 Thread Andrew W
Also, try scheme='https' in your case. See Core chapter of book. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] Re: D3.js calling Json in View

2014-05-21 Thread Andrew W
In the URL() call, add scheme=True, host=True. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to

[web2py] Re: D3.js calling Json in View

2014-05-20 Thread Andrew W
I use this technique regularly. Show the controller code and/or json output and I'll have a look. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

Re: [web2py] Re: RFC: web2py-based workflow engine

2014-04-18 Thread Andrew W
Thanks. That's a .net solution so not quite the web2py solution I was looking for. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this

[web2py] Dynamic, User customisable DAL connection parameters

2014-04-08 Thread Andrew W
be called if the session.localconn variable is already set. Any comments on this apprach ? Thanks Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report

[web2py] Incompatibility with web2py's calendar.js and d3.js

2014-02-09 Thread Andrew W
Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py

[web2py] Re: Incompatibility with web2py's calendar.js and d3.js

2014-02-09 Thread Andrew W
Update: I applied a fix from the d3 post by adding this to my script and uncommenting calendar.js: Date.prototype.setFullYear = Date.prototype.__msh_oldSetFullYear; This works. Should this fix be incorporated into web2py ? Will it break calendar.js in web2py ? Andrew W -- Resources

[web2py] Re: how to custmize the layout in web2py

2013-12-15 Thread Andrew W
And adding to what Anthony said, look at this web2py tutorial site which builds the ui from scratch. http://killer-web-development.com/section/4/2 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Scheduler - a second try

2013-11-07 Thread Andrew W
herbou1 is a function in my isi-controller. Shouldn't this function be in your models? A question for you: how did you turn on debugging for the scheduler? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Scheduler - a second try

2013-11-07 Thread Andrew W
Thanks. I've never been quite sure what to put in logging.conf for the scheduler debug key, based on the logger = statement in scheduler.py. On Friday, November 8, 2013 6:59:17 AM UTC+11, Niphlod wrote: logging is enabled as anything else in web2py. just start the scheduler with

Re: [web2py] Re: Scheduler - a second try

2013-11-07 Thread Andrew W
: On 7 Nov 2013, at 7:05 PM, Andrew W awill...@gmail.com javascript: wrote: Thanks. I've never been quite sure what to put in logging.conf for the scheduler debug key, based on the logger = statement in scheduler.py. We should add a schedule section to the logging example file

[web2py] Re: odbc error question, when running scheduler_test app.

2013-10-16 Thread Andrew W
. Il giorno mercoledì 16 ottobre 2013 00:30:37 UTC+2, Andrew W ha scritto: P.S. This may be an issue for all pyodbc databases MSSQL, DB2. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: odbc error question, when running scheduler_test app.

2013-10-15 Thread Andrew W
turned into more of a developer post. Thanks Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed

[web2py] Re: odbc error question, when running scheduler_test app.

2013-10-15 Thread Andrew W
P.S. This may be an issue for all pyodbc databases MSSQL, DB2. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] odbc error question, when running scheduler_test app.

2013-10-14 Thread Andrew W
driver that may limit its effectiveness for high concurrency web apps.* *Thanks* *Andrew W* -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

[web2py] Re: odbc error question, when running scheduler_test app.

2013-10-14 Thread Andrew W
I've found out that a cursor maps to a odbc hstmt. I also found out that Teradata supports 16 open result sets (hstmt) for each session. So it appears that web2py is reusing the same database session for multiple simultaneous requests, or isn't closing them correctly before starting the

[web2py] Re: Scheduler question

2013-10-03 Thread Andrew W
Hi Niphlod, If I could add to the questions (I'm having some success with the scheduler but there's a few gaps in my understanding): What process removes the rows from the scheduler_worker table ? Does it make any difference to Kill a worker by updating it's status or by just Ctl-C (Or closing

[web2py] Re: feeding python string object to d3.js csv

2013-06-26 Thread Andrew W
Not sure if its faster, but you'll write less js code if you use json, and it makes sense to use the controller to deliver the data in the expected format that is directly usable. Less js coding works for me! Margaret, as Anthony suggests, try the json approach. I can post an example when

[web2py] Re: feeding python string object to d3.js csv

2013-06-25 Thread Andrew W
Suggest you look at the book section rendering a dictionary, I use the json approach with d3, and then reference the URL in the js script. Works great and should work for csv too. This approach allows you to get the file formatted in the way d3 expects it, without trying to do it in js code.

[web2py] Re: Issues with rendering wiki in html.

2013-05-22 Thread Andrew W
Did you perhaps create your pages first (with markmin) and then add the render=HTML after? -- --- 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] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Andrew W
Would you use ember with web2py? Why? Is having two mvc frameworks at the same time too many? -- --- 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] Re: looking for volunteers to help proof-read book 5th ed.

2013-01-25 Thread Andrew W
I won't get it done before Saturday, but here's one: replace the first http://code.google.com/p/instant-press/; with https://github.com/rochacbruno/Movuca; On Tuesday, January 22, 2013 1:29:25 AM UTC+13, dhmorgan wrote: Signed, I hope! I just downloaded diff and am looking forward to the

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread Andrew W
I just tried something like this: if request.function != 'wiki': response.menu += Wiki(auth).menu(controller=default, function=wiki) On Wednesday, January 16, 2013 10:07:06 PM UTC+13, Paolo valleri wrote: Hi Alan, thank for the tip :-), it seems to work correctly. The only issue is that

[web2py] Re: wiki now partially documented

2013-01-14 Thread Andrew W
Thanks default/index. The main page has a lot of tags like {{=auth.wiki('whatwedo')}} so that each subsection can be edited through the [Wiki] menu. The rest are straight one wiki page for each url. (except for Contact where I use a component. I would probably rejig the front page at some

[web2py] Re: wiki now partially documented

2013-01-12 Thread Andrew W
Great work. And if you want to see a deployed auth.wiki, go to: performancecomposites.co.nz There are still some routes.py and IE things to sort out, but it's working. Any one in need of a wheel for their racing yacht ? On Sunday, January 13, 2013 4:45:11 AM UTC+13, wwwgong wrote:

[web2py] Re: request for fcgi users

2013-01-11 Thread Andrew W
I've tried touching and renaming the fcgi file but I can't see any changes. Either it hasn't picked up the changes, or I've done it wrong. Any way of knowing if routes.py has kicked in ? P.S. I'm running shared on HostGator, with no admin (ssl) access. Will killing all the fcgi running

[web2py] Re: I don't get routes.py

2013-01-11 Thread Andrew W
'), (r'/?(.*)', r'init')) Do I need to put something in: BASE = '' # optonal prefix for incoming URLs such as the domain name ? If I fill in routes_app, do I then need to have a separate routes.py for each of the applications in their respective application folder ? Thanks Andrew W --

[web2py] I don't get routes.py

2013-01-10 Thread Andrew W
. If we mention Chapter numbers in the book, should we also include them on the chapter index ? Thanks Andrew W --

Re: [web2py] I don't get routes.py

2013-01-10 Thread Andrew W
Thankyou very much ! On Friday, January 11, 2013 8:18:11 AM UTC+13, Jonathan Lundell wrote: On 10 Jan 2013, at 11:04 AM, Andrew W awill...@gmail.com javascript: wrote: Anyway, for my auth.wiki app, I don't want people to see this: http://www.myweb2pywebsite.com/init/default/index

[web2py] Re: I don't get routes.py

2013-01-10 Thread Andrew W
, Andrew W wrote: Hi all, Did we prune some content out of the book on this ? I'm sure there was more before. This is a line out of the Services chapter, talking about exactly what I need to know: yet this is a matter of test and we have already discussed it at length in chapter 4

Re: [web2py] Re: File generation using web2py

2013-01-10 Thread Andrew W
Hello Brian, Thanks very much for sharing your script. It works a treat and saved me a lot of time and confusion. Andrew On Wednesday, May 2, 2012 11:18:25 PM UTC+12, RAHUL PRIYADARSI wrote: Dear Mr.Brian, Thank you very much for you reply. If you're worried about text alignment and

[web2py] Re: I don't get routes.py

2013-01-10 Thread Andrew W
and find my new page at (with full url) mydomain.com/init/default/index/aboutus. It is not obvious (to me) after looking at router_example.py and the book. Do I need to use the pattern based approach for this ? thanks Andrew W On Friday, January 11, 2013 11:29:25 AM UTC+13, Andrew W

[web2py] Re: I don't get routes.py

2013-01-10 Thread Andrew W
Don't bother, I should have looked in routes_example.py too. Thanks. On Friday, January 11, 2013 4:13:39 PM UTC+13, Andrew W wrote: One more question if I may (I still don't get it): I am also replacing an existing website with a new web2py site. I've found links on other websites

[web2py] auth.wiki deployment issue

2013-01-09 Thread Andrew W
Hi, I need some help please. I've just deployed my first auth.wiki app. I'll let you know what it is once it's working properly. I've deployed to HostGator using web2py 2.3.2 (and the posts in this forum on the subject were very helpful). Using render='markmin' Everything was looking good

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Andrew W
://127.0.0.1:8000/PerformanceComposites/default/index/project1;Current Projects/a On Thursday, January 10, 2013 8:19:23 AM UTC+13, Andrew W wrote: Hi, I need some help please. I've just deployed my first auth.wiki app. I'll let you know what it is once it's working properly. I've

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Andrew W
I'll answer my own questions :) : It's because the wiki page saves the body (user entered content) and the generated html separately. The html has not been regenerated. How do I get it to regenerate all of the pages after deployment in the new environment ? Thanks Andrew W On Thursday

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Andrew W
and again: I edited each page and submitted. All OK.Just a little bit of a pain. It is only a one off task, but would a Submit All button be appropriate on the Manage Pages page ? On Thursday, January 10, 2013 8:42:34 AM UTC+13, Andrew W wrote: I'll answer my own questions :) : It's

[web2py] Re: anyone tried jQuery svg?

2013-01-07 Thread Andrew W
I haven't either, but I'd recommend a look at d3js.org, if you want to use svg. I've done something similar to this one, using a web2py generated json data feed - data driven layout ! http://mbostock.github.com/d3/talk/2016/bundle.html On Monday, January 7, 2013 7:29:10 AM UTC+13,

[web2py] Re: auth.wiki menugroups not working

2013-01-02 Thread Andrew W
']). The models statement creates the auth.wiki, but menugroups was not defined at that time, which is why I still see the Wiki menu. I've added menugroups to the models auth.wiki call, and it all works now ! (or remove the auth.wiki call from models). Thanks Andrew W return auth.wiki(render

[web2py] Re: Help with book proofreading

2012-12-31 Thread Andrew W
OK. Corrections in place - just update the diff log directly ? On Tuesday, January 1, 2013 6:36:26 AM UTC+13, Massimo Di Pierro wrote: This file: https://dl.dropbox.com/u/18065445/Tmp/diff2.log contains the lines added or edited in the book so far. If some of you can help proof-read

[web2py] auth.wiki menugroups not working

2012-12-31 Thread Andrew W
I have this in my controller function return auth.wiki(render='markmin', menugroups = ['wiki-editor','wiki-author']) but [Wiki] still appears in the menu when not logged in. --

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-29 Thread Andrew W
-latest.js; type=text/javascript/script script type=text/javascriptjQuery(function(){bkLib.onDomLoaded(nicEditors.allTextAreas);});/script {{=content}} On Saturday, 29 December 2012 01:35:34 UTC-6, Andrew W wrote: you just attach it to the textarea...: I don't quite follow. Can you expand

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-28 Thread Andrew W
/scriptlink href= http://speckedit.com/_library/2008/10/speck.css;http://speckedit.com/_library/2008/10/speck.css rel=stylesheet type=text/css /scriptspeckInit();/script That should be all. On Saturday, 15 December 2012 11:26:23 UTC-6, Andrew W wrote: On developers forum, Massimo mentioned

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-28 Thread Andrew W
P.S. I'm talking about using it with auth.wiki On Saturday, December 29, 2012 8:35:34 PM UTC+13, Andrew W wrote: you just attach it to the textarea...: I don't quite follow. Can you expand please, do I add the script code to layout.html, do I need to actually download the plugin

Re: [web2py] Re: RFC: web2py-based workflow engine

2012-12-19 Thread Andrew W
engine going ? Regards Andrew W --

[web2py] Re: The book updates and status

2012-12-19 Thread Andrew W
Just checking in on how the 5th edition is going ? Thanks On Thursday, November 29, 2012 11:58:29 PM UTC+13, Kostas M wrote: I have bought the (printed) web2py book (editions 3rd and 4th) from Lulu, and my note is that the black white printouts are much less attractive from the web css

[web2py] Re: The book updates and status

2012-12-19 Thread Andrew W
to the online english version. Massimo On Wednesday, 19 December 2012 03:11:37 UTC-6, Andrew W wrote: Just checking in on how the 5th edition is going ? Thanks On Thursday, November 29, 2012 11:58:29 PM UTC+13, Kostas M wrote: I have bought the (printed) web2py book (editions 3rd and 4th

[web2py] Getting Apache 2.4 to work on Suse Linux

2012-12-19 Thread Andrew W
Hi all, Just a note on Apache that may help others: I've battled for days with getting web2py working with apache (2.4) on a Suse linux server. I kept on getting Forbidden errors. I eventually stumbled onto the Require all granted statement - once I added this then everything works fine.

[web2py] Re: The book updates and status

2012-12-19 Thread Andrew W
I'm happy to proof read. Send it through when ready. Andrew W On Thursday, December 20, 2012 2:46:41 PM UTC+13, Anthony wrote: On Wednesday, December 19, 2012 5:56:48 PM UTC-5, Massimo Di Pierro wrote: I have been going over that document. The things in gray were not in the published 4th

[web2py] Re: NEWINSTALL not working

2012-12-17 Thread Andrew W
Thanks --

Re: [web2py] raspberry pi

2012-12-15 Thread Andrew W
I just bought one with the goal that its a clever toy that the kids to learn and have some fun at the same time, --

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-15 Thread Andrew W
On developers forum, Massimo mentioned: auth.wiki() supports html tags (float divs, tables, image uploading, etc.)? yes. How do I enter a generic tag like a div with a class? Also, Notice that auth.wiki() can use wysiwyg if you simply set it up that way and including an appropriate js

[web2py] NEWINSTALL not working

2012-12-15 Thread Andrew W
Hi, Trying to get an updated welcome.w2p file. I've added a NEWINSTALL file (which usually works), but not today ! The last time it worked successfully was 18 Nov. Anyone else getting this ? --

Re: [web2py] Re: Auth.wiki() documentation

2012-12-14 Thread Andrew W
I hope to have a website up and running soon where I have done the following (If you have a better idea, then please let me know) in layout.html, or in default/index.html {{if request.args==['index'] or request.args==[]: }} # The Main Page div class=banner .other

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-14 Thread Andrew W
Thanks, but how do I specify the class in the wiki page? --

Re: [web2py] Re: Auth.wiki() documentation

2012-12-13 Thread Andrew W
Hi Alan, I have been checking out auth.wiki to see what can be done, in particular how to get different page layouts within the one index controller and view. Would you wrap something like this example (from the slice) in an if clause ? Or, I imagine you could use this scenario for boilerplate

[web2py] Re: count distinct

2012-12-13 Thread Andrew W
Does your dbms support count(distinct ) ? What happens if you only put one column in COUNT(DISTINCT vista.municipio) ? On Friday, December 14, 2012 1:13:32 PM UTC+13, Niphlod wrote: it may help knowing what are you trying to count (e.g. write down the plain sql syntax you'd like to fire,

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-13 Thread Andrew W
Also, with Images I can do left , right, center. Can I do something like a css clear / clear: both ? On Friday, December 14, 2012 6:35:11 AM UTC+13, viniciusban wrote: I need to identify images by its location. When they're inside a table, it's easier because I can attach a class to the

[web2py] Re: MARKMIN line break

2012-12-06 Thread Andrew W
I assume you are no longer talking about markmin. I didn't think you could use {{ }} in markmin. Correct ? On Sunday, December 2, 2012 10:51:49 PM UTC+13, apps in tables wrote: Thank you... On Sunday, December 2, 2012 7:45:50 AM UTC+3, Massimo Di Pierro wrote: You are missing that

[web2py] Re: videos not working in auth.wiki page

2012-11-28 Thread Andrew W
It's: Ecover at sea [[ecover http://www.youtube.com/watch?v=NgZIyJm2Aao video]] On Wednesday, November 28, 2012 5:14:41 AM UTC+13, Massimo Di Pierro wrote: Can you please post the exact wiki content you are using with auth.wiki? On Tuesday, 27 November 2012 02:40:13 UTC-6, Andrew W

[web2py] Re: videos not working in auth.wiki page

2012-11-28 Thread Andrew W
a video. You have to let web2py's oembed protocol figure out how to embed it. On Wednesday, 28 November 2012 02:27:03 UTC-6, Andrew W wrote: It's: Ecover at sea [[ecover http://www.youtube.com/watch?v=NgZIyJm2Aao video]] On Wednesday, November 28, 2012 5:14:41 AM UTC+13, Massimo Di

[web2py] Re: The book updates and status

2012-11-28 Thread Andrew W
. Massimo On Tuesday, 27 November 2012 23:01:17 UTC-6, Andrew W wrote: May I ask, in terms of status, where are we up to ? What is *still left to do* to bring the documentation up to date for Version 2.2.x ? Thanks. On Friday, November 23, 2012 3:46:01 PM UTC+13, Andrew W wrote

[web2py] Re: Where does auth.wiki save pages to?

2012-11-28 Thread Andrew W
But I think you need to differentiate between the wiki static pages, and blog type of article pages.I think the intent of auth.wiki was to allow the simple creation of a user updated website, not so much with blog type articles pages. But that's an interesting way to get both. What

[web2py] Re: auth.wiki( extra=dict() )

2012-11-28 Thread Andrew W
customised style to your auth.wiki page. I hope to show it in use very soon. On Monday, November 19, 2012 1:15:52 AM UTC+13, Massimo Di Pierro wrote: Should work the same. Perhaps this is a bug. Please open a ticket and I will look asap. On Saturday, 17 November 2012 19:21:52 UTC-6, Andrew

[web2py] Re: videos not working in auth.wiki page

2012-11-27 Thread Andrew W
This is what I see and the play button doesn't work (see attached). The link is OK as I can open it if I right click and press Open Video in new tab. Thanks On Friday, November 23, 2012 3:51:49 PM UTC+13, Andrew W wrote: Could you please confirm that it's working OK ? thanks

Re: [web2py] Database table prefix

2012-11-27 Thread Andrew W
What about a prefix column, and filter all selects on the prefix. A single database ctructure sounds more scalable and logically you're partitioning the data based on login or context. Prefixing table names doesn't sound like a good idea. --

[web2py] Re: The book updates and status

2012-11-27 Thread Andrew W
May I ask, in terms of status, where are we up to ? What is *still left to do* to bring the documentation up to date for Version 2.2.x ? Thanks. On Friday, November 23, 2012 3:46:01 PM UTC+13, Andrew W wrote: Thanks. On Friday, November 23, 2012 2:39:41 PM UTC+13, villas wrote: Hi

Re: default vs not-default (was Re: [web2py] perhaps a silly question about index)

2012-11-22 Thread Andrew W
Have you read the Overview chapter of the book? To achieve what you want you would not put controllers in the model folder, they go in the controllers folder. The default/index in the path refers to the file name and the function within the file name. So green/eggs/ham.refers to the green app,

[web2py] The book updates and status

2012-11-22 Thread Andrew W
The book has been at 4th edition for a while and I'm sure there have been updates since then. The edition numbers may tick over at major updates,but is it possible to put a last update date on it to tell when it has changed. One thing we talked about before version 2 was getting the doco up to

[web2py] Re: The book updates and status

2012-11-22 Thread Andrew W
Thanks. On Friday, November 23, 2012 2:39:41 PM UTC+13, villas wrote: Hi Andrew You can see the current state and updates here: https://github.com/mdipierro/web2py-book On Thursday, November 22, 2012 4:32:39 PM UTC, Andrew W wrote: The book has been at 4th edition for a while and I'm

[web2py] Re: videos not working in auth.wiki page

2012-11-22 Thread Andrew W
Could you please confirm that it's working OK ? thanks On Saturday, November 17, 2012 10:37:14 AM UTC+13, Andrew W wrote: Thanks. That's what I did. On Friday, November 16, 2012 11:56:49 PM UTC+13, Massimo Di Pierro wrote: No. You do not need it. You just cut and paste the link

[web2py] Re: auth.wiki( extra=dict() )

2012-11-17 Thread Andrew W
I'm assuming it works differently to the markmin document.I can see is adds a class called custom, but I don't see the lambda function working as in: markmin2html(‘‘aaa‘‘:custom, extra=dict(custom=lambda text: ’x’+text+’x’ generates ’xaaax’ (the ‘‘...‘‘:custom block is

[web2py] Re: auth.wiki( extra=dict() )

2012-11-16 Thread Andrew W
Yes, it's broken: AttributeError: 'Wiki' object has no attribute 'extra' I made the change below and it works. On Saturday, November 17, 2012 12:54:14 AM UTC+13, villas wrote: Hi Massimo, I've just been checking it. I think you need to change this... Wiki __init__() This line:

[web2py] Re: videos not working in auth.wiki page

2012-11-16 Thread Andrew W
Thanks. That's what I did. On Friday, November 16, 2012 11:56:49 PM UTC+13, Massimo Di Pierro wrote: No. You do not need it. You just cut and paste the link to the youtube video page and it will embed the video automatically. On Thursday, 15 November 2012 22:32:17 UTC-6, Andrew W wrote

[web2py] videos not working in auth.wiki page

2012-11-15 Thread Andrew W
Is anyone using video links with auth.wiki ? I'm just getting the bottom bar with the Play button, but nothing else and nothing happens when I press Play. I did have success with plugin_wiki, but I would like to get it up and running with auth.wiki. I've tried with Chrome and Safari. Thanks

[web2py] Re: videos not working in auth.wiki page

2012-11-15 Thread Andrew W
No, I was posting a link to a youtube video. On Friday, November 16, 2012 2:41:01 PM UTC+13, Massimo Di Pierro wrote: what video type. Are the video hosted in the wiki? On Thursday, 15 November 2012 02:05:20 UTC-6, Andrew W wrote: Is anyone using video links with auth.wiki ? I'm just

[web2py] Re: videos not working in auth.wiki page

2012-11-15 Thread Andrew W
Does the plugin_wiki syntax work in auth.wiki ? (I'll try it tonight). From the book (plugins section): For example, to embed a YouTube video in a plugin_wiki page, you can do `` name: youtube code: l7AWnfFRc7g ``:widget or to embed the same widget in a web2py view, you can do:

[web2py] Re: how to hide the [wiki] menu option in auth.wiki

2012-11-13 Thread Andrew W
Works great, thanks. I've also sent Massimo a patch for tools.py to fix it in trunk. I hope to deploy a website soon using auth.wiki and this was one of my last hurdles. On Wednesday, November 7, 2012 12:25:44 AM UTC+13, villas wrote: I do not want the wiki menu to be displayed to anyone

[web2py] Re: how to hide the [wiki] menu option in auth.wiki

2012-11-06 Thread Andrew W
. On Saturday, October 27, 2012 9:01:42 AM UTC+13, Andrew W wrote: Looking at the change, it looks like a non logged in person can still see [Wiki]. Could I suggest that the append statement comes inside the if self.auth.user test: if self.auth.user: menu.append((current.T('[Wiki

[web2py] Re: MS SQL server

2012-11-05 Thread Andrew W
Yes, there are a lot of advantages, but if your legacy tables can't be changed ? Is it worth exploring The addition of PK support in forms and the grid? Not the most optimised solution, but one that you may have to do. --

[web2py] Re: extending dal

2012-10-30 Thread Andrew W
Is it a web service interface to ebay what you are after, and storing some details locally ? If it is I'm not sure that extending the DAL is the right way to go. If you just want to interface to query ebay, look at

  1   2   >