Re: [web2py] Re: AssertionError: Header names/values must be of type str

2023-10-26 Thread Massimo DiPierro
Can you try once more? On Wed, 25 Oct 2023 at 23:03, Al Ex wrote: > I tried with a new installation of web2py > > $ git clone --recursive https://github.com/web2py/web2py.git > > > It gives the same error > > * >

Re: [web2py] Re: Web3py

2019-06-16 Thread Massimo DiPierro
Not with the usual syntax. Looking for a way to allow this in the new form api On Sun, Jun 16, 2019, 09:51 Fekete Zoltán wrote: > Hi Massimo, > > In web2py I highly rely on dynamically modifiable forms. Based on > calculations some fields are required or even hidden, others not. > > Will be

[web2py] Greetings

2018-12-25 Thread Massimo DiPierro
Merry Christmas everybody -- 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] Re: mercurial

2017-09-01 Thread Massimo DiPierro
also we can assume git is already installed so it is a matter of calling subprocess. I would take a patch to simplify the code. :-) > On Sep 1, 2017, at 11:21 PM, Martin Weissenboeck wrote: > > I agree! > > Am 02.09.2017 06:18 schrieb "Massimo Di Pierro"

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-12 Thread Massimo DiPierro
i cannot commit 10hrs either.. but review the link On Oct 12, 2016 2:20 AM, "Mathieu Clabaut" wrote: > > The dates are published : https://developers.google.com/ > open-source/gsoc/timeline > We have some time to prepare an application if we decide to go. > Just for us to

[web2py] Re: Web2PY server is hanging

2016-05-19 Thread Massimo DiPierro
Can you tell us more? What server? What database? What is the app about. Usually it hags because of code error: - you access something that is not thread safe, for example os.chdir(...) - you lock some object and do not release Please tell us more and we can help debug. On Thu, May 19, 2016 at

[web2py] AWE Elasticbeanstalk and web2py

2016-05-15 Thread Massimo DiPierro
Below are instructions for creating an AWS Elastic Beanstalk instance. Instructions are based on this: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html Anybody knows how to get Amazon to publish the instructions? Massimo $ pip install awsebcli $ pip

[web2py] Re: web3py

2016-01-13 Thread Massimo DiPierro
It is another experiment. It is a rewrite of some of the web2py modules and supports 90% of the current web2py syntax at 2.5x the speed. It works. It it cleaner and should be easier to port to python 3 than current web2py. We are debating on web2py developers what to do: 1) backport some of the

[web2py] Fwd: aiosmtpd 1.0a1 - asyncio-based implementations of SMTP/LMTP

2015-10-20 Thread Massimo DiPierro
This is nice if you want a pure python SMTP server Begin forwarded message: > From: Barry Warsaw > Subject: aiosmtpd 1.0a1 - asyncio-based implementations of SMTP/LMTP > Date: October 20, 2015 at 8:51:29 AM CDT > To: > Reply-To:

[web2py] Fwd: Promotion on Web2py

2015-10-16 Thread Massimo DiPierro
The book is somewhat old but it still contains some useful recipes. Here are some discount codes. Begin forwarded message: > > > These are the details: > Web2py Application Development Cookbook - e-book > Discount Code: web2py50 > Discount: 50% > Expiry Date: 31st Dec, 2015 > > Web2py

[web2py] Re: Whoosh

2015-03-07 Thread Massimo DiPierro
? On Mar 6, 2015, at 6:40 PM, Ron Chatterjee achatterjee...@gmail.com wrote: In my db.py I have from gluon.tools import*. Thats the issue? On Mar 6, 2015 7:31 PM, Massimo DiPierro massimo.dipie...@gmail.com wrote: Do you have any from …. import Field in your code? On Mar 6, 2015, at 6:20 PM

[web2py] Re: Whoosh

2015-03-06 Thread Massimo DiPierro
for. Sooo spooky On Mar 6, 2015 12:35 PM, Massimo DiPierro massimo@gmail.com wrote: https://github.com/mdipierro/web2py-haystack On Mar 6, 2015, at 11:29 AM, Ron Chatterjee achatte...@gmail.com wrote: Is whoosh is supported in DAL. Any example? Or have a js that create SQLFORM.search

[web2py] Re: Whoosh

2015-03-06 Thread Massimo DiPierro
What is wrong with smart_query? On Fri, Mar 6, 2015 at 5:56 PM, Ron Chatterjee achatterjee...@gmail.com wrote: Can u fix smart_query for me? Lol On Mar 6, 2015 6:53 PM, Massimo DiPierro massimo.dipie...@gmail.com wrote: there should be instructions in the file. You need to install whoosh

[web2py] Re: Whoosh

2015-03-06 Thread Massimo DiPierro
m not sure but its failing both if and else. So it goes to raise. Lol On Mar 6, 2015 6:59 PM, Massimo DiPierro massimo.dipie...@gmail.com wrote: What is wrong with smart_query? On Fri, Mar 6, 2015 at 5:56 PM, Ron Chatterjee achatterjee...@gmail.com wrote: Can u fix smart_query for me

[web2py] Re: Whoosh

2015-03-06 Thread Massimo DiPierro
https://github.com/mdipierro/web2py-haystack On Mar 6, 2015, at 11:29 AM, Ron Chatterjee achatterjee...@gmail.com wrote: Is whoosh is supported in DAL. Any example? Or have a js that create SQLFORM.search like SQLFOrM.smartgrid? Searching is important -- Resources: - http://web2py.com -

[web2py] Fwd: Get a Web2py cloud instance in less than 30 seconds

2015-03-02 Thread Massimo DiPierro
from Enrique @ terminal.com: We were playing a little bit with web2py and we think it's a really good product, so we decided create a new snapshot with web2py and add it to our app store. In short, that means that you can start our own fully-functional web2py cloud instance in less than

[web2py] Re: rewrite the controller function for clarity

2015-02-24 Thread Massimo DiPierro
the DAL has only these API: db(query).select(….) db(query).update(…) db(query).count() db(query).delete() table.insert(…) which map into the corresponding SQL SELECT, UPDATE, COUNT, DELETE and INSERT. If you define a table with db.define_table(‘person’,Field(‘name’)) than you refer to it by

Re: [web2py] SQLite, or some other database?

2015-01-03 Thread Massimo DiPierro
Hello Martin, I agree this is allowed in SQL. If an expression is allowed in SQL you can wrap it in Expression (from gluon.dal import Expression) and pass it in place of any parameter. Yet if you chose to do it you introduce a dependency on the specific SQL dialect. The problem with passing

[web2py] Re: [web2py-dev] Unexpected common filter behavior

2014-10-31 Thread Massimo DiPierro
db(query).select(*fields) is supposed to translated into SELECT *fields (from TABLE) WHERE query where TABLES are inferred automatically from fields or from query. In principle one can have fields without a query (no WHERE) and a query without fields (select *). On Oct 31, 2014, at 3:12 PM,

[web2py] Re: [web2py-dev] Unexpected common filter behavior

2014-10-31 Thread Massimo DiPierro
But it is critical to be able to filter fields at the database level. I think db as the send of all records db(...) as a subset, db(...)(...) as a set of all subset, etc. db(...).select(..fields..) specified which columns to filter from the set. On Oct 31, 2014, at 3:12 PM, Niphlod

[web2py] ssl certificate?

2014-09-14 Thread Massimo DiPierro
Any recommendation about where to buy a cheat ssl certificate? I have used RapidSSL before. -- 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: [web2py-dev] Version 2.9.6 indeed breaks backward compat for some users

2014-09-12 Thread Massimo DiPierro
I used to have JS but I then I learned it and it is not that bad. ;-) On Sep 12, 2014, at 1:36 AM, Niphlod niph...@gmail.com wrote: muhaha, funny all the push you're giving towards client-side widgets autocomplete NEEDS to be js code, and it's probably one of the three that NEED js

[web2py] Re: [web2py-dev] Version 2.9.6 indeed breaks backward compat for some users

2014-09-11 Thread Massimo DiPierro
What's broken in autocomplete? Was it a preexisting condition? Another reason for client-side widgets. Autocomplete is JS code. On Sep 11, 2014, at 2:35 PM, Leonel Câmara leonelcam...@gmail.com wrote: Has this been finalized yet? The autocomplete widget also needs fixing. -- -- mail

[web2py] new web2py videos

2014-08-30 Thread Massimo DiPierro
Nico has helped edit and re-organize some my class lectures about web2py. They are now split into 30 small videos: https://vimeo.com/album/3016728 Please join me in thanking Nico. Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: [web2py-dev] Rows.compact and other Rows methods

2014-01-08 Thread Massimo DiPierro
The problem is speed. I believe the getitem should be as fast as possible. This was changed before so that the trasformation of the rows occurred only once and not every time a row column is accessed. On Jan 8, 2014, at 8:41 AM, Anthony wrote: Let's discuss on the developers list. On

[web2py] Re: [web2py-dev] Rows.compact and other Rows methods

2014-01-08 Thread Massimo DiPierro
This would be slow and confusing. What if there is a table in the join called first_name? What if both tables in a join have a column first_name? On Jan 8, 2014, at 9:12 AM, Anthony wrote: This is an interesting idea. Instead of bothering with the compact attribute, we could make it so any

[web2py] Happy New Year everybody!

2014-01-01 Thread Massimo DiPierro
Happy new year everybody, some good news: 1) python is growing popularity https://sites.google.com/site/pydatalog/pypl/python-blog/pythonisthelanguageoftheyear 2) there will be a web2py tutorial at PyCon. I will tell you more asap! 3) the web2py community is still growing and in 2013 I saw more

[web2py] Re: [web2py-dev] having trouble with data-xxx when they are not a simple option

2013-10-30 Thread Massimo DiPierro
yes. It is the same. You can send me a patch of a pull request. On Oct 30, 2013, at 12:37 PM, DenesL wrote: I meant the web2py online book or is this the same somehow?. On Tuesday, October 29, 2013 8:03:36 PM UTC-4, Niphlod wrote: free and available here

Re: [web2py] Why does Web2py add 'orderby' to grid queries?

2013-10-09 Thread Massimo DiPierro
Should'd grid elements be ordered to allow pagination? On Oct 8, 2013, at 6:45 PM, Michele Comitini wrote: Whenever there is a big performance impact it's better not to make assumptions on what is the most common use case. I hate to hear the web2py is slow refrain because it's false if you

[web2py] web2py 2.7.1 is OUT

2013-10-04 Thread Massimo DiPierro
Changelog - jQuery 1.10.2 - codemirror 3.18, thanks Paolo - namespaces in T(Welcome, ns=namespace), thanks jamarcer (experimental) - more Auth options, thanks Charles - more admin configuration, thanks Roberto - new gluon.contrib.strip.StripeForm for PCI compliant payments - webclient can hendle

Re: [web2py] Re: Some forms need to be submitted multiple times.

2013-09-22 Thread Massimo DiPierro
Please open a ticket. I have an idea about what to do. On Sep 22, 2013, at 12:31 PM, szimszon wrote: Hi! I have some apps where I usually do multiple things simultaneously or I have to look at some page for information (page with form too) and copypast to the first. But I have to reload

[web2py] http links in https wiki pages

2013-09-18 Thread Massimo DiPierro
This problem come up at the office today. I am posting a solution here since it may come up in the future. If you have a wiki (web2py wiki or not) which runs under https and contains links to http pages, modern browsers will block those links for security reasons. To prevent the blocking, you

[web2py] London Meetup

2013-07-13 Thread Massimo DiPierro
Is there anybody in London willing to give a talk on web2py at a Python meetup? Massimo -- --- 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] web2py EuroPython 2013 Talk

2013-07-06 Thread Massimo DiPierro
Thanks to the EuroPython organizers. It was an excellent conference. I attended at the last moment and I had the opportunity to give a talk in the open space. Here it is: http://www.youtube.com/watch?v=LsLgZUGM3kg -- --- You received this message because you are subscribed to the Google

[web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Massimo DiPierro
There is a major change upcoming in web2py 2.6 (which can be tested in trunk). The change involves a better rewrite of web2py.js agreed upon the developers and implemented by Niphlod. Because of this change applications which use components will break unless you upgrade the old web2py.js with

[web2py] Real Python Coding Challenge Today!

2013-06-22 Thread Massimo DiPierro
You may be interested in this event: http://www.eventbrite.com/event/7191029563 Real Python: Coding Challenge Saturday, June 22, 2013 from 10:00 AM to 11:00 AM (PDT) Michael Herman (http://www.linkedin.com/profile/view?id=143023108) is the author on the Real Python for Web development which

Re: [web2py] upgrading appengine has broken web2py

2013-06-18 Thread Massimo DiPierro
I did see two problems addressed in a commit today. gql imports drivers from dal.py but drivers was renamed DRIVERS. If people did not notice this it means they are not importing gql. This is great. It means this backward compatibility file can be removed. So I just did. The second issue is

[web2py] EuroPython

2013-06-07 Thread Massimo DiPierro
Anybody here going to EuroPython? I may be able to make it for a day or two and if other people are going we can organize an Open Space meeting. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

[web2py] bootstrap interface builder

2013-04-17 Thread Massimo DiPierro
http://www.layoutit.com/ -- --- 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

[web2py] Re: 'list:reference', contains, Mysql, instr

2013-01-21 Thread Massimo DiPierro
Now I understand the problem. You want to pass an expression where a value is expected. I do not believe we can support this. INSTR does not solve the problem because it would not be correct to looks for substrings. In fact paper.authors may contain '|12|13|' and it would incorrectly return

[web2py] web2py winservice

2012-12-05 Thread Massimo DiPierro
I just closed this ticket but could not test it: http://code.google.com/p/web2py/issues/detail?can=2start=0num=100q=colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summarygroupby=sort=id=265 Can some someboby help me check winservice is not broken in trunk? --

[web2py] web2py book in Chinese

2012-12-05 Thread Massimo DiPierro
Thanks to Ming Huang we now have the web2py book in Chinese in PDF: https://dl.dropbox.com/u/18065445/web2py/web2py_manual_chinese_3rd.1.pdf If you can help convert it to Markmin and ok generating a better PDF from the ODT, please let me know. Massimo --

Re: [web2py] GAE - SQL cloud connection

2012-11-16 Thread Massimo DiPierro
On Nov 16, 2012, at 5:17 AM, rif wrote: Done (http://code.google.com/p/web2py/issues/detail?id=1172) Are the migrations issues to GoogleSQL still present? I am not aware of any issue. Can you point me to some something about this? -rif vineri, 16 noiembrie 2012, 12:57:14 UTC+2,

[web2py] GAE users… help

2012-10-01 Thread Massimo DiPierro
What about this ticket? http://code.google.com/p/web2py/issues/detail?can=2start=0num=100q=colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modifiedgroupby=sort=-modifiedid=990 Massimo --

[web2py] new google trands

2012-09-29 Thread Massimo DiPierro
Looks like Google has improved google Trands: http://www.google.com/trends/explore#q=web2py At least now seems to provide significative results for web2py. Not sure how reliable but we actually see a trend. --

[web2py] Re: [web2py-dev] on Redis Rows turns in to list() ?

2012-09-13 Thread Massimo DiPierro
I am not sure. Please open a ticket do it gets tracked. On Sep 13, 2012, at 9:03 AM, Bruno Rocha wrote: I noted that this happens with memcached too. type 'exceptions.AttributeError' 'list' object has no attribute 'find' My cached .select(cache=(cache.memcache, 1200)) is retrived as a

[web2py] Re: [web2py-dev] on Redis Rows turns in to list() ?

2012-09-13 Thread Massimo DiPierro
try pickle and unpickle this: rows = db(db.tests.id0).select(cache=(cache.disk, 200), cacheable=True) perhaps something is failing there? On Sep 13, 2012, at 2:14 PM, Niphlod wrote: uhm. web2py 2.0.8 ... this works rows = db(db.tests.id0).select(cache=(cache.disk, 200)) rows =

[web2py] Re: [web2py-dev] on Redis Rows turns in to list() ?

2012-09-13 Thread Massimo DiPierro
Rows object, that cached (pickled) returns a list, but it's not transformed back to a full Rows object. this is because of legacy pickling code. We can fix it. On Sep 13, 2012, at 2:44 PM, Niphlod wrote: doh. found! maybe it's better to put it in the book. cacheable makes the select

[web2py] short term roadmap

2012-09-08 Thread Massimo DiPierro
I have been speaking with some friends and heavy web2py users and we agree that the following issue need to be addressed: 1) Improve Mercurial and Git support. Currently Git+web2py allows clone and push whirl Hg+web2py allows commit, status and revert. I think we need an abstraction layer that

Re: [web2py] Re: DB Migration (sqlite-pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Massimo DiPierro
So, what is wrong with those SQL? I think web2py is generating the correct ones. What am I missing? On Sep 6, 2012, at 8:40 AM, Christian Espinoza wrote: Massimo, SELECT auth_user.id, auth_user.username, auth_user.first_name, auth_user.last_name,\ auth_user.sede_id, auth_user.email,

Re: [web2py] Re: DB Migration (sqlite-pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Massimo DiPierro
Again… what is wrong with the generated SQL? I do not know how to fix it if I do not understand why postgres is complaining. Massimo On Sep 6, 2012, at 9:09 AM, Christian Espinoza wrote: The last one was with psycopg2, this is the last value of command using pg8000: SELECT

Re: [web2py] Again: how redirect without propagate the .load extension?

2012-08-08 Thread Massimo DiPierro
I agree. Please check trunk again. On Aug 8, 2012, at 2:04 PM, Anthony wrote: On Wednesday, August 8, 2012 1:18:11 PM UTC-4, Massimo Di Pierro wrote: ok, I defaulted to type='http' as you did but I allowed a type='auto' as well. Good idea. Actually, I'm not sure we need the separate auto

[web2py] MARKMIN change of behavior

2012-08-08 Thread Massimo DiPierro
There is a manor change of behavior in MARKMIN. Before: - markmin # title aaa bbb -- end markmin would render as h1titleh1paaa/pp/p After: the same markmin would render h1title aaa/h1p/p In other words now headers (#, ##, ###) can be continued to the next line

Re: [web2py-dev] [web2py] Re: strange response.flash

2012-08-06 Thread Massimo DiPierro
Sorry. I misread your email. Massimo On Aug 4, 2012, at 10:53 AM, Anthony wrote: I see. I think the problem is only with response.flash within Ajax components. The message is escaped on the server via urllib2.quote, and then decoded in the browser via decodeURIComponent (see source code):

Re: [web2py-dev] [web2py] Re: strange response.flash

2012-08-05 Thread Massimo DiPierro
I think response.flash = A(Hello World, _href=#) should be allowed. It was always allowed. This is a backward compatibility issue. Yet I see there is a potential security issue there. I am not sure what the exact solution should be. Perhaps automatic sanitization of flash messages before

[web2py] Re: A blog app with no models - to include in /appliances

2012-07-16 Thread Massimo DiPierro
Can you please resend me the updated w2p file and a screenshot? On Jul 16, 2012, at 4:31 PM, Bruno Rocha wrote: Hi, I just found that my example of Model Less Blog is not listed in web2py.com/appliances This app can be a start point for those who want to test and improve the Model

Re: [web2py] how to use cache decorator within modules?

2012-07-15 Thread Massimo DiPierro
Not yet. Please open a ticket about this. On Mar 1, 2011, at 5:05 AM, Carl Roach wrote: thanks Massimo. The ability to have cache decorators in modules would be great. On 1 March 2011 02:09, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Jonathan and I have a plan to make this easy

Re: [web2py] Re: how to use cache decorator within modules?

2012-07-15 Thread Massimo DiPierro
Works fine. You can pass and use cache. You just cannot use it to decorate functions because decorators run only once, when the module is imported. Unless we make them lazy but I have not tried it yet... On Jul 15, 2012, at 8:52 PM, Bruno Rocha wrote: So what happens when I do this?

[web2py] Re: [web2py-dev] Asyncronous Application Sync

2012-07-11 Thread Massimo DiPierro
There are two issue: 1) protocol for transferring data; 2) exporting and importing from database. rabbitmq etc. only address 1 and you do not need any. Web2py already has a web server a many RPC systems you can use. The real issue is 2. If your tables have a uuid field, db.export_to_csv_field

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-06-28 Thread Massimo DiPierro
Can I see the code? On Jun 28, 2012, at 10:08 AM, Daniel González Zaballos wrote: It does not work. If I use the self.db = 0 sometimes i get this error (and connections are open): mod_wsgi (pid=1419): Exception occurred processing WSGI script

[web2py] apologies

2012-03-13 Thread Massimo DiPierro
About the PyCon talk. I apologize to all of you who should have been mentioned and were not. I took the list of contributors from web2py.com/examples/default/who and generated a word map from it. If you are not listed on that page and you feel you should be, please email me. Any omission is

[web2py] Fwd: PyCon 2012: Talk acceptance - web2py: ideas we stole and ideas we had

2011-12-21 Thread Massimo DiPierro
:-) Begin forwarded message: From: ja...@jacobian.org Subject: PyCon 2012: Talk acceptance - web2py: ideas we stole and ideas we had Date: December 21, 2011 2:25:39 PM CST To: mdipie...@cs.depaul.edu Dear Massimo Di Pierro, I'm very pleased tell you that your talk has been accepted for