[web2py] Re: New Application Wizard - Layout Themes and Plugins
oops. On Monday, 9 February 2015 19:17:07 UTC-6, chris_g wrote: I have noticed that the New Application Wizard ( /admin/wizard/step1 ) does not contain any Layout Themes or Plugins. See attachment. According to this post ( https://groups.google.com/d/msg/web2py/frUArP3gp6w/PCx2Z-3gxIkJ ) from 2011, these selections are populated by these AJAX calls: http://www.web2py.com/plugins/default/plugins.json http://www.web2py.com/plugins/default/plugins.json I have listed the results that I am getting below and I have also attached a screen shot of what the page looks like. I am just trying to determine if this is a broken feature in the Wizard or if I have something odd with my local setup. (I have setup web2py on my local linux VM at a site that uses lots of firewalls and proxies to get between me and the internet.) Are others seeing the same behaviour that I am getting? Is this Wizard still the preferred way of deploying a new site? I am using Version 2.9.12-stable+timestamp.2015.01.17.06.11.03 Thanks, Chris -- 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 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/d/optout.
[web2py] Re: Best and simpler approach to Inline editing / deleting / appending (jqGrid, Jeditable,etc)
I have used both and I think handsontable is much superior and customizable. On Monday, 9 February 2015 20:50:00 UTC-6, Michael Beller wrote: I've started using http://www.datatables.net/ primarily for the great search and responsive behavior. I've read about the inline support but haven't tried it yet but it looks very good. The other option that looks very good is http://handsontable.com/ but I've only read through the documentation. On Saturday, February 7, 2015 at 11:00:45 PM UTC-5, clara wrote: Hello, I know this has been asked before, there are Web2py Slices (some of which seem to be outdated), questions posted here on the subject but somehow it is not clear to me which path I should take to implement a grid with inline editable fields, appendable/deletable records. I am looking to some compact solution which I am not sure it exist that would have the functionality of current *SQLFORM.smartgrid* but in addition to it: inline editable fields and deletable/appendable records. I will greatly appreciate any input on this. Best regards, Clara -- 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 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/d/optout.
Re: [web2py] Re: web2py and security
I am not too active or up to date on security, I assume you already looked at: http://www.web2py.com/book/default/chapter/01#Security and at the end of the section it referenced generic python security here: http://www.pythonsecurity.org/ Rufus On 2/11/2015 8:23 AM, James O' Driscoll wrote: Rufus, I am asking how to configure web2py for maximum security. I am not an expert either but you cannot be too careful. I am just looking for general good sources of info. Regards, James On Sunday, November 23, 2014 at 6:55:52 AM UTC+10, Rufus wrote: What aspect of security are you concerned about? Are you asking how to configure web2py for maximum security? Are there aspects of the security model you feel need boosting? Have you read the manual about web2py and security? I'm not an expert, but as I understand it, security was one of the prime design goals of web2py. On Wednesday, November 19, 2014 8:42:12 PM UTC-5, James O' Driscoll wrote: Are there any good resources on how to boost the security of web2py. Regards, James -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/0sHTAb54xqM/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com mailto:web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 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/d/optout.
[web2py] Conditional https but none or all
Hi, I would like to force https before login and after authentication for all the site. I would like also to force http (if there is any direct https request) for the fact that the visitor is not authenticated and is not requesting to do so. By definition, auth's secure=True parameter seems to be what I want but it forces https as soon as the visitor accesses the site. I checked the code and it seems to be the intended behaviour if I am not mistaken (Have I been?). Just to see how it goes, in my model, right after auth is defined, I added the below code. if request.function=='user' or auth.user: request.requires_https() elif request.is_https: redirect(URL(scheme='http', vars=request.vars, args=request.args)) This seems to do what I want (it protects the session too. If the user navigates by typing an http address of the site, it looses the authentication status as the browser does not send the secured session thru http connection). I would appreciate any other idea or proposal. -- 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 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/d/optout.
Re: [web2py] Redirect Error
Seeing the whole controller and view may help... You can also try just your redirection that fail in a new controller function to see if it works or not... Just a simple redirect not the in your controller but if it could be using the same url parameter... For instance pass the id instead of getting id from env... Some times web2py lies on where the issue come from... From the code you show us, I can't see any str and http object concatenation... Richard On Tue, Feb 10, 2015 at 6:32 PM, Maggs maggs.csom@gmail.com wrote: Hey all, I recently set up a new dev environment with a new version of web2py (2.9.11). In production I am currently running version 1.99.7. When I imported my 1.99.7 apps into version 2.9.11 I had to clean up a few issues, but this one I'm unable to figure out. I have a simple page that updates an object based on form input. Everything seems to be working just fine and the object is being updated, however the redirect is producing this error: type 'exceptions.TypeError' cannot concatenate 'str' and 'HTTP' objects Versionweb2py™Version 2.9.11-stable+timestamp.2014.09.15.23.35.11Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Traceback (most recent call last): File /var/web2py/gluon/restricted.py, line 224, in restricted exec ccode in environment File /var/web2py/applications/configgui/views/environment/edit.html, line 74, in module File /var/web2py/gluon/languages.py, line 416, in __len__ return len(str(self)) File /var/web2py/gluon/languages.py, line 379, in __str__ self.T.translate(self.m, self.s)) File /var/web2py/gluon/languages.py, line 923, in translate lambda: self.get_t(message)) File /var/web2py/gluon/languages.py, line 141, in get_from_cache result = lang_dict.setdefault(val, fun()) File /var/web2py/gluon/languages.py, line 923, in lambda lambda: self.get_t(message)) File /var/web2py/gluon/languages.py, line 795, in get_t key = prefix + message TypeError: cannot concatenate 'str' and 'HTTP' objects So the page is super simple and looks like this: env['name'] = request.vars.name.strip() env['category_id']=request.vars.category env['description']=request.vars.description env.update() logger.write(request.url, env, 'Updated Environment', env['name'], session.username) url = URL(c='environment', f='details', args=[env['id']]) redirect(url) This is after the form.accepts criteria. I have put print statements after every line to try to pinpoint where the error was being produced and everything seems to be running successfully except for the redirect. Any ideas why this is happening? I looked up redirect in the documentation thinking perhaps something has changed in the redirect functionality in the new version of web2py, but haven't seen anything that would explain this. Thanks, M -- 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 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/d/optout. -- 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 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/d/optout.
[web2py] Re: db value display
This is the way you control the data. readable=False/True controls what user sees fields = [] control what your code and query can manipulate behind the scenes -- 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 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/d/optout.
[web2py] Re: Stange behavior with SQLFORM 'fields' parameter
If you need to use field_list elsewhere and don't want it to be mutated by SQLFORM, then just pass a copy of it to SQLFORM instead. import copy form = SQLFORM(db.t_table_1, fields = copy.copy(field_list)) I suppose SQLFORM could be changed to do the copying itself. Anthony On Wednesday, February 11, 2015 at 12:10:53 PM UTC-5, Spokes wrote: After passing a list to SQLFORM's 'fields' parameter, it appears that 'id' is prepended to that list. For example: field_list = ['field_1', 'field_2', 'field_3', ...] form = SQLFORM(db.t_table_1, fields = field_list) After the above statements are executed, 'field_list' is equal to ['id', 'field_1', 'field_2', 'field_3', ...]. Has anyone else noticed the same issue? If this is a common occurrence, rather than something idiosyncratic to my program (and I haven't found anything in my code that's likely to cause this to happen), it doesn't seem like a desirable behavior from SQLFORM. -- 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 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/d/optout.
[web2py] Stange behavior with SQLFORM 'fields' parameter
After passing a list to SQLFORM's 'fields' parameter, it appears that 'id' is prepended to that list. For example: field_list = ['field_1', 'field_2', 'field_3', ...] form SQLFORM(db.t_table_1, fields = field_list) After the above statements are executed, 'field_list' is equal to ['id', 'field_1', 'field_2', 'field_3', ...]. Has anyone else noticed the same issue? If this is a common occurrence, rather than something idiosyncratic to my program (and I haven't found anything in my code that's likely to cause this to happen), it doesn't seem like a desirable behavior from SQLFORM. -- 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 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/d/optout.
[web2py] Drill-down menu with PostgreSQL
I am trying to build a geo-based drill-down sitemap for my website, pretty much like this https://www.airbnb.com/sitemaps/western-europe?locale=en What I have is a model with the following fields: administrative_area_level_1 administrative_area_level_2 locality sublocality_level_1 I could loop on each field and run queries to list corresponding entries, but that seems very database-inefficient. Is there a clean way to build this kind of hierarchy with a single request ? -- 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 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/d/optout.
[web2py] Re: Testing and web2py - especially appadmin
On Wednesday, February 11, 2015 at 5:20:28 AM UTC-8, James O' Driscoll wrote: All. I have not been receiving any feedback with regards testing. You might want to check over on web2py-developers, if the book isn't any help. URL:http://web2py.com/books/default/chapter/29/15/helping-web2py#Adding-tests (that includes a refernce to PySlice 1691) I'm not sure what automatic testing is part of the continuous integration project, or whether any Selenium tests are around. (I don't hang out on the dev list much; I'm already almost a year behind on the other dev list I try to follow =8-O ) /dps So are no tests available for key functions supplied with web2py, i.e. appadmin. If this is the case, it is a definite downside to the framework. Regards, James On Thursday, February 5, 2015 at 1:10:31 PM UTC+10, James O' Driscoll wrote: I am currently working on creating tests for my default controller, I have found a few articles relating to web2py and unit testing, but not many. I have two questions: 1. Any recommendations for good resources available to help create tests for web2py. 2. Is there a doctest/unit test available for the appadmin controller. Regards, James -- 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 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/d/optout.
[web2py] Re: BLOB fields in MSSQL Server
this has nothing to do with the aforementioned error (operand type clash). In addition to that, TEXTSIZE just limits what a text, image, varbinary, varchar field is allowed to be fetched, not stored. Since web2py is using odbc, and odbc uses the max limit that you mention by default, if you're seeing something truncated it's not a web2py issue, but something related to your middleware setup (unixodbc or freetds). According to the docs, freetds sets implicitely 4294967295 (4 GB), so if you're not setting it explicitely, you should be good to go without further issues. On Tuesday, February 10, 2015 at 8:56:43 PM UTC+1, Raul Monares wrote: I had a similar problem with truncated info in blob fields. This line fixed for me: db.executesql('SET TEXTSIZE 2147483647') right after the DAL connection On Tuesday, February 10, 2015 at 8:24:19 AM UTC-7, Jose wrote: Hello everyone I have the following: Web2py on Freebsd. Database: SQLServer 2008 Connection: web2py - pyodbc - UnixODBC - FreeTDS - SQLServer I'm trying to store some uploaded files into a blob field, instead than on the file system. The table was created by the administrator SQLServer CREATE TABLE [dbo].[DocumentosBlob]( [Id] [numeric](18, 0) IDENTITY(1,1) NOT NULL, [Nombre] [varchar](50) NULL, [Archivo] [varchar](512) NULL, [Archivo_Blob] [text] NULL, [Archivo_Blob2] [image] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] The adapter defines SQLServer blob fields as IMAGE ('blob': 'IMAGE',). Then use for testing the Archivo_Blob2 field is set to IMAGE In my model I have: tb_documentos_blob = db.define_table('DocumentosBlob', Field('nombre', length=50), Field('archivo', 'upload', uploadfield='archivo_blob2'), Field('archivo_blob2', 'blob', writable=False, readable=False), migrate=False, ) But it happens that when trying to upload a file upload the following error occurs: *DataError: ('22018', '[22018] [FreeTDS][SQL Server]Operand type clash: text is incompatible with image (206) (SQLExecDirectW)')* Then I changed the field, using one type TEXT (Archivo_Blob). The model will now be: tb_documentos_blob = db.define_table('DocumentosBlob', Field('nombre', length=50), Field('archivo', 'upload', uploadfield='archivo_blob'), Field('archivo_blob', 'blob', writable=False, readable=False), migrate=False, ) Now it works, I can upload and download files, but only with very small files. Tested with 20KB. With one of 250KB upload it, but at download it is broken. I imagine that was truncated when stored in the database. How I can fix this? Best Regards José -- 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 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/d/optout.
[web2py] Re: Stange behavior with SQLFORM 'fields' parameter
Yep, my intention was to use field_list afterwards, and it's simple enough to get around the problem. The bigger issue may be that the side effect in question can cause bugs that are a bit trickier than usual to track down, since it's happening under the hood, so to speak, and is unexpected. I thought it might be a good idea to have SQLFORM do the copying; I suppose the downside is that this would entail a slight performance hit, but the upside is that it averts an unanticipated behavior from SQLFORM. If the development team and other users aren't too bothered by it, perhaps it's better to leave it as is, but I thought it was worth a mention that this could be an issue. On Wednesday, February 11, 2015 at 12:33:16 PM UTC-5, Anthony wrote: If you need to use field_list elsewhere and don't want it to be mutated by SQLFORM, then just pass a copy of it to SQLFORM instead. import copy form = SQLFORM(db.t_table_1, fields = copy.copy(field_list)) I suppose SQLFORM could be changed to do the copying itself. Anthony On Wednesday, February 11, 2015 at 12:10:53 PM UTC-5, Spokes wrote: After passing a list to SQLFORM's 'fields' parameter, it appears that 'id' is prepended to that list. For example: field_list = ['field_1', 'field_2', 'field_3', ...] form = SQLFORM(db.t_table_1, fields = field_list) After the above statements are executed, 'field_list' is equal to ['id', 'field_1', 'field_2', 'field_3', ...]. Has anyone else noticed the same issue? If this is a common occurrence, rather than something idiosyncratic to my program (and I haven't found anything in my code that's likely to cause this to happen), it doesn't seem like a desirable behavior from SQLFORM. -- 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 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/d/optout.
Re: [web2py] Re: web2py and security
On Wednesday, February 11, 2015 at 8:07:10 AM UTC-8, Rufus wrote: I am not too active or up to date on security, I assume you already looked at: http://www.web2py.com/book/default/chapter/01#Security and at the end of the section it referenced generic python security here: http://www.pythonsecurity.org/ Rufus Also, back in August Massimo posted this: About security (a). You cannot beat the security of web2py. Friday I am giving a talk at OWASP in Orange County about this. I will post slides. The University where I teach was one of the first in the country to receive a certificate of excellence from the NSA. This was not about web2py but this is to say we are security experts. URL:https://groups.google.com/d/msg/web2py/jao7o735bBM/YtFeclUntwcJ Also note that web2py takes care of several security issues that other environments leave to the individual developer, who might not be trained to think of security issues. (OWAPS-OC is a local chapter of *The Open Web Application Security Project *. You might see if you have a chapter in your area, or browse for their materials. The chapter link is URL:http://www.meetup.com/OWASP-OC/) /dps -- 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 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/d/optout.
[web2py] Re: Drill-down menu with PostgreSQL
did you actually timed the queries ? without knowing the cardinality of the sets, it's pretty impossible to say that a single big-query will be more efficient than 4 on small subsets. -- 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 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/d/optout.
[web2py] Re: import gluon.tools under private modules
yes it is under the /opt/web-apps/web2py/applications/afs/private folder. what i really want to do is run this private module as a python script under bash console. because if i try to run it under the controller, it will consume all of the CPU and leave the main website locked until the processes are done. even with time.sleep(10) in there. so how can i access/import web2py/gluon modules while the code is running under bash? On Wednesday, February 11, 2015 at 8:42:41 AM UTC-5, Leonel Câmara wrote: Is your module in the application's modules folder? -- 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 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/d/optout.
[web2py] Re: web2py and security
Rufus, I am asking how to configure web2py for maximum security. I am not an expert either but you cannot be too careful. I am just looking for general good sources of info. Regards, James On Sunday, November 23, 2014 at 6:55:52 AM UTC+10, Rufus wrote: What aspect of security are you concerned about? Are you asking how to configure web2py for maximum security? Are there aspects of the security model you feel need boosting? Have you read the manual about web2py and security? I'm not an expert, but as I understand it, security was one of the prime design goals of web2py. On Wednesday, November 19, 2014 8:42:12 PM UTC-5, James O' Driscoll wrote: Are there any good resources on how to boost the security of web2py. Regards, James -- 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 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/d/optout.
Re: [web2py] import gluon.tools under private modules
See http://web2py.com/books/default/chapter/29/04/the-core#API On Tue, 10 Feb 2015 18:54:33 -0300 lucas wrote hey everyone, i am writing a private module, like dude.py under applications/app/private. how do i access the web2py library like from gluon.tools import Mail and have it run properly under the private module? thank you in advance, lucas -- 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 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/d/optout. -- 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 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/d/optout.
[web2py] Re: submenus in layout
oh and the reason mine didn't work is, the layout plugins on web2py don't use bootstrap it seems. I changed to using a bootstrap3 scaffold, and a themed bootstrap.min.css, and it worked fine. On Tuesday, 10 February 2015 08:33:01 UTC, Yebach wrote: I would like to create a drop down menu in my layout. The data for menu is read from menu.py this is my list for menu response.menu_logged = [ (T('Schedules'),URL('default','index')==URL(),URL('default','index')), (T('New schedule'),URL('script','edit')==URL(),URL('script','edit', args='new')), (T('Settings'), False, None, [ (T('Workers'),URL('settings','workers')==URL(),URL('settings','workers')), (T('Shifts'),URL('settings','turnusi')==URL(),URL('settings','turnusi')), (T('Config'),URL('settings','config')== URL(),URL('settings','config')) ,] )] Now I would like to put workers, shifts and config in one submenu (dropdown) called settings (Schedules,new schedule, and config to be horizontal and then config menus vertical ) and in my layout.html {{if auth.is_logged_in():}} {{ for i, page in enumerate(response.menu_logged): }} li{{ if response.menu_logged[i][1]: response.write(XML(' class=active')) }}a href={{ =response.menu_logged[i][2] }}{{ =response.menu_logged[i][0] }}/a/li {{ pass }} lia href= https://sites.google.com/site/navodilawoshi/; target=_blank{{=T('Help')}}/a/li any suggestions? Is there is a possibility to do it with web2py and not html/css/js? thank you -- 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 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/d/optout.
Re: [web2py] How to run web2py on Linux Shared Hosting With No Shell, or SSH access
Hi, sometimes clients have a shared hosting, and they don't want to change... The most recommended way is wcgi or mod python, but if the shared hosting not support it, and you have no option, you can run it with the cgi support (almost all support it), really not recomended because of performance, but for a low traffic site can work. If you need it I can post how I did it in a namecheap shared hosting. Regards. El 10/02/15 a las 16:06, Massimo Di Pierro escribió: I do not understand why anybody would use shared hosting in 2015 when you can have PythonAnywere or Google App Engine for free or a dedicated VM on Digital Ocean for $5/mo. Anyway, the book chapter Shared hosting with mod_python must go. mod_python should not be used by anybody anymore. How to use web2py on shared hosting really depends on what they allow. Probably your best best is running web2py locally under the credentials of the user of the shared account and use htaccess/cpanel to do a port redirection using for example apache mod_proxy. I can give more details if you point me to some documentation from the host company. Massimo On Monday, 9 February 2015 03:04:25 UTC-6, Alexander Morales wrote: I'm waiting for a reply too. I can't run my web2py on a shared hosting with CPanel. The official tuttorial isn't working... thanks Alexander El sábado, 18 de mayo de 2013, 20:32:33 (UTC-4:30), Neeraj Kumar escribió: I am reseller and already have 8+ domains hosted with them. Its really painful and time taking to switch, and they offer pretty good space and bandwidth(for non web2py, i am still fine with their services, but for web2py silicon house is behaving pathetically). They are not offering SSH access, asking to take cloud/VPS, but don't want to spend that much of money. (Though i will definitely switch if nothing works). Well, in web2py manual 5th edition i read section 13.2.10 for Shared hosting with mod_python. That looked promising upon reading, but did not work. I am basically thinking on 2 lines for solution(3rd obviously is changing the hosting provider): 1) I believe there should be some way out over here, by means of ScriptAlias, SetHandler or PythonHandler, etc in .htaccess file 2) I have access to cPanel, and do see an icon for cron jobs and I believe i can execute some commands by means of this. But do not know what to execute :) If anybody has done it in past without modifying apache configuration files(..conf/apache.conf, and ..conf/extra/httpd-vhosts.conf), then that experience will be of great help. On Friday, May 17, 2013 6:10:57 PM UTC+5:30, yamandu wrote: Have you asked your host for SSH access? I have used hostgator, I have to ask then to grant me SSH access, and even with this is a pain to make web2py run there. If they dont give it anyway, consider change the host, give a try at pythonanywhere.com http://pythonanywhere.com, you should install web2py with one click. 2013/5/16 Neeraj Kumar neeraj...@gmail.com Hi, I am trying to deploy Web2Py on my linux shared hosting with siliconhouse.net http://siliconhouse.net. Python runs on their system, able to run HelloWorld.py But when i unzipped the files on my public_html folder(with 755 permission on *.py files), instead of running it, it shows me listing of all files including *.py files. I am not sure what the problem is? If i click on any *.py files, it shows me 500-Internal Server Error 500. I have no shell or SSH access, is there a simple and easy way for me to be able to run web2py on this. They are using mod_python, and i can not deploy mod_wsgi. Is there any alternate, or is there something i can do my editable area i.e. inside public_html/..., so that when open my site i should be able to see running web2py application of my choice? I shall be highly thankful for any assistance on this. Regards, Neeraj Kumar -- --- 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+un...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out https://groups.google.com/groups/opt_out. --
[web2py] Re: import gluon.tools under private modules
That's not the right folder to put your module files. You should put it in: /opt/web-apps/web2py/applications/afs/modules -- 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 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/d/optout.
[web2py] Re: Showing menu only after successful login
thank you to you both, i tried each solution and the second one works best for me! Simon -- 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 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/d/optout.
[web2py] Re: Testing and web2py - especially appadmin
All. I have not been receiving any feedback with regards testing. So are no tests available for key functions supplied with web2py, i.e. appadmin. If this is the case, it is a definite downside to the framework. Regards, James On Thursday, February 5, 2015 at 1:10:31 PM UTC+10, James O' Driscoll wrote: I am currently working on creating tests for my default controller, I have found a few articles relating to web2py and unit testing, but not many. I have two questions: 1. Any recommendations for good resources available to help create tests for web2py. 2. Is there a doctest/unit test available for the appadmin controller. Regards, James -- 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 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/d/optout.
[web2py] Re: db value display
Thanks for your anwer. It actually works.. I don't really get why. But anyway, I think the right way to achieve this is the showid=False sqlform option. I read the whole db doc but forget to check exhaustively the form docs. Thanks again. ;) -- 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 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/d/optout.
Re: [web2py] Redirect Error
On Wednesday, February 11, 2015 at 8:48:17 AM UTC-8, Richard wrote: Seeing the whole controller and view may help... You can also try just your redirection that fail in a new controller function to see if it works or not... Just a simple redirect not the in your controller but if it could be using the same url parameter... For instance pass the id instead of getting id from env... Some times web2py lies on where the issue come from... From the code you show us, I can't see any str and http object concatenation... Richard I didn't either, but learned from the book that redirect() is a wrapper for raise HTTP(303, 'You are being redirected a href=%shere/a' % location, Location='http://www.web2py.com') URL:http://web2py.com/books/default/chapter/29/04/the-core?search=redirect#HTTP-and-redirect It might be interesting to unwrap and see if the same issue occurs. (I have some experience in trying to concatenate strings and other stuff, so while I might not be experienced with redirect() I am experienced with tickets ;-} ) /dps On Tue, Feb 10, 2015 at 6:32 PM, Maggs maggs.c...@gmail.com javascript: wrote: Hey all, I recently set up a new dev environment with a new version of web2py (2.9.11). In production I am currently running version 1.99.7. When I imported my 1.99.7 apps into version 2.9.11 I had to clean up a few issues, but this one I'm unable to figure out. I have a simple page that updates an object based on form input. Everything seems to be working just fine and the object is being updated, however the redirect is producing this error: type 'exceptions.TypeError' cannot concatenate 'str' and 'HTTP' objects Versionweb2py™Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Traceback (most recent call last): File /var/web2py/gluon/restricted.py, line 224, in restricted exec ccode in environment File /var/web2py/applications/configgui/views/environment/edit.html, line 74, in module File /var/web2py/gluon/languages.py, line 416, in __len__ return len(str(self)) File /var/web2py/gluon/languages.py, line 379, in __str__ self.T.translate(self.m, self.s)) File /var/web2py/gluon/languages.py, line 923, in translate lambda: self.get_t(message)) File /var/web2py/gluon/languages.py, line 141, in get_from_cache result = lang_dict.setdefault(val, fun()) File /var/web2py/gluon/languages.py, line 923, in lambda lambda: self.get_t(message)) File /var/web2py/gluon/languages.py, line 795, in get_t key = prefix + message TypeError: cannot concatenate 'str' and 'HTTP' objects So the page is super simple and looks like this: env['name'] = request.vars.name.strip() env['category_id']=request.vars.category env['description']=request.vars.description env.update() logger.write(request.url, env, 'Updated Environment', env['name'], session.username) url = URL(c='environment', f='details', args=[env['id']]) redirect(url) This is after the form.accepts criteria. I have put print statements after every line to try to pinpoint where the error was being produced and everything seems to be running successfully except for the redirect. Any ideas why this is happening? I looked up redirect in the documentation thinking perhaps something has changed in the redirect functionality in the new version of web2py, but haven't seen anything that would explain this. Thanks, M -- 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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- 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 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/d/optout.
[web2py] Re: BLOB fields in MSSQL Server
But it happens that when trying to upload a file upload the following error occurs: *DataError: ('22018', '[22018] [FreeTDS][SQL Server]Operand type clash: text is incompatible with image (206) (SQLExecDirectW)')* This is perfectly fine. web2py adopts a convention that simplifies the code a lot when dealing with different adapters: it stores the content as a base64 encoded string into TEXT fields. No wonder that the insert fails on an image field. Then I changed the field, using one type TEXT (Archivo_Blob). The model will now be: tb_documentos_blob = db.define_table('DocumentosBlob', Field('nombre', length=50), Field('archivo', 'upload', uploadfield='archivo_blob'), Field('archivo_blob', 'blob', writable=False, readable=False), migrate=False, ) Now it works, I can upload and download files, but only with very small files. Tested with 20KB. With one of 250KB upload it, but at download it is broken. I imagine that was truncated when stored in the database. this model is correctly tied to the underlying structure (and web2py conventions). Read my previous post on TEXTSIZE setting throughout your middlewares. -- 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 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/d/optout.
[web2py] Adding entry to the printed book index
I'd like to add terms to the book's index. Looked at the book source https://github.com/mdipierro/web2py-book/tree/master/sources on github but couldn't figure out where that would happen so I could issue a pull request. Can someone give me a brief description of where I'd find it? 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 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/d/optout.
[web2py] Re: import gluon.tools under private modules
well when i try to import a file.py from the private folder in a controller file, web2py throws back that it can't import the file. how come? On Tuesday, February 10, 2015 at 9:55:58 PM UTC-5, Leonel Câmara wrote: You can do exactly that. -- 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 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/d/optout.
[web2py] Re: import gluon.tools under private modules
Is your module in the application's modules folder? -- 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 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/d/optout.
Re: [web2py] Re: Question about web2py roadmap.
I beg to disagree, or perhaps I did not clarify in my original posting. Down in this thread, I believe you mention that (re)used helpers (could) go in modules, which I agree by the way, what I meant to say is that in a potentially complex application, where many common components are usually required, placing the code in a controller, which is tied up to a view would not be the best place to put it, and neither on a model for that matter, therefore new devs tend to throw these functions into the module file, whether is wrapped up in a class or not, and at the end of the day having a function repository equivalent of the god class pattern. Yes, this can happen on every framework, etc, etc, my point is (was) that it is much easier to fall in web2py. Also, even though I have said that I don't use helpers in my projects, there is one that I use extensively because it provides a huge advantage when rewriting URLs URL() that is, and for a designer, seeing something like a href={{=URL('view.html')}}Click Here/a does not look too strange, so there you go, helper functions *do help* sometimes :) On Monday, February 9, 2015 at 6:47:47 AM UTC-8, Richard wrote: I don't think God class is a big concern in web2py... End user don't really need to write class... Sure you can, but since page is tide to a function and you have controllers files that you can use as an class like container to regroup your stuff. Sure I could write class, but considering work and progress nature of my dev, it difficult to predict what shoudl do my class in advence... So, writting class would lead me more in YAGNI state of thinking than in concrete problem solution. Richard On Sat, Feb 7, 2015 at 1:48 PM, Julio F. Schwarzbeck ju...@techfuel.net javascript: wrote: Anthony, your last paragraph is quite interesting. I work for a large corporation, which for good or bad, has back-end web programmers, but also simple html designers. The concept of embedding HTML helpers A(), FORM() in controllers, or modules is frowned upon and it was one of the main reasons they almost dropped the platform altogether since the perception was that the developers would end up making a mess and leave the designers with an interface that is very hard to customize if you don't know python for example. I personally do not use html helpers *at all*, but I can see why for some folks it can be a time saver. Nowadays, I am designing more for mobile than for the desktop, and I am moving web2py to a new paradigm, I am providing the UI entirely for example via jQuery Mobile, or Kendo, and use web2py as an API, service oriented application framework, I find the html helpers are even less needed in this context, as web2py provides me with data abstractions and not view components, and for the MVC/MTV zealots, that is actually a good side effect, heck, even desktop web apps are now becoming single page (think facebook, tweeter, etc). I am comfortable where web2py is heading, it is becoming a large framework, and every developer must evaluate what parts of the framework you want (or need) to use. I think one of web2py's main problems (as seen from many of their detractors), is that it allows the newbie to very easily create database-driven applications - sometime large ones - in which basic software engineering principles are not applied correctly (or at all), this include antipatterns such as the god class, asynchronous gotchas and the like, I am not saying you cannot do them in other platforms, but it is easier in web2py. On Friday, February 6, 2015 at 8:50:41 AM UTC-8, Anthony wrote: ..snip.. Another example is in the search function on the simple wiki: def search(): an ajax wiki search page return dict(form=FORM(INPUT(_id='keyword',_name='keyword', _onkeyup=ajax('callback', ['keyword'], 'target');)), target_div=DIV(_id='target')) Why create a form that not need any kind of postprocessing, even adding a onkeyup attribute, in the controller, when all this code, following MVC should go in the view? I agree that could just as easily go in the view, but I don't see the harm in having it here. Because most forms do involve processing/validation, they are typically defined in controllers, so it makes sense to stick with that standard even when no processing is happening. It's odd to say that FORM(...).process() belongs in the controller but FORM(...) without the .process() must go in the view. Also, keep in mind that the overview chapter is just a relatively simple introductory tutorial. It is not meant to communicate how one ought to architect a large complex application. I'm not saying we couldn't consider changing some of the code examples, but I don't see it as a major indictment of MVC violation. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -
Re: [web2py] Re: Question about web2py roadmap.
I beg to disagree, or perhaps I did not clarify in my original posting. Down in this thread, I believe someone mentions that (re)used helpers (could) go in modules, which I agree by the way, what I meant to say is that in a potentially complex application, where many common components are usually required, placing the code in a controller, which is tied up to a view would not be the best place to put it, and neither on a model for that matter, therefore new devs tend to throw these functions into the module file, whether is wrapped up in a class or not, and at the end of the day having a function repository equivalent of the god class pattern. Yes, this can happen on every framework, etc, etc, my point is (was) that it is much easier to fall in web2py. Also, even though I have said that I don't use helpers in my projects, there is one that I use extensively because it provides a huge advantage when rewriting URLs URL() that is, and for a designer, seeing something like a href={{=URL('view.html')}}Click Here/a does not look too strange, so there you go, helper functions *do help* sometimes :) On Monday, February 9, 2015 at 6:47:47 AM UTC-8, Richard wrote: I don't think God class is a big concern in web2py... End user don't really need to write class... Sure you can, but since page is tide to a function and you have controllers files that you can use as an class like container to regroup your stuff. Sure I could write class, but considering work and progress nature of my dev, it difficult to predict what shoudl do my class in advence... So, writting class would lead me more in YAGNI state of thinking than in concrete problem solution. Richard On Sat, Feb 7, 2015 at 1:48 PM, Julio F. Schwarzbeck ju...@techfuel.net javascript: wrote: Anthony, your last paragraph is quite interesting. I work for a large corporation, which for good or bad, has back-end web programmers, but also simple html designers. The concept of embedding HTML helpers A(), FORM() in controllers, or modules is frowned upon and it was one of the main reasons they almost dropped the platform altogether since the perception was that the developers would end up making a mess and leave the designers with an interface that is very hard to customize if you don't know python for example. I personally do not use html helpers *at all*, but I can see why for some folks it can be a time saver. Nowadays, I am designing more for mobile than for the desktop, and I am moving web2py to a new paradigm, I am providing the UI entirely for example via jQuery Mobile, or Kendo, and use web2py as an API, service oriented application framework, I find the html helpers are even less needed in this context, as web2py provides me with data abstractions and not view components, and for the MVC/MTV zealots, that is actually a good side effect, heck, even desktop web apps are now becoming single page (think facebook, tweeter, etc). I am comfortable where web2py is heading, it is becoming a large framework, and every developer must evaluate what parts of the framework you want (or need) to use. I think one of web2py's main problems (as seen from many of their detractors), is that it allows the newbie to very easily create database-driven applications - sometime large ones - in which basic software engineering principles are not applied correctly (or at all), this include antipatterns such as the god class, asynchronous gotchas and the like, I am not saying you cannot do them in other platforms, but it is easier in web2py. On Friday, February 6, 2015 at 8:50:41 AM UTC-8, Anthony wrote: ..snip.. Another example is in the search function on the simple wiki: def search(): an ajax wiki search page return dict(form=FORM(INPUT(_id='keyword',_name='keyword', _onkeyup=ajax('callback', ['keyword'], 'target');)), target_div=DIV(_id='target')) Why create a form that not need any kind of postprocessing, even adding a onkeyup attribute, in the controller, when all this code, following MVC should go in the view? I agree that could just as easily go in the view, but I don't see the harm in having it here. Because most forms do involve processing/validation, they are typically defined in controllers, so it makes sense to stick with that standard even when no processing is happening. It's odd to say that FORM(...).process() belongs in the controller but FORM(...) without the .process() must go in the view. Also, keep in mind that the overview chapter is just a relatively simple introductory tutorial. It is not meant to communicate how one ought to architect a large complex application. I'm not saying we couldn't consider changing some of the code examples, but I don't see it as a major indictment of MVC violation. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)
[web2py] Is SQLFORM hardcoded to use layout.html?
I'm sure it's not, that title was just click bait :-O I have created a file called ltelayout.html, based on layout.html. My new() method in default.py is: def new(): return dict(form=SQLFORM(db.todo, submit_button='Save')) My view new.html is: {{extend 'ltelayout.html'}} h1NEW!!/h1 {{=form}} But when I navigate to /default/new the H1 isn't there and it's using layout.html, not ltelayout.html. It appears that SQFORM is somehow not using the overrident view or something? -- 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 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/d/optout.
[web2py] Re: Is SQLFORM hardcoded to use layout.html?
Um... I put the view in /views/new.html, not /views/default/new.html. TIME TO GET SOME SLEEP -- 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 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/d/optout.
Re: [web2py] Re: Adding entry to the printed book index
Stuff like this: Between Web Services and websockets I'd put web2py_ajax_component Between load and Lotus Notes I'd put locals() Between Expression and extent I'd put extend (or insert {{extend}} at the beginning?) On Wed, Feb 11, 2015 at 11:30 PM, Niphlod niph...@gmail.com wrote: please give an example of what you're trying to add ^_^ On Wednesday, February 11, 2015 at 11:33:04 PM UTC+1, Tom Campbell wrote: I'd like to add terms to the book's index. Looked at the book source https://github.com/mdipierro/web2py-book/tree/master/sources on github but couldn't figure out where that would happen so I could issue a pull request. Can someone give me a brief description of where I'd find it? 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/oCMlpKs5T3c/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 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/d/optout.
[web2py] Re: Adding entry to the printed book index
please give an example of what you're trying to add ^_^ On Wednesday, February 11, 2015 at 11:33:04 PM UTC+1, Tom Campbell wrote: I'd like to add terms to the book's index. Looked at the book source https://github.com/mdipierro/web2py-book/tree/master/sources on github but couldn't figure out where that would happen so I could issue a pull request. Can someone give me a brief description of where I'd find it? 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 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/d/optout.