Re: [web2py] Re: web2py / py4web in pypi.org

2020-02-10 Thread Marcelo Huerta
Well, there is an old package in https://pypi.org/project/web2py/,
maybe it should be removed?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAB_OKSm5mL%3DLG49CLnsE%2B8PGy5T1%2BGmLp_wVOzeVwKkF8AxvcQ%40mail.gmail.com.


[web2py] Re: File chooser dialog

2020-02-05 Thread Marcelo Huerta
El martes, 4 de febrero de 2020, 19:03:01 (UTC-3), jim kaubisch escribió:
>
> I need to upload videos to YouTube. I do NOT want to also upload those 
> files to the web2py uploads mechanism
> If I use a "normal" upload field I get a dialog to choose a file . How do 
> I access that dialog for a non-upload field in SQLFORM.factory
>
>
Why would a web2py be related with a YouTube upload?

Have you checked 
https://developers.google.com/youtube/v3/guides/uploading_a_video?hl=en ? 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c5a9e863-28d6-4b52-b7c8-241642b9294c%40googlegroups.com.


[web2py] Re: Kaspersky Internet Security says http://www.web2pyslices.com/home?content<...> is a phishing site.

2020-02-05 Thread Marcelo Huerta

El martes, 4 de febrero de 2020, 17:28:12 (UTC-3), jim kaubisch escribió:
>
> I'm surprised. Does this make sense to anyone else?
>
> *It goes on to say ...*
>
>
> *Blocked by Web Anti-Virus*
>
> Reason: phishing link
> Detection method: databases
>


Cisco Web Security Virtual Appliance reports the same.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e28a2f9f-9308-4f54-a19a-e5d49639f44d%40googlegroups.com.


[web2py] web2py / py4web in pypi.org

2020-02-04 Thread Marcelo Huerta

Are there plans to include the latest versions of the frameworks in 
pypi.org? I see that pypi.org has a web2py 2.1.1.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b317a5b5-30b1-46ff-9d91-35e803f6ae73%40googlegroups.com.


[web2py] Re: What’s the timelines for py4web?

2019-12-23 Thread Marcelo Huerta


El domingo, 15 de diciembre de 2019, 18:17:11 (UTC-3), Massimo Di Pierro 
escribió:
>
> My plan is to spend the Christmas vacation making sure it works with 
> Python 3.8, adding an internationalization UI, and fixing a few bugs with 
> error reporting. So by Dec 31.
> Complete the core documentation by Jan 4 and maybe post some sample 
> projects.
> I cannot test all the Auth scenarios. I will fix them when problems are 
> reported.
> I have no plans to add features, only fix bugs and not many have been 
> reported. It works well enough for me.
>
>
>
Is there a possibility to create, as a sort of "migration guide" or 
"recommendation", a comparison or checklist to migrate from the web2py 
scheduler to other ways to handle scheduled tasks, like Celery or Dramatiq? 
Some of us have never used a task queue framework and some guidance would 
be useful, specially given how easy it was to use the web2py scheduler.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b193d83f-5b38-43b2-b200-7fe82314ff5d%40googlegroups.com.


[web2py] Re: Example in Celery for scheduling in py4web ?

2019-11-06 Thread Marcelo Huerta
El miércoles, 6 de noviembre de 2019, 1:59:06 (UTC-3), Ruslan Gareev 
escribió:
>
> Hello. You can google something like: "python celery queue". :)
>

Har har. I wanted an example specifically in the context of web2py because 
I cannot make sense of them seeing them in other contexts.
 

> But using Dramatiq  will be better 
> option than Celery.
>

I will take a look. Hopefully their examples would be easier to understand, 
I know now that asking here will only produce mockery.

Lovely group!

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b4d582f6-7116-4a1c-a767-9ad09da99232%40googlegroups.com.


[web2py] Re: Scheduler for py4web ?

2019-11-05 Thread Marcelo Huerta
El jueves, 31 de octubre de 2019, 0:23:30 (UTC-3), Massimo Di Pierro 
escribió:
>
> No. The fact is, it does not need it. py4web is does not have the problem 
> of a custom environment. apps are modules that can be imported. Celery 
> works great with py4web and therefore I recommend using that instead of a 
> custom scheduler.
>
>>
>>
Is there a way we could have examples of how Celery would be used with 
py4web?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6e3db551-5b2f-4511-81c0-bc65754baaa5%40googlegroups.com.


[web2py] Re: Web3py

2019-06-19 Thread Marcelo Huerta
El viernes, 14 de junio de 2019, 11:32:58 (UTC-3), Massimo Di Pierro 
escribió:
>
> Be careful that you can no longer change attributes everywhere you like as 
> in:
>
> db.tablename.fieldname.readable = False
>
> In web2py this is ok. In web3py this is not safe. Attributes must be 
> global. The state of fixtures must not be modified inside actions.
>
>
>
And what's the corresponding replacement if you want to change the status 
of "visible" or "readable" only during an action?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/00f068cf-a914-4459-ab51-a8c65c6d8ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: database queries

2019-04-11 Thread Marcelo Huerta
El jueves, 11 de abril de 2019, 10:48:14 (UTC-3), learth...@gmail.com 
escribió:
>
> Hello everybody,
> Nobody can help me to solve my problem ? :(
>
>
If you don't show what effort have you made to try to solve the problem, 
basically you are asking that people on the internet do this for you, for 
free. That is generally frowned upon.
 

-- 
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] web3py again....

2019-03-28 Thread Marcelo Huerta
El jueves, 28 de marzo de 2019, 6:57:08 (UTC-3), José L. escribió:
>
>
>- sqlform and grid are one of the key points for web2py. It's one of 
>the main reasons to use it instead of other frameworks as development is 
>really quick. However I think nowadays a backport from web2py is not a 
> good 
>idea. We should provide something optional based only on vue.js. As you 
>say, we can do it better.
>
>
SQLFORM and grid were the main selling points to me. Something similar 
should be provided, surely.
 

>
>- auth is not as important in my experience. It has never been the 
>reason to pick web2py and there are other ways to do it.
>
> I love auth, actually. Maybe I haven't investigated enough, but what other 
ways to do it are preferable in your opinion?

-- 
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: New International Telegram Support Group

2019-03-20 Thread Marcelo Huerta
El martes, 19 de marzo de 2019, 15:49:34 (UTC-3), Ari Lion BR Sp escribió:
>
>
> Now I see a new link to this group:
> https://t.me/web2py_world
>
>
>
Joined! 

-- 
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: Databese error in registration process

2019-03-12 Thread Marcelo Huerta

El martes, 12 de marzo de 2019, 4:13:31 (UTC-3), Константин Комков escribió:
>
> Maybe something do not work in that string, but before it work without 
> errors and now I have problem with only one user and I see that 20 users 
> was be registrated without errors after him also?
>
> db.executesql(
>  "execute procedure 
> esp_web_new_user('{0}','{1}','{2}','{3}','{4}',{5})".format(
>  
> str(form.vars.f),str(form.vars.i),str(form.vars.pser),str(form.vars.pnum),str(form.vars.num),auth.user_id)#auth.user.last_name,auth.user.first_name
>  )
>
>
Please visit http://bobby-tables.com/ 

-- 
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: Update text for GRID buttons - View/Edit etc

2019-03-12 Thread Marcelo Huerta
El martes, 12 de marzo de 2019, 11:55:58 (UTC-3), Sarbjit escribió:
>
> Hello,
>
> I want to change the default text of the buttons visible in SQLFORM.GRID. 
> I am using the following code, but it is not updating the text
>
> grid.element(_title='View')['innerHTML']='Details'
>
> Any idea on how this can be done?
>

Isn't maybe easier to edit the button name in the languages/xx.py file 
corresponding to the language of your application? 

>  
>

-- 
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: Fresh install - ImportError: cannot import name Cookie

2019-03-02 Thread Marcelo Huerta
El jueves, 28 de febrero de 2019, 18:55:13 (UTC-3), Leonel Câmara escribió:
>
> Most of compat stuff got moved to pydal but the version in the release 
> doesn't have the version with the pydal with the compat stuff there.
>


 It's the latest pydal supposed to have the moved components? Because I 
just updated it and I got the same error.

-- 
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: hidden field on CRUD

2019-02-28 Thread Marcelo Huerta
El martes, 26 de febrero de 2019, 18:16:15 (UTC-3), Dave S escribió:
>
>
> Also look at 3rd party display tools like DataTables (datatables.net), 
> which is highly recommended in this list. (added in edit)
>
>
Are there any examples of usage of DataTables with web2py? 

-- 
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: fixing .table appears corrupted on a compiled application

2019-02-05 Thread Marcelo Huerta

El domingo, 3 de febrero de 2019, 18:19:34 (UTC-3), Dave S escribió:
>
>
> Back-ups are the nectar of the gods (nodding toward Greek mythonlogy)
>
>
>>>
Versioning systems for code, more so.

Mostwanted, if you don't want to start with something heavy and unwieldy as 
git, at the very least try Fossil  

-- 
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: Bug in tools.py

2018-12-12 Thread Marcelo Huerta
Please open your nearest Python interpreter and type at the ">>> " prompt:

help("".strip)


-- 
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: Send form data as email

2018-12-03 Thread Marcelo Huerta

El martes, 27 de noviembre de 2018, 7:54:40 (UTC-3), 黄祥 escribió:
>
> think you can put mail.send() method in form.process() method
>
>
I think it's probably best to queue the email sending in the scheduler, to 
avoid unresponsiveness in the page. 

-- 
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] Help needed with web2py-book app

2018-12-03 Thread Marcelo Huerta
El sábado, 24 de noviembre de 2018, 19:48:32 (UTC-3), Nico Zanferrari 
escribió:
>
> I'm proud to announce that I've finished the work, and now the web2py book 
> is python3 compatible, as with PR #395 
>  It was a hard work for 
> me, but I've learned a lot ;-)
>
>>
>>>
Is this the online version at web2py.com/book ?

I see there that the explanations about string are Python2-oriented, 
e.g. http://web2py.com/books/default/chapter/29/02/the-python-language#str 

-- 
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: What are you use with web2py.

2018-11-08 Thread Marcelo Huerta
My editor is Sublime Text 3. It's really fantastic, responsive and very 
configurable, with an interesting range of plugins.

AS VCS I use Fossil . It can't really be beaten for 
simplicity and easy of configuration. Your repositories can be self-hosted 
with little fuss. You can just have the repository on your own computer or 
share the repository at chiselapp.com. In summary... Try Fossil. You will 
be astonished.

For automation I use extensively the web2py scheduler, and executing the 
administration tasks as Upstart tasks or systemd services, when possible. 
(In Windows, I just use scripts turned into services with nssm, the "Non 
Sucky Service Manager".)

-- 
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: broken inframe video on manual web page

2018-10-16 Thread Marcelo Huerta

El domingo, 14 de octubre de 2018, 12:00:30 (UTC-3), Nico Zanferrari 
escribió:
>
> Hi,
> it seems that there is a missing reference on the online web2py manual at 
> http://www.web2py.com/init/default/documentation .
> There is a missing video 
> 
>  
> pointing at vimeo - no more available ;-(
>
> Nico  
>

Verified - the whole set of videos from Massimo seem to be at Vimeo (you 
can find them searching for "web2py video course 2013", but the caroussel 
doesn't work anymore.
Maybe they changed the way links are handled?

-- 
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: Search for list:string values in grid search?

2018-09-15 Thread Marcelo Huerta
El jueves, 23 de agosto de 2018, 23:08:02 (UTC-3), Anthony escribió:
>
> On Tuesday, August 14, 2018 at 9:59:53 AM UTC-4, Marcelo Huerta wrote:
>>
>> Is it possible at all to search for values contained in fields defined as 
>> list:string in the grid search dialog?
>>
>
> Technically the search functionality can handle such searches, but for 
> some reason, the search widget excludes list:-type fields from the list of 
> searchable fields (unless you are using GAE datastore). Feel free to open a 
> Github issue for that to be changed.
>
> Note, the grid takes a "search_widget" argument, which allows you to 
> specify a custom widget. The default widget is SQLFORM.search_menu. You 
> could create a forked version of that function, allowing list:string fields 
> to be included even for non-GAE databases. 
>

I'm not clear how to create the forked version... Do you mean to modify 
sqlhtml.py directly?

I tried creating a new instance of SQLFORM inheriting from sqlhtml.SQLFORM 
which only defines the new search_menu method, but invoking this new 
SQLFORM instead of the original didn't make any difference.

-- 
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: default search string in SQL.grid

2018-09-13 Thread Marcelo Huerta
El jueves, 13 de septiembre de 2018, 8:10:48 (UTC-3), Matthew J Watts 
escribió:
>
> Hello all
>
> Is there a way  to pre populate the  'search field' of the SQLFORM.grid? 
>
>
>
In your URL to the function containing the grid, you can pass the search 
string in the vars dictionary. Just assign it to the "keywords" key.

-- 
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] Search for list:string values in grid search?

2018-08-24 Thread Marcelo Huerta
Anthony, thank you for your message. I will work from the information you
gave, but I just wanted to say something regarding to a portion of the message:

> Finally, note that if you simply enter a string in the search box and
> click> "Search" (i.e., don't use the advanced search widget), it /will
> /search inside list:string fields. So, you can search list:string fields --
> they just aren't included in the advanced search options.
That I knew, and I have used this. But my case use needs a way to *exclude*
records containing certain labels -- which is why I cannot use this kind of
search.

Thank you again.

-- 
   o-=< Marcelo >=-o

-- 
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: Search for list:string values in grid search?

2018-08-22 Thread Marcelo Huerta

El martes, 14 de agosto de 2018, 10:59:53 (UTC-3), Marcelo Huerta escribió:
>
> Is it possible at all to search for values contained in fields defined as 
> list:string in the grid search dialog?
>

Anyone? 

-- 
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] Search for list:string values in grid search?

2018-08-14 Thread Marcelo Huerta
Is it possible at all to search for values contained in fields defined as 
list:string in the grid search dialog?

-- 
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: Why not to mention support to Python3 on the official sites main page?

2018-07-17 Thread Marcelo Huerta
El mar., 17 jul. 2018 a las 13:54, Ari Lion BR Sp ()
escribió:

> Thanks Marcelo Huerta  / Anthony.
>
> Do you have tested python3?
>

​I don't have the infrastructure to perform testing best performed by the
development team...​


>
> I can testify that perfomance improoves a lot. Whats lacking for official
> support announcement?
>

​Prominent mention in all documentation and ​a working test site would be
nice. There are several podcasts and web sites which could be happily
informed about web2py if those things were updated and working...


> Is there a list of issues for use under Python3?
>

​I would like to know this too.

-- 
   o-=< Marcelo >=-o

-- 
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: Why not to mention support to Python3 on the official sites main page?

2018-07-17 Thread Marcelo Huerta
El lunes, 16 de julio de 2018, 9:55:01 (UTC-3), Ari Lion BR Sp escribió:
>
> Hi,
>
> I wonder here why Python3 support is not mentioned at the official 
> web2py's website?
>
>
I also wonder this. I think it might be because web2py hasn't been 100% in 
Python3?

This is one of the issues which prevents further visibility of the 
framework (other that I think is also important is that the demo site 
doesn't work; if this could be made to work, preferable on Python 3, it 
would be very useful).

-- 
Marcelo 

-- 
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] web2py with python3

2018-06-12 Thread Marcelo Huerta
You should probably download the source version and follow the indications 
in http://www.web2py.com/books/default/chapter/29/03/overview#Startup about 
the source distribution. That way you invoke web2py.py with whatever 
version of Python you want to use.

-- 
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: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Marcelo Huerta
2018-06-04 14:54 GMT-03:00 Suhas Jadhav :
>
> Yes, I say the documentation. But issues here is urllib2 works well from my 
> python console.

The Python3 console?
Unless you have done something weird, urllib2 cannot work in the
Python3 console *because the module does not exist*.

The proper course of action is to migrate the code correctly to Python
3. You may have to extract the code and run it through 2to3, or a
similar process, but be as it may, *code legitimally intended to run
in Python3 shouldn't invoke a library which is not supposed to exist
there*.

This is not a web2py problem.

-- 
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: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Marcelo Huerta

El lunes, 4 de junio de 2018, 10:44:37 (UTC-3), Suhas Jadhav escribió:
>
>
> web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
>
> PYTHON Python 3.6.2
>
>
> Any solution or workaround?
>

Using proper Python3 code?
Module urllib2 does not exist in Python 3.

-- 
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: How to show conditional fields with multiple conditions

2018-05-09 Thread Marcelo Huerta
Untested, but, shouldn't you write the conditions as

((db.auth_user.insrrance_list == 'FIRE') or (db.auth_user.insrrance_list == 
'Both'))

?

(Notice the extra parentheses.)

-- 
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: problem export virtual field to CSV using grid

2018-04-18 Thread Marcelo Huerta
I have also found the same problem.

-- 
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: wfastcgi on IIS ... no more wfastcgi.py script?

2018-02-14 Thread Marcelo Huerta

El viernes, 18 de diciembre de 2015, 5:01:02 (UTC-3), Massimo Di Pierro 
escribió:
>
> Could you put this in the book? Thanks Tim.
>
>
>
I think that in spite of your request this has not yet been updated in the 
book. I still see a mention of a script called "wfasctgi.py" (sic), and 
nothing about this new methodology. 

-- 
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] Demo site pointed from About page is not working

2018-02-06 Thread Marcelo Huerta
The about page of the main web2py site 
(http://web2py.com/init/default/what) points to a demo page at 
http://www.web2py.com/demo_admin, but the demo is not working, it fails 
attempting to create a ticket but the "ticket number" is "unknown".

Either the demo or the page should be fixed...

-- 
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: DIV(*[DIV(k, syntax - this is working but I'm trying to follow...

2018-01-30 Thread Marcelo Huerta
El martes, 30 de enero de 2018, 0:25:12 (UTC-3), wdtnh escribió:
>
> From the web2py manual, I've got the following working fine but I'm not 
> clear on the DIV(* notation?  Not comfortable using a method that I don't 
> understand the syntax.  I understand the DIV() built-in but the DIV(* part 
> is unclear.  Any clarification would be greatly appreciated.
>
>
The inner [DIV(...) for k in data] is a list comprehension.

DIV() doesn't receive a list as parameter, but you must pass a series of 
separate positional parameters (besides the key parameters you can also 
pass). in order for your generated list to be processed correctly, the list 
must be expanded. Hence the * before the [DIV()...]

This is not specific to web2py but normal Python syntax.

-- 
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: auth.messages.subject

2018-01-24 Thread Marcelo Huerta
El miércoles, 24 de enero de 2018, 15:47:50 (UTC-3), Mark Billion escribió:
>
> So, this does not work.  Any way to set the subject line? (maybe Im just 
> missing it)
>

http://web2py.com/books/default/chapter/29/08/emails-and-sms#Sending-emails 

-- 
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: [ISSUE] can't see db from database administration menu

2017-11-02 Thread Marcelo Huerta
The error message seems to indicate that you're using web2py with Python 3. 
This seems to be a remaining issue pending the full compatibility of web2py 
with Py3: unicode is a builtin function of Python 2.

El miércoles, 1 de noviembre de 2017, 20:59:32 (UTC-3), Арслан Ибатуллин 
escribió:
>
> Hi, i'm newbee on web-development, so if i click on every db(even in new 
> created app), web2py gives me traceback: 
>
> Traceback (most recent call last):
>   File "/app/gluon/restricted.py", line 219, in restricted
> exec(ccode, environment)
>   File "/app/applications/blank/views/appadmin.html" 
> , 
> line 155, in 
> {{=T.M("Cache contains items up to **%(hours)02d** %%{hour(hours)} 
> **%(min)02d** %%{minute(min)} **%(sec)02d** %%{second(sec)} old.",
>   File "/app/gluon/globals.py", line 427, in write
> self.body.write(to_native(xmlescape(data)))
>   File "/app/gluon/html.py", line 125, in xmlescape
> return to_bytes(data.xml())
>   File "/app/gluon/languages.py", line 426, in xml
> return str(self) if self.M else local_html_escape(str(self), quote=False)
>   File "/app/gluon/languages.py", line 386, in __str__
> self.T.translate(self.m, self.s))
>   File "/app/gluon/languages.py", line 945, in translate
> message = self.params_substitution(message, symbols)
>   File "/app/gluon/languages.py", line 923, in params_substitution
> message = regex_plural.sub(sub_plural, message)
>   File "/app/gluon/languages.py", line 916, in sub_plural
> part = regex_plural_tuple.sub(sub_tuple, s)
>   File "/app/gluon/languages.py", line 881, in sub_tuple
> return fun(self.plural(word, symbols[int(i)]))
>   File "/app/gluon/languages.py", line 118, in cap_fun
> return unicode(s, 'utf-8').capitalize().encode('utf-8')
> NameError: name 'unicode' is not defined
>
> Before i've deleted some languages from folder. And in the users view i've 
> replaced some label with russian translate(ya i know about T(text), 
> but...). Also, i'm using heroku, so i've replaced standart db with Postgres.
>

-- 
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: mercurial

2017-09-04 Thread Marcelo Huerta

El sábado, 2 de septiembre de 2017, 1:23:07 (UTC-3), Massimo Di Pierro 
escribió:
>
> 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. :-)
>
>
What about people with other VCSs installed which would want to use them? 
If you are using a small subset of commands, maybe those commands could be 
configurable and that would leave the ability to fully configure to use 
different VCSs. I for one won't mind to have the ability to use Fossil from 
the admin interface.

-- 
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: how to optimize this query to get ids like [100,200,102,909] not [{'id':100,'id':200...}

2017-07-17 Thread Marcelo Huerta

El viernes, 14 de julio de 2017, 12:56:57 (UTC-3), Leonel Câmara escribió:
>
> The cleanest way is the little known and undocumented column:
>
> db(db.entities.type==5).select(db.entities.id).column()
>
>
This needs to be added to the 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 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: Type conversion for args/vars?

2017-05-11 Thread Marcelo Huerta

El jueves, 11 de mayo de 2017, 4:10:47 (UTC-3), Brendan Barnwell escribió:
>
>
> number = convert(request.args[1])
>

number = request.args(1, cast=int)
 

> option = convert(request.vars['option'])
>

I'm not aware of anything in this case.

-- 
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: Highlighting the fields that user can't leave blank

2017-04-17 Thread Marcelo Huerta
El miércoles, 12 de abril de 2017, 9:51:25 (UTC-3), Anthony escribió:
>
> First, don't use Crud, as it has been deprecated. Just use SQLFORM.
>

I guess the book should reflect this, then.
It still says «One of the recent additions to web2py is the 
Create/Read/Update/Delete (CRUD) API on top of SQLFORM...»

This confuses people into believing this is the modern and preferred way to 
do CRUD operations...

-- 
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: "Show_if" and Field Validation

2017-04-10 Thread Marcelo Huerta
Maybe creating a validation function which checks the different values and 
depending on them fills the form.errors values when a validation error 
happens? Take a look 
to 
http://web2py.com/books/default/chapter/29/07/forms-and-validators#onvalidation 

-- 
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] KeyError ticket when I request a CSV/TSV in a grid with a Virtual Field

2017-03-13 Thread Marcelo Huerta
> Can you show us your table definition?

db.define_table('contrib',
Field('titulo', label=T('Title'),   
 requires=IS_NOT_EMPTY(error_message=u'El título no puede estar vacío')),
Field('autor', requires=IS_NOT_EMPTY(
 error_message=u'El autor no puede estar vacío')),
Field('estado', default='nuevo', requires=IS_IN_SET(VALOR_ESTADOS)),
Field('numero', 'integer', label=T('Number'),
 requires=IS_EMPTY_OR(IS_INT_IN_RANGE(0, 1000)), represent=lambda valor,
 fila: valor or '--'),
Field('terminado', 'boolean'),
Field('archivo', 'upload', autodelete=True),
Field.Virtual('cant_eval', lambda row: db(db.eval.contrib_id ==
 row.contrib.id).count(), label='# eval'),
auth.signature,
singular=T('contribución'), plural=T('contribuciones'),
format = lambda r:r.titulo
)

> 
> Others will have to answer whether the CSV code knows whether a field is
> virtual or actual.  Looking at gluon/tools.py, server_csv() calls 
> universal_caller(), which appears to pass along as many positional and named
> arguments as it can, and for the csv case the named args come from 
> request.vars.

Hopefully someone can help with the problem...

-- 
   o-=< Marcelo >=-o

-- 
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] KeyError ticket when I request a CSV/TSV in a grid with a Virtual Field

2017-03-07 Thread Marcelo Huerta
Running 2.14.6-stable+timestamp.2016.05.10.00.21.47 on Ubuntu and Windows 
7, python 2.7

When I try to generate a CSV or TSV from a grid with a Virtual Field, I get 
a ticket with a KeyError.

Traceback (most recent call last):
  File "F:\Prog\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in environment
  File "F:\Prog\web2py\applications\axxoneval\controllers/default.py", line 
447, in 
  File "F:\Prog\web2py\gluon\globals.py", line 417, in 
self._caller = lambda f: f()
  File "F:\Prog\web2py\gluon\tools.py", line 4250, in f
return action(*a, **b)
  File "F:\Prog\web2py\applications\axxoneval\controllers/default.py", line 
199, in listar_evaluaciones
csv = True, create = False, editable = False, deletable = True, 
searchable=True, details=False,
  File "F:\Prog\web2py\gluon\sqlhtml.py", line 2752, in grid
value = row[str(field)]
  File "F:\Prog\web2py\gluon\packages\dal\pydal\objects.py", line 76, in 
__getitem__
raise KeyError
KeyError

Is this a known problem?

-- 
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: web3py status

2016-10-31 Thread Marcelo Huerta
El jueves, 18 de agosto de 2016, 16:44:05 (UTC-3), Massimo Di Pierro 
escribió:
>
> It is possible. web3py is code name for experimental stuff. Mostly new 
> form/grid logic that will be backported to web2py.
>
>
I read somewhere that you are thinking of ditching SQLFORM (and, I assume, 
the derived classes)...
How would those be replaced? In some cases, a single call to SQLFORM.grid 
would be the whole logic of a controller. What would replace this?

-- 
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] Scheduler Tasks show TICKER: error assigningt task (0) and task never start

2016-01-21 Thread Marcelo Huerta
> everything works fine with latest stable + postgresql 9.4 + psycopg2
> on win7. I'd say the fault could be a faulty web2py installation or at the
> very least a driver issue (try to upgrade to the latest)

And that was exactly it. I upgraded to the latest psycopg2 and the error
stopped appearing.

Sorry for the noise and THANK YOU VERY MUCH for the kind help.

-- 
   o-=< Marcelo >=-o

-- 
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] Scheduler Tasks show TICKER: error assigningt task (0) and task never start

2016-01-20 Thread Marcelo Huerta
Niphlod decía, en el mensaje "[web2py] Re: Scheduler Tasks show TICKER: error
assigningt task (0) and task never start" del 20/1/2016 17:42:40:
> all of the sudden or you just started it ?

No, I just incorporated the Scheduler to my application. Previously I wasn't
using it. It never worked from the moment I created the Scheduler object and I
didn't know why until I started running manually the "web2py.py -K app"
(previously I was using the "-K app -X" parameters in my service so I wasn't
seeing the errors).

I've tried removing the *.table files for all the schedule* tables and removed
them manually from the server using the backend console, and then restarted
the admin app and ran the scheduler manually again, to no avail.

-- 
   o-=< Marcelo >=-o

-- 
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: Scheduler Tasks show TICKER: error assigningt task (0) and task never start

2016-01-20 Thread Marcelo Huerta

>
> I'm having the same issue with a PostgreSQL 9.4 backend on Windows 7.
>

Python 2.7.10 (32 bits)
web2py: Version 2.13.4-stable+timestamp.2015.12.26.04.59.39 


2016-01-20 17:34:33,809 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (0)
2016-01-20 17:34:34,312 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (1)
2016-01-20 17:34:34,812 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (2)
2016-01-20 17:34:35,315 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (3)
2016-01-20 17:34:35,816 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (4)
2016-01-20 17:34:36,319 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (5)
2016-01-20 17:34:36,821 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (6)
2016-01-20 17:34:37,322 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (7)
2016-01-20 17:34:37,825 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (8)
2016-01-20 17:34:38,326 - web2py.scheduler.RALF#2436 - ERROR - TICKER: 
error assigning tasks (9)

>  
>

-- 
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] Right use of IS_IN_DB and its "_and" parameter

2016-01-04 Thread Marcelo Huerta
I have the following definition in a table referencing the auth_user table. 
I try to create a table of 

VALOR_ESTADOS = (
'inactivo',
'activo',
'vacaciones',
'desarrollo',
'edición',
'otro',
)

db.define_table('estado',
Field ('evaluador', 
'reference auth_user'),
Field 
('estado_actual', 
'string', length=20, default=VALOR_ESTADOS[0], requires=IS_IN_SET 

(VALOR_ESTADOS)),
auth.signature
)

I have the following definition in a table referencing the auth_user table. 
I try to create a table of states for the people in the auth_user table, 
but I don't know how to replace the default IS_IN_DB validator created when 
you use 'reference table_name' and also make that for each new status I 
create, the names which already have statuses created don't appear in the 
list.

Any suggestions?

-- 
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.