Re: [web2py] Can I create an RSS Reader like Techi in web2py?

2014-07-06 Thread Ricardo Pedroso
On Fri, Jul 4, 2014 at 10:37 AM, Gideon George georgegid...@gmail.com wrote: I want to create an awesome rss feed agregator like that of techi.com please is there any example of site that did it in web2py? Also I need suggestions on how to go about it. Thank you I have my own personal feed

[web2py] Using whoosh with web2py

2014-07-06 Thread lokesh
I'm using whoosh backend with plugin_haystack in my application. But the search function is working only if there is an insert or update db statement in that function. For instance : def temp(): db.my_table.insert(my_row1=temporary data to test the search) rows = db(index.search(my_row1=data to

[web2py] Implementing a search engine in web2py

2014-07-06 Thread lokesh
I'm using whoosh backend with plugin_haystack in my application. But the search function is working only if there is an insert or update db statement in that function. For instance : def temp(): db.my_table.insert(my_row1=temporary data to test the search) rows = db(index.search(my_row1=data to

[web2py] Re: MySQL - OperationalError: Error on rename (errno: 150)

2014-07-06 Thread José Antonio Salazar Montenegro
I realize this is an ancient topic, but I'm having the very same error migrating a MySQL table where I'm only removing a self reference field. It seems like an index was created to guard the (self) foreign-key constraint and DAL doesn't remove it when deleting the field. There are no

[web2py] Re: how to disable register item from the default upper right-hand side dropdown

2014-07-06 Thread Alex Glaros
Thanks Anthony, Register now doesn't appear in dropdown, but can you simplify description of what functionality is lost? If the register action is needed, how can it be restored while still suppressing the word register in the dropdown? If that is not possible, where an how can dropdown

[web2py] Re: APNSFeedbackWrapper receive method freezes

2014-07-06 Thread Leonel Câmara
I have used PyAPNS https://github.com/simonwhitaker/PyAPNs for this with some degree of success in the past. What I do is to send the notifications 1 by 1 which is quite slow but at least you can catch invalid tokens. This is the relevant part of the code I use: for device in ios_devices:

Re: [web2py] SQLEDITABLE plugin

2014-07-06 Thread Fabiano Almeida
Hi kato! How to use SQLEDITABLE with a query? If I try this in your first example: query = db.employee_sheet.resigned == True editable = SQLEDITABLE(query, showid=False, maxrow=5).process() Return error: AttributeError: 'Query' object has no attribute '_id' How to filter table?

[web2py] Re: how to disable register item from the default upper right-hand side dropdown

2014-07-06 Thread Anthony
I believe you should still be able to create a registration form explicitly via auth.register() (though please try it to confirm). However, if you use something like the default user action: def user(): return dict(form=auth()) and call it with a URL like /myapp/default/user/register, it

[web2py] Re: APNSFeedbackWrapper receive method freezes

2014-07-06 Thread Wonton
Hi Leonel, Thank you for your answer. While I was waiting for an answer to my problem I implemented a solution very similar to yours. But I have that code (similar to yours) inside a thread to avoid its slow performance. The problem is, as I tell here, in other post

[web2py] Re: APNSFeedbackWrapper receive method freezes

2014-07-06 Thread Leonel Câmara
You can use the included web2py scheduler instead of using your own threads to do what you want. -- 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: APNSFeedbackWrapper receive method freezes

2014-07-06 Thread Wonton
I'll study this. But, could I use DAL inside the scheduler and work with my database without errors as I have working with threads? Thank you! On Sunday, July 6, 2014 11:47:02 PM UTC+2, Leonel Câmara wrote: You can use the included web2py scheduler instead of using your own threads to do

Re: [web2py] Can I create an RSS Reader like Techi in web2py?

2014-07-06 Thread Massimo Di Pierro
Nice! On Sunday, 6 July 2014 02:01:23 UTC-5, Ricardo Pedroso wrote: On Fri, Jul 4, 2014 at 10:37 AM, Gideon George georgegid...@gmail.com wrote: I want to create an awesome rss feed agregator like that of techi.com please is there any example of site that did it in web2py? Also I need

Re: [web2py] Re: tip of the day. The power of routes

2014-07-06 Thread Nguyen Minh Tuan
Hi Lyn2py, can you send your script? On 5 July 2014 14:33, lyn2py lyn...@gmail.com wrote: Hi Tuan, I tried the change (line in red) but it couldn't route to my app properly. I'm not familiar with the regex routes, so I'm using it as-is. I don't know how to troubleshoot this. On Friday,

Re: [web2py] Can I create an RSS Reader like Techi in web2py?

2014-07-06 Thread Vinicius Assef
Ricardo, very nice your solution. Below, I wrote some questions about it. On Sunday, 6 July 2014 02:01:23 UTC-5, Ricardo Pedroso wrote: - search is powered by whoosh and bottle - Web2py is querying through a simple restful api. I was thinking about this piece of your architecture. If your