[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-26 Thread Mika Sjöman
Yes but how do I import the video into a field of web2py? 

I look in my app and it does not get inside my app folder - so where does 
it go? Say for example I download the movie via the Dropbox API, how do I 
then add it to my "video"
 table?

Cheers

On Monday, May 27, 2013 4:02:55 AM UTC+8, Niphlod wrote:
>
> if I understood correctly what you need is just something that updates a 
> table whenever a new file pops up into your dropbox folder (that receives 
> yet the files).
> Just schedule something that lists all contents of a directory and update 
> your table accordingly, let's say every minute.
> Scheduler can fit the bill, cause you'll be sure to have just one running 
> process that takes care of it.
> If you want a more refined solution ubuntu has filesystem notifications, 
> so hooking up with something like 
> https://pypi.python.org/pypi/watchdogwouldn't be difficult.
>
> On Sunday, May 26, 2013 9:09:32 PM UTC+2, Alan Etkin wrote:
>>
>> We are trying to set up our production flow so that the guys making small 
>>> instructional movies will automatically upload them to our server with 
>>> dropbox. My question is how I can get those movies into a database 
>>> automatically with the filename as the description into a 
>>> Field('Description') of our videos table? Does anyone have an idea of how 
>>> we can make somthing like this a reality?
>>>
>>
>> For using dropbox services from web2py apps, there's a recipe in the 
>> manual
>>
>> http://www.web2py.com/books/default/chapter/29/14#Dropbox-API
>>
>> If you want a video database integrated with slides and subtitles, try 
>> this app:
>>
>> http://code.google.com/p/video2py
>>
>>

-- 

--- 
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/groups/opt_out.




[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-26 Thread Mika Sjöman
Hi thanks for that dropbox info! Really helpful!

When it comes down to showing video at one side and presentation at another 
it is actually not so smart as people think. The brain has to take the 2D 
picture of the person and convert it to a 3D picture when it sees a face. 
Presenting material at the same time, overloads the brain and reduces 
learning (so it looks great but reduces learning). The great thing with for 
example Khan academy was that he took himself out of the picture and let 
students brains only focus on the material and his presentation. So 
video2py is not really for us. But thanks for the tip!

cheers



On Monday, May 27, 2013 3:09:32 AM UTC+8, Alan Etkin wrote:
>
> We are trying to set up our production flow so that the guys making small 
>> instructional movies will automatically upload them to our server with 
>> dropbox. My question is how I can get those movies into a database 
>> automatically with the filename as the description into a 
>> Field('Description') of our videos table? Does anyone have an idea of how 
>> we can make somthing like this a reality?
>>
>
> For using dropbox services from web2py apps, there's a recipe in the manual
>
> http://www.web2py.com/books/default/chapter/29/14#Dropbox-API
>
> If you want a video database integrated with slides and subtitles, try 
> this app:
>
> http://code.google.com/p/video2py
>
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: After update web2py version, invalid login.

2013-05-26 Thread toni campins

With another machine,and update from 2.4.6 to 2.4.7 no problem in 
postgresql database in localhost.

If I can reproduce the error again I'll alert.

Thanks


On Monday, May 27, 2013 7:15:53 AM UTC+2, Massimo Di Pierro wrote:
>
> This is a serious issue. Anybody else having this problem can help us 
> reproduce it?
>
> Massimo
>
> On Sunday, 26 May 2013 03:02:02 UTC-5, toni campins wrote:
>>
>> Hi,
>>
>> Why after update web2py i have to edit all passwords for invalid login?
>>
>> Thanks
>>
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: jquery mobile: popup calendar does not always appear

2013-05-26 Thread Rowdy

On 24/04/2013 10:02 AM, Rowdy wrote:

Greetings,

I am developing a desktop/mobile application using web2py 2.4.6
(currently hosted on CentOS 6.4 with Python 2.6.6, web2py running from
source).

If I have an SQLFORM containing a date field, when I tap on the field on
a mobile device the popup calendar does not appear.  Currently tested on
iOS using Safari and Chrome, and on Android using Chrome, but this also
happens when using a desktop version of Firefox with a user agent
switcher and masquerading as a mobile device.

If I simply reload the page (without doing anything else) and then tap
on the date field again, the popup calendar appears.

A similar page in the desktop version also contains a date field, and
the popup calendar appears first time and every time the field is
clicked without needing to reload the page.

Anyone got any ideas why this is happening?

I was wondering whether something was being cached, which prevented the
page initialisation script from running, at least not until the page is
reloaded, but that is grasping at straws.

Looking at the page source (on the desktop Firefox masquerading as a
mobile browser, where the same behaviour is exhibited), the before and
after reload page source is identical.

Any insight appreciated.

Thank you in advance.

Rowdy



This still seems to be a problem with 2.4.7.

Controller:

from gluon.contrib.user_agent_parser import mobilize

@mobilize
def cal():
form = FORM(
 TABLE(
   TR('Date', INPUT(_name = 'date1', _id = 'date1', _type = 
'text', _class = 'date', requires = IS_DATE())),

   TR('', INPUT(_type = 'submit', _value = 'Refresh'))
 )
   )

return dict(form = form)

View:

{{extend 'cal/layout.html'}}

{{=form}}

views/cal/layout.html copied from admin/views/plugin_jqmobile and 
static/plugin_jqmobile directory also copied from admin.


The same problem is exhibited with SQLFORM().

Any suggestions welcome, thanks.

Rowdy


--

--- 
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/groups/opt_out.




[web2py] Re: After update web2py version, invalid login.

2013-05-26 Thread Massimo Di Pierro
This is a serious issue. Anybody else having this problem can help us 
reproduce it?

Massimo

On Sunday, 26 May 2013 03:02:02 UTC-5, toni campins wrote:
>
> Hi,
>
> Why after update web2py i have to edit all passwords for invalid login?
>
> Thanks
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] Login with ID rather than email?

2013-05-26 Thread Massimo Di Pierro
auth.define_tables(username=True)



On Sunday, 26 May 2013 22:41:09 UTC-5, marco mansilla wrote:
>
> El Mon, 27 May 2013 13:00:11 +1000 
> Alec Taylor > escribió: 
>
> > Is it possible to login to web2py by ID rather than by email? 
> > 
> > Thanks for all information, 
> > 
> > Alec Taylor 
> > 
>
> if you mean something like username yes... and there are some ways to 
> hardcode the behaviour for this field to take the id value... 
>
> when you define a username field, automatically auth asks for it 
> instead of email. 
>
> Marco. 
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] Login with ID rather than email?

2013-05-26 Thread Marco Mansilla
El Mon, 27 May 2013 13:00:11 +1000
Alec Taylor  escribió:

> Is it possible to login to web2py by ID rather than by email?
> 
> Thanks for all information,
> 
> Alec Taylor
> 

if you mean something like username yes... and there are some ways to
hardcode the behaviour for this field to take the id value... 

when you define a username field, automatically auth asks for it
instead of email.

Marco.

-- 

--- 
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/groups/opt_out.




[web2py] Login with ID rather than email?

2013-05-26 Thread Alec Taylor
Is it possible to login to web2py by ID rather than by email?

Thanks for all information,

Alec Taylor

-- 

--- 
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/groups/opt_out.




Re: [web2py] After update web2py version, invalid login.

2013-05-26 Thread Massimo Di Pierro
What id you revert only dal.py? Can you login?

On Sunday, 26 May 2013 13:24:58 UTC-5, toni campins wrote:
>
> I get invalid login for every acount.

-- 

--- 
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/groups/opt_out.




[web2py] Re: Admin is "Temporarily down for maintenance" on PythonAnywhere

2013-05-26 Thread Massimo Di Pierro
What did you do? check is there is an applications/admin/DISABLED file. If 
there is, remove it.

On Sunday, 26 May 2013 12:54:59 UTC-5, Phil wrote:
>
> I shutdown my admin process in the web2py web app on my PythonAnywhere 
> account.  So now it says"Temporarily down for maintenance" when I try to go 
> to it. I know I can destroy the site and rebuild it to fix this.  But is 
> there a way to restart admin otherwise?

-- 

--- 
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/groups/opt_out.




[web2py] Re: help with functions index

2013-05-26 Thread Anthony
globals()is
 a Python built-in function that returns a dictionary of objects in the 
current global environment. You can use it to check whether a particular 
object name exists in the current environment to avoid generating an 
exception by referencing a name that doesn't exist. The .get() method can 
be used with any dictionary -- the first argument is the key you want to 
retrieve from the dictionary, and the second is a default value to return 
in case the key does not exist.

Anthony

On Sunday, May 26, 2013 3:38:17 PM UTC-4, André Kablu wrote:
>
> Hi all,
>
> I have been adventuring myself with web2py for some months now, just to 
> learn it, and I am enjoying very much. web2py is an awesome MVC.
>
> However it is my first time with python (yes I am only using python now 
> b/c of web2py :D ), and I am missing so much some kind of "functions index" 
> for web2py.
>
> Let me show an example, today I was looking for some details on the 
> function globals().get(param,param2)
> I don`t know what param1 and param2 means, for what they are used... and I 
> could not find anything googling...
>
> I know this is a kind of noob question but it is the reality for some guys 
> like me that are not heavy coders... so I needed more information.
>
> Did anybody knows where I can find more reference to all web2py exclusive 
> functions, like what we have on jquery website about jquery functions for 
> an example?
>
> Thanks guys!
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Testing your app using py.test

2013-05-26 Thread Anthony
Arnon, it is more than a little frustrating having a discussion with you, 
as it appears you don't really pay much attention to what others are 
saying. If you go back, you will see I have already addressed your 
argument. You are correct that we make different assumptions, but the 
differences are not where you think. My only assumption is that it is 
better to have a given feature sooner rather than later. On the contrary, 
you seem to be completely indifferent between having a feature available 
now and having it available at some indefinite future time. In your world, 
I suppose it would make sense to find the single most productive programmer 
on the planet, and let that person write all the software for all of 
humanity. Unfortunately, I think you're the only guy living in your world. 
If you can't see why it would be better to have software available sooner 
rather than later (or at least comprehend why most other people would have 
that preference), then I'm afraid you are beyond any help we can provide to 
you here.

As for users=developers - yes you are right. I may have a different 
> expectation than what in expected/accepted in the web2py community. That 
> would be a flaw of communication on the part of the web2py 
> community/developers/maintainers/managers etc.
>

No, I believe the flaw lies elsewhere in this case. I will leave it as an 
exercise for you to figure it out. ;-)

Anthony

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Memory leak, SQLite, Windows (7, 2008)

2013-05-26 Thread Simon Ashley
Thanks, that's good to know ...

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: No module named PIL

2013-05-26 Thread smoggy
In my code i use:
import Image



On Saturday, May 25, 2013 10:11:38 PM UTC+1, Massimo Di Pierro wrote:
>
> web2py source yes. PIL you do not install from source on windows because 
> it includes binary modules that must be compiler. You must get the binary 
> module.
>
> On Saturday, 25 May 2013 16:04:25 UTC-5, Alex Glaros wrote:
>>
>> Right, am  running from the web2py Windows binary.  
>>
>> So I will have to install Python and w2p from source
>>
>> thanks!
>>
>> Alex
>>
>> On Saturday, May 25, 2013 4:53:23 AM UTC-7, Anthony wrote:
>>>
>>> Do you have Python installed on your machine, or are you running from 
>>> the web2py Windows binary? If that latter, try installing Python on your 
>>> machine and run from web2py source instead.
>>>
>>> Anthony
>>>
>>> On Saturday, May 25, 2013 2:44:15 AM UTC-4, Alex Glaros wrote:

 error message said: python2.7 required, but was not found in registry

 tried all versions down to 2.4

 is there a work-around?

 thanks,

 Alex

 On Friday, May 24, 2013 11:27:43 PM UTC-7, Massimo Di Pierro wrote:
>
> You don't. In windows things are done the old fashion way. You 
> download the installer:
> http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe
> and run it. Then you pray it this is the right version.
>
> On Saturday, 25 May 2013 00:56:07 UTC-5, Alex Glaros wrote:
>>
>> I have a windows machine.  Where do I type "pip install PIL"?
>>
>> Do I type in the "plugins" section, shell section, at the DOS command 
>> line?
>>
>> On Friday, May 24, 2013 10:25:58 PM UTC-7, visuallinux wrote:
>>>
>>> pip install PIL
>>>
>>>
>>>
>>> Enviado desde mi iPhone
>>>
>>> El 25-05-2013, a las 0:35, Alex Glaros  
>>> escribió:
>>>
>>> I'll try to install it but can you please tell where and how?   I 
>>> can't find where Python is in the web2py folders.
>>>
>>> thanks,
>>>
>>> Alex
>>>
>>> On Friday, May 24, 2013 9:31:02 PM UTC-7, Anthony wrote:

 Sounds like you don't have PIL installed.
>>>
>>>  -- 
>>>  
>>> --- 
>>> 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.
>>>  
>>>  
>>>
>>>

-- 

--- 
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/groups/opt_out.




[web2py] Error on start: 'Auth' object has no attribute 'wikimenu'

2013-05-26 Thread jfinke
I just downloaded the mac version of web2py.  When I start the server with 
a password, I immediately get an error ticket.

Error ticket for "welcome"Ticket ID

127.0.0.1.2013-05-26.17-23-02.b3d13a3c-4b2c-445a-a4cf-2722911fae41
 'Auth' object has no attribute 'wikimenu'
Versionweb2py™Version (2, 4, 7, 'stable', datetime.datetime(2013, 5, 24, 
17, 48, 47))PythonPython 2.5.1: 
/Users/jeremy/Downloads/web2py/web2py.app/Contents/MacOS/pythonTraceback

1.
2.
3.
4.
5.

Traceback (most recent call last):
  File "/home/mdipierro/web2py/gluon/restricted.py", line 212, in restricted
  File 
"/Users/jeremy/Downloads/web2py/web2py.app/Contents/Resources/applications/welcome/models/menu.py"
 , line 140, 
in 
AttributeError: 'Auth' object has no attribute 'wikimenu'

Error snapshot [image: 
help]

('Auth' object has no attribute 
'wikimenu')

When I go to line 140 in models/menu.py, I see:

if "auth" in locals(): auth.wikimenu()


Any ideas?  Thanks!


-- 

--- 
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/groups/opt_out.




[web2py] help with functions index

2013-05-26 Thread André Kablu
Hi all,

I have been adventuring myself with web2py for some months now, just to 
learn it, and I am enjoying very much. web2py is an awesome MVC.

However it is my first time with python (yes I am only using python now b/c 
of web2py :D ), and I am missing so much some kind of "functions index" for 
web2py.

Let me show an example, today I was looking for some details on the 
function globals().get(param,param2)
I don`t know what param1 and param2 means, for what they are used... and I 
could not find anything googling...

I know this is a kind of noob question but it is the reality for some guys 
like me that are not heavy coders... so I needed more information.

Did anybody knows where I can find more reference to all web2py exclusive 
functions, like what we have on jquery website about jquery functions for 
an example?

Thanks guys!

-- 

--- 
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/groups/opt_out.




[web2py] Re: mysql db connections

2013-05-26 Thread Saba
Thanks for the reply. I really appreciate. I'm developing an app using 
web2py to pull up records from mysql db and present it to the user using 
custom views. It looks like sometimes it takes < 1sec to display the 
records to the user (i'm the only user now) but other times it takes around 
4-5secs to display the same records (less than 50 rows). From my 
observation, the latency seems to occur when the user, after pulling up 
records, remains idle for few mins and then pulls up the same records 
again. I'm using a pool_size of 5. Any suggestions on how to reduce the 
latency? Again I really appreciate the responses.
 

On Sunday, May 26, 2013 6:37:19 AM UTC-7, Massimo Di Pierro wrote:

>
>
> On Sunday, 26 May 2013 01:34:40 UTC-5, Saba wrote:
>>
>>  
>> Hi,
>>  
>> I have a question please regarding db connections and connection pooling 
>> in web2py.
>>  
>> In models/db.py, I have a connect string like this:
>>  
>> db=DAL('mysql...',pool_size=5)
>>  
>> does model files get executed for every request?
>>
>
> yes
>  
>
>> If so, then does it create the above db connection for every request?
>>
>
> No. when the request is completed the connection is put in a pool and the 
> next request pulls it from the pool. If you have more concurrent requests 
> than the pool size then a new connection is created. Pool size starts at 
> zero and grows up to the pool size you have declared (5) than stay fixed.
>  
>
>>  
>> For eg, if there are 10 requests, does it create 50 separate db 
>> connections ( 10 requests * 5 pool_size)?
>>
>
> No. If you have 10 requests but not concurrent, it creates only 1 
> connection in total. If you have 10 concurrent requests, it creates 10 
> connections (one each) but when complete will close 5 and recycle 5 for 
> future use.
>  
>
>>  
>> Please let me know. Appreciate your response.
>>  
>> thanks,
>> Saba
>>  
>>  
>>
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-26 Thread Niphlod
if I understood correctly what you need is just something that updates a 
table whenever a new file pops up into your dropbox folder (that receives 
yet the files).
Just schedule something that lists all contents of a directory and update 
your table accordingly, let's say every minute.
Scheduler can fit the bill, cause you'll be sure to have just one running 
process that takes care of it.
If you want a more refined solution ubuntu has filesystem notifications, so 
hooking up with something like https://pypi.python.org/pypi/watchdog 
wouldn't be difficult.

On Sunday, May 26, 2013 9:09:32 PM UTC+2, Alan Etkin wrote:
>
> We are trying to set up our production flow so that the guys making small 
>> instructional movies will automatically upload them to our server with 
>> dropbox. My question is how I can get those movies into a database 
>> automatically with the filename as the description into a 
>> Field('Description') of our videos table? Does anyone have an idea of how 
>> we can make somthing like this a reality?
>>
>
> For using dropbox services from web2py apps, there's a recipe in the manual
>
> http://www.web2py.com/books/default/chapter/29/14#Dropbox-API
>
> If you want a video database integrated with slides and subtitles, try 
> this app:
>
> http://code.google.com/p/video2py
>
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Testing your app using py.test

2013-05-26 Thread Arnon Marcus
I think that we fail to communicate because we have different un-spoken
assumptions. Let's take the following sentence as an example for what I
mean by that:
" less expert users should work on the easy tasks (that they can do), even
if it takes them a bit longer, leaving the more expert users to work on the
harder tasks"

What might be an un-spoken assumption in this sentence?
"There is a "shortage" of time/effort for developing both easy and complex
solutions - One "must" come "in the expense" of another."
In other words, there is a "GIVEN" time or amount of effort that
"experienced" developers have to spare/contribute. Within that given time,
an experienced-developer may "either" work on a complex task "or" a set of
easy ones - he can not do both.

I think the problem is not with your logic. The problem is with this
assumption.
As there is no formal road-map, then there "IS NO *GIVEN*" time in
existence that can be pointed at. Therefore, using the word "leaving" in
"leaving the experienced developer..." has no actual meaning in this
context.

A developer may "think" he has more tasks that he would like to accomplish,
than spare-time to do them all, but that's a cognitive-illusion on his part.
There can only be shortage of spare-time if there is a schedule to frame
the time-context. If there is no schedule in existence, than there is no
time-frame, and therefore no shortage, and any derivative-term that assumes
shortage looses it's meaning.

As for users=developers - yes you are right. I may have a different
expectation than what in expected/accepted in the web2py community. That
would be a flaw of communication on the part of the web2py
community/developers/maintainers/managers etc.

If web2py has a different set of  meaning to common-terminology compared to
other open-source communities, then this information should be explicit and
up-front - say, on a sticky-thread on this forum and/or a document
explaining this anywhere else. As long as it is NOT explicit/up-front, it
would be erroneous of any well-versed web2py contributor to assume this
knowledge on the part of other web2py "whatever"s... If anything, the
correct assumption should be the opposite.


On Sun, May 26, 2013 at 6:09 AM, Anthony  wrote:

>
> However, it seems that our common interest for a road-map, may not fit the
>> way you operate - as you said, if developers don't need a feature, it will
>> not be written.
>> This nulls the possibility of web2py developers answering the needs of
>> web2py users.
>>
>
> Arnon, I think you are somewhat missing the point. This is not necessarily
> true of all open source projects, but at least with web2py, the users are
> the developers. Of course, not all users are developers, but contributions
> to the framework (as well as other aspects of community maintenance) come
> from users. As Massimo suggested, if some feature is really important or
> broadly useful, some user or users will end up working on it, likely
> because they themselves need it and are willing to put in the extra effort
> to generalize the solution. If nobody is willing to work on a particular
> feature, it is likely because there just isn't a strong enough need for it.
> If you're the only guy asking for something, don't expect someone else to
> do it for you.
>
>
>> I agree that a road-map should not contain deadlines - that makes sense
>> (I hate deadlines...:) ) - this way more efficient usage of man-power would
>> be possible, as the "eventual existence" of a well-written feature, is in
>> most cases of higher-priority to users than a 
>> poorly-written-immediate-**availability
>> of that same feature. This way, the person with the most
>> experience/knowledge of a given section of the code, would be the one to
>> develop that feature, however long it may take for him to get to it.
>> That was the point I tried to convey to Anthony - it feels like we see
>> more eye-to-eye on this point.
>>
>
> The point you conveyed was that you were unwilling to spend your time on a
> relatively easy task because you thought someone else could do it faster
> (though, it's starting to sound like you wouldn't be willing even if you
> could do it just as quickly, as you consider yourself to be a mere "user"
> who expects "developers" to respond to your needs). I have not suggested
> that we should prefer poorly-written features over well-written features
> merely to get the features sooner. I was actually making the opposite point
> -- that less expert users should work on the easy tasks (that they can do),
> even if it takes them a bit longer, leaving the more expert users to work
> on the harder tasks. And of course, there are always trade-offs -- we
> might prefer a competent but less sophisticated implementation next week
> over a comprehensive and complex implementation a year from now,
> particularly since the two options are not mutually exclusive. There is
> room for people of varying abilities to make contributions. If you don't
> want to 

[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-26 Thread Alan Etkin

>
> We are trying to set up our production flow so that the guys making small 
> instructional movies will automatically upload them to our server with 
> dropbox. My question is how I can get those movies into a database 
> automatically with the filename as the description into a 
> Field('Description') of our videos table? Does anyone have an idea of how 
> we can make somthing like this a reality?
>

For using dropbox services from web2py apps, there's a recipe in the manual

http://www.web2py.com/books/default/chapter/29/14#Dropbox-API

If you want a video database integrated with slides and subtitles, try this 
app:

http://code.google.com/p/video2py

-- 

--- 
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/groups/opt_out.




[web2py] Admin is "Temporarily down for maintenance" on PythonAnywhere

2013-05-26 Thread Phil
I shutdown my admin process in the web2py web app on my PythonAnywhere 
account.  So now it says"Temporarily down for maintenance" when I try to go 
to it. I know I can destroy the site and rebuild it to fix this.  But is 
there a way to restart admin otherwise?

-- 

--- 
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/groups/opt_out.




[web2py] Re: IDE edit function doesn't work on ipad ?

2013-05-26 Thread Maxxy
Me too.
web2py editor doesnt wotk on my ipad and neither on iPhone.

web2py it's almost perfect but I do need to edit my file on the go.
Is there any workaround or any roadmap to address this problem?

Maxx

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: web2py 2.4.7 is Out

2013-05-26 Thread Marin Pranjić
looks like bootstrap 2.3.2 fixed few issues but introduced more


On Sun, May 26, 2013 at 7:42 PM, Mika Sjöman  wrote:

> I agree
>
> I think it confuses people allot who are starting with web2py since many
> try to use online themes, but they break because web2py uses an old version
> of bootstrap.
>
> Cheers
>
>
> On Sunday, May 26, 2013 7:33:59 PM UTC+8, LightDot wrote:
>>
>> This should fix it nicely.
>>
>> Btw, I see jQuery 1.10.0 has been included in the trunk. This would
>> probably be a good moment to also upgrade Bootstrap to 2.3.2. Should be a
>> drop-in replacement for 2.2.2.
>>
>> Regards,
>> Ales
>>
>> On Sunday, May 26, 2013 10:58:08 AM UTC+2, Niphlod wrote:
>>>
>>> in hg to delete a bookmark
>>>
>>> hg tag --remove 
>>>
>>>
>>> in git instead its
>>>
>>> git tag -d 
>>> git push origin :refs/tags/
>>>
>>>
>>>
>>> PS: github doesn't hold the new tag name yet. To propagate tags you have
>>> to issue
>>> git push origin --tags
>>>
>>> On Saturday, May 25, 2013 10:59:36 PM UTC+2, Massimo Di Pierro wrote:

 I re-tagged trunk. I will post 2.4.8 asap since I am not sure how to
 remove a tag.

 On Saturday, 25 May 2013 12:51:51 UTC-5, LightDot wrote:
>
> On a more serious note, release tag in mercurial and git states
> R-2.7.4, should be R-2.4.7... Should this be fixed to prevent any future
> confusion?
>
> Regards,
> Ales
>
>
> On Friday, May 24, 2013 7:56:11 PM UTC+2, Massimo Di Pierro wrote:
>>
>> I posted web2py 2.4.7. Includes mostly bug fixes.
>
>  --
>
> ---
> 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/groups/opt_out.
>
>
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] After update web2py version, invalid login.

2013-05-26 Thread toni campins
I get invalid login for every acount.

-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy
when I changed the table definition to

db.define_table(
'location',
Field('name' ),
Field('category_id', 'reference category'),
Field('company_id',  'reference company'  ,label = 'Owner id '),
Field('user_id', 'reference auth_user',writable = False , 
readable = True),
Field('dept_id', 'reference dept', writable = False , 
readable = True ))
db.location.name.requires =IS_NOT_EMPTY()
db.location.category_id.requires =IS_NOT_EMPTY()
db.location.company_id.requires =IS_NOT_EMPTY()
db.location.user_id.requires =IS_NOT_EMPTY()
db.location.dept_id.requires =IS_NOT_EMPTY()

It works fine.

I think that it needs to explored...

Thanks 

-- 

--- 
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/groups/opt_out.




[web2py] Re: Dropboxing movies into Web2py Server?

2013-05-26 Thread Mika Sjöman
forgot to add that our server is a ubuntu server...

Cheers

On Monday, May 27, 2013 1:52:59 AM UTC+8, Mika Sjöman wrote:
>
> Hi
>
> We are trying to set up our production flow so that the guys making small 
> instructional movies will automatically upload them to our server with 
> dropbox. My question is how I can get those movies into a database 
> automatically with the filename as the description into a 
> Field('Description') of our videos table? Does anyone have an idea of how 
> we can make somthing like this a reality?
>
> Cheers
>

-- 

--- 
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/groups/opt_out.




[web2py] Dropboxing movies into Web2py Server?

2013-05-26 Thread Mika Sjöman
Hi

We are trying to set up our production flow so that the guys making small 
instructional movies will automatically upload them to our server with 
dropbox. My question is how I can get those movies into a database 
automatically with the filename as the description into a 
Field('Description') of our videos table? Does anyone have an idea of how 
we can make somthing like this a reality?

Cheers

-- 

--- 
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/groups/opt_out.




[web2py] Re: web2py 2.4.7 is Out

2013-05-26 Thread Mika Sjöman
I agree 

I think it confuses people allot who are starting with web2py since many 
try to use online themes, but they break because web2py uses an old version 
of bootstrap.

Cheers

On Sunday, May 26, 2013 7:33:59 PM UTC+8, LightDot wrote:
>
> This should fix it nicely.
>
> Btw, I see jQuery 1.10.0 has been included in the trunk. This would 
> probably be a good moment to also upgrade Bootstrap to 2.3.2. Should be a 
> drop-in replacement for 2.2.2.
>
> Regards,
> Ales
>
> On Sunday, May 26, 2013 10:58:08 AM UTC+2, Niphlod wrote:
>>
>> in hg to delete a bookmark
>>
>> hg tag --remove 
>>
>>
>> in git instead its
>>
>> git tag -d 
>> git push origin :refs/tags/
>>
>>
>>
>> PS: github doesn't hold the new tag name yet. To propagate tags you have 
>> to issue 
>> git push origin --tags
>>
>> On Saturday, May 25, 2013 10:59:36 PM UTC+2, Massimo Di Pierro wrote:
>>>
>>> I re-tagged trunk. I will post 2.4.8 asap since I am not sure how to 
>>> remove a tag.
>>>
>>> On Saturday, 25 May 2013 12:51:51 UTC-5, LightDot wrote:

 On a more serious note, release tag in mercurial and git states 
 R-2.7.4, should be R-2.4.7... Should this be fixed to prevent any future 
 confusion?

 Regards,
 Ales


 On Friday, May 24, 2013 7:56:11 PM UTC+2, Massimo Di Pierro wrote:
>
> I posted web2py 2.4.7. Includes mostly bug fixes.



-- 

--- 
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/groups/opt_out.




[web2py] Re: Session variables disappearing

2013-05-26 Thread Rob Mayhue


>  You say your app users were logged in but after a given time the 
> _load_settings function stopped working (stopped storing data)?
>

 The _load_settings() function is only called once, right after the user 
logs in using auth.settings.login_onaccept.append(). The idea was to store 
certain rarely changed settings in the session to avoid making any 
unnecessary database calls later on.

Have you made an upgrade that would have changed the behavior introducing 
> unreported backward compatibility issues?. Maybe you can debug the function 
> to log user activity and check if the appended function is actually being 
> executed.
>

In every recent web2py version I've tested (including the current trunk) 
the _load_settings() function is being called after the user logs in and 
the vars are being created. I can see that by looking at the session vars 
after a login.
 

> BTW: recently there was a request for changing the syntax for storing 
> session files IIRC because of imcompatibilities with some special clients.
>

There may be something going on with certain clients, I'm not sure. Like I 
said... this only seems to happen intermittently. The user remains logged 
in, but the session vars that were created via _load_settings() are missing 
but all the auth vars the framework creates remain. I'm assuming, possibly 
incorrectly, that the auth vars are only created once at the beginning of 
the session.


-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy


On Sunday, May 26, 2013 5:14:18 PM UTC+3, webpypy wrote:
>
> Hi,
>
> the statement
>
> form = SQLFORM(db.table)
>
> is giving the error
>
>  unbound method formatter() must be called with IS_NOT_EMPTY instance as 
> first argument (got str instance instead)
>
> Please, explain.
>
> regards,
>
> Ashraf
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy
when I added the fields, as in

form = SQLFORM(db.location, fields=['name'])
if form.process().accepted:

it worked, but stopped at the next statement, giving the error

 'IS_NOT_EMPTY' object is not iterable

-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy
Here it is

db.define_table(
'location',
Field('name' ,   requires = IS_NOT_EMPTY),
Field('category_id', 'reference category', requires = IS_NOT_EMPTY),
Field('company_id',  'reference company',  requires = 
IS_NOT_EMPTY,label = 'Owner id '),
Field('user_id', 'reference auth_user',requires = IS_NOT_EMPTY ,
   writable = False , readable = True),
Field('dept_id', 'reference dept',requires = IS_NOT_EMPTY ,
   writable = False , readable = True ))


-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread Anthony
Can you show the db.table definition?

On Sunday, May 26, 2013 10:14:18 AM UTC-4, webpypy wrote:
>
> Hi,
>
> the statement
>
> form = SQLFORM(db.table)
>
> is giving the error
>
>  unbound method formatter() must be called with IS_NOT_EMPTY instance as 
> first argument (got str instance instead)
>
> Please, explain.
>
> regards,
>
> Ashraf
>

-- 

--- 
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/groups/opt_out.




[web2py] TypeError

2013-05-26 Thread webpypy
Hi,

the statement

form = SQLFORM(db.table)

is giving the error

 unbound method formatter() must be called with IS_NOT_EMPTY instance as 
first argument (got str instance instead)

Please, explain.

regards,

Ashraf

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: database shootout

2013-05-26 Thread Massimo Di Pierro
Can you tell us more. I believe firebird does not support multiple alter 
tables in transaction and that is cause of some problems. Make sure you 
always mgrate one table at the time.

On Sunday, 26 May 2013 06:24:49 UTC-5, Alexei Vinidiktov wrote:
>
> I use Firebird with web2py but I often have problems migrating db schemas 
> because of incorrect sql migration scripts that web2py issues.
>
>
> On Sat, Mar 9, 2013 at 1:04 AM, pjag >wrote:
>
>> web2py works nicely with Firebird DB.  Highly recommended.
>>
>>
>> On Thursday, March 7, 2013 3:41:18 PM UTC-5, BlueShadow wrote:
>>>
>>> Hi guys so I learned that using SQLlite for me wasn't a great 
>>> choice(thanks Niphlod). But since I started using databases when I started 
>>> to use web2py. I got no clue what database to use. I used sqllite because 
>>> it was in the welcome app and it worked while having my site offline and 
>>> with me being the only user. I know the choice is mostly personal prefrence 
>>> but I thought give it a trail and ask you guys why you chose your 
>>> particular database.
>>> It would be really nice if you could tell me a few pros and cons.
>>> I researched a little on PostgreSQL, MySQL and SQLite the informations I 
>>> got were sometimes contradicting.
>>> I got about 2 times a writing command per page per visit. (keeping track 
>>> of views for articles) but apparently thats already too much for SQLite.
>>>
>>  -- 
>>  
>> --- 
>> 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.
>>  
>>  
>>
>
>
>
> -- 
> Alexei Vinidiktov 
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: mysql db connections

2013-05-26 Thread Massimo Di Pierro


On Sunday, 26 May 2013 01:34:40 UTC-5, Saba wrote:
>
>  
> Hi,
>  
> I have a question please regarding db connections and connection pooling 
> in web2py.
>  
> In models/db.py, I have a connect string like this:
>  
> db=DAL('mysql...',pool_size=5)
>  
> does model files get executed for every request?
>

yes
 

> If so, then does it create the above db connection for every request?
>

No. when the request is completed the connection is put in a pool and the 
next request pulls it from the pool. If you have more concurrent requests 
than the pool size then a new connection is created. Pool size starts at 
zero and grows up to the pool size you have declared (5) than stay fixed.
 

>  
> For eg, if there are 10 requests, does it create 50 separate db 
> connections ( 10 requests * 5 pool_size)?
>

No. If you have 10 requests but not concurrent, it creates only 1 
connection in total. If you have 10 concurrent requests, it creates 10 
connections (one each) but when complete will close 5 and recycle 5 for 
future use.
 

>  
> Please let me know. Appreciate your response.
>  
> thanks,
> Saba
>  
>  
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] After update web2py version, invalid login.

2013-05-26 Thread Massimo Di Pierro
Do you get invalid invalid login for every account or only one?
What id you revert only dal.py? Can you login?

Massimo

On Sunday, 26 May 2013 03:28:35 UTC-5, toni campins wrote:
>
> From 2.4.6 to 2.4.7
>
> I think the problem is only in postresql database,in sqlite i have no 
> problem.
>
>
>
>
> El domingo, 26 de mayo de 2013 10:23:26 UTC+2, Marin Pranjić escribió:
>>
>> From which version did you update?
>>
>> Marin
>>
>>
>> On Sun, May 26, 2013 at 10:02 AM, toni campins  wrote:
>>
>>> Hi,
>>>
>>> Why after update web2py i have to edit all passwords for invalid login?
>>>
>>> Thanks
>>>
>>> -- 
>>>  
>>> --- 
>>> 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.
>>>  
>>>  
>>>
>>
>>

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Testing your app using py.test

2013-05-26 Thread Anthony


> However, it seems that our common interest for a road-map, may not fit the 
> way you operate - as you said, if developers don't need a feature, it will 
> not be written.
> This nulls the possibility of web2py developers answering the needs of 
> web2py users.
>

Arnon, I think you are somewhat missing the point. This is not necessarily 
true of all open source projects, but at least with web2py, the users are 
the developers. Of course, not all users are developers, but contributions 
to the framework (as well as other aspects of community maintenance) come 
from users. As Massimo suggested, if some feature is really important or 
broadly useful, some user or users will end up working on it, likely 
because they themselves need it and are willing to put in the extra effort 
to generalize the solution. If nobody is willing to work on a particular 
feature, it is likely because there just isn't a strong enough need for it. 
If you're the only guy asking for something, don't expect someone else to 
do it for you.
 

> I agree that a road-map should not contain deadlines - that makes sense (I 
> hate deadlines...:) ) - this way more efficient usage of man-power would be 
> possible, as the "eventual existence" of a well-written feature, is in most 
> cases of higher-priority to users than a 
> poorly-written-immediate-availability 
> of that same feature. This way, the person with the most 
> experience/knowledge of a given section of the code, would be the one to 
> develop that feature, however long it may take for him to get to it.
> That was the point I tried to convey to Anthony - it feels like we see 
> more eye-to-eye on this point.
>

The point you conveyed was that you were unwilling to spend your time on a 
relatively easy task because you thought someone else could do it faster 
(though, it's starting to sound like you wouldn't be willing even if you 
could do it just as quickly, as you consider yourself to be a mere "user" 
who expects "developers" to respond to your needs). I have not suggested 
that we should prefer poorly-written features over well-written features 
merely to get the features sooner. I was actually making the opposite point 
-- that less expert users should work on the easy tasks (that they can do), 
even if it takes them a bit longer, leaving the more expert users to work 
on the harder tasks. And of course, there are always trade-offs -- we might 
prefer a competent but less sophisticated implementation next week over a 
comprehensive and complex implementation a year from now, particularly 
since the two options are not mutually exclusive. There is room for people 
of varying abilities to make contributions. If you don't want to be one of 
them, that's fine.

Anthony

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Testing your app using py.test

2013-05-26 Thread Anthony
Arnon, once again, we agree. It is true that *some* announcements are under 
140 characters and that *all* announcements could be made by including a 
link to a longer announcement. But then you need a separate place for the 
linked longer announcements (such as Google Groups). Note, this very thread 
started with an announcement that is well over 140 characters.

Anthony

Only for announcements that include links to the real announcement.
>>  
>>
>
> Let's see:
>
> 2.4.7 is out: http://web2py.com/init/default/changelog
>
> (54 characters) 
>
> 2.4.7 is out:
> pypy support, thanks Niphlod
> more bug fixes
>
> (57 characters)
>
> Obviously, for more verbose change-logs, a link can be used.
> But the change-log update is not a product of the announcement - it's 
> gonna have to happen anyways - so it's not a 
> "redundant-duplication-due-to-process", more like a "convenience-detailing, 
> if possible"...
>  
>
>>
>>> Sounds like that would be a biased sample.
>>
>
> We can test our hypotheses, if you like, but I've just given a practice 
> real-world use-case example that works...
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: web2py 2.4.7 is Out

2013-05-26 Thread LightDot
This should fix it nicely.

Btw, I see jQuery 1.10.0 has been included in the trunk. This would 
probably be a good moment to also upgrade Bootstrap to 2.3.2. Should be a 
drop-in replacement for 2.2.2.

Regards,
Ales

On Sunday, May 26, 2013 10:58:08 AM UTC+2, Niphlod wrote:
>
> in hg to delete a bookmark
>
> hg tag --remove 
>
>
> in git instead its
>
> git tag -d 
> git push origin :refs/tags/
>
>
>
> PS: github doesn't hold the new tag name yet. To propagate tags you have 
> to issue 
> git push origin --tags
>
> On Saturday, May 25, 2013 10:59:36 PM UTC+2, Massimo Di Pierro wrote:
>>
>> I re-tagged trunk. I will post 2.4.8 asap since I am not sure how to 
>> remove a tag.
>>
>> On Saturday, 25 May 2013 12:51:51 UTC-5, LightDot wrote:
>>>
>>> On a more serious note, release tag in mercurial and git states R-2.7.4, 
>>> should be R-2.4.7... Should this be fixed to prevent any future confusion?
>>>
>>> Regards,
>>> Ales
>>>
>>>
>>> On Friday, May 24, 2013 7:56:11 PM UTC+2, Massimo Di Pierro wrote:

 I posted web2py 2.4.7. Includes mostly bug fixes.
>>>
>>>

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: database shootout

2013-05-26 Thread Alexei Vinidiktov
I use Firebird with web2py but I often have problems migrating db schemas
because of incorrect sql migration scripts that web2py issues.


On Sat, Mar 9, 2013 at 1:04 AM, pjag  wrote:

> web2py works nicely with Firebird DB.  Highly recommended.
>
>
> On Thursday, March 7, 2013 3:41:18 PM UTC-5, BlueShadow wrote:
>>
>> Hi guys so I learned that using SQLlite for me wasn't a great
>> choice(thanks Niphlod). But since I started using databases when I started
>> to use web2py. I got no clue what database to use. I used sqllite because
>> it was in the welcome app and it worked while having my site offline and
>> with me being the only user. I know the choice is mostly personal prefrence
>> but I thought give it a trail and ask you guys why you chose your
>> particular database.
>> It would be really nice if you could tell me a few pros and cons.
>> I researched a little on PostgreSQL, MySQL and SQLite the informations I
>> got were sometimes contradicting.
>> I got about 2 times a writing command per page per visit. (keeping track
>> of views for articles) but apparently thats already too much for SQLite.
>>
>  --
>
> ---
> 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/groups/opt_out.
>
>
>



-- 
Alexei Vinidiktov

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Testing your app using py.test

2013-05-26 Thread Arnon Marcus
Thanks for explaining, Massimo.

However, it seems that our common interest for a road-map, may not fit the 
way you operate - as you said, if developers don't need a feature, it will 
not be written.
This nulls the possibility of web2py developers answering the needs of 
web2py users.

I agree that a road-map should not contain deadlines - that makes sense (I 
hate deadlines...:) ) - this way more efficient usage of man-power would be 
possible, as the "eventual existence" of a well-written feature, is in most 
cases of higher-priority to users than a 
poorly-written-immediate-availability of that same feature. This way, the 
person with the most experience/knowledge of a given section of the code, 
would be the one to develop that feature, however long it may take for him 
to get to it.
That was the point I tried to convey to Anthony - it feels like we see more 
eye-to-eye on this point.

-- 

--- 
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/groups/opt_out.




Re: [web2py] Re: Testing your app using py.test

2013-05-26 Thread Arnon Marcus

>
>
> Only for announcements that include links to the real announcement.
>  
>

Let's see:

2.4.7 is out: http://web2py.com/init/default/changelog

(54 characters) 

2.4.7 is out:
pypy support, thanks Niphlod
more bug fixes

(57 characters)

Obviously, for more verbose change-logs, a link can be used.
But the change-log update is not a product of the announcement - it's gonna 
have to happen anyways - so it's not a 
"redundant-duplication-due-to-process", more like a "convenience-detailing, 
if possible"...
 

>
>> Sounds like that would be a biased sample.
>

We can test our hypotheses, if you like, but I've just given a practice 
real-world use-case example that works...

-- 

--- 
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/groups/opt_out.




[web2py] Re: web2py 2.4.7 is Out

2013-05-26 Thread Niphlod
in hg to delete a bookmark

hg tag --remove 


in git instead its

git tag -d 
git push origin :refs/tags/



PS: github doesn't hold the new tag name yet. To propagate tags you have to 
issue 
git push origin --tags

On Saturday, May 25, 2013 10:59:36 PM UTC+2, Massimo Di Pierro wrote:
>
> I re-tagged trunk. I will post 2.4.8 asap since I am not sure how to 
> remove a tag.
>
> On Saturday, 25 May 2013 12:51:51 UTC-5, LightDot wrote:
>>
>> On a more serious note, release tag in mercurial and git states R-2.7.4, 
>> should be R-2.4.7... Should this be fixed to prevent any future confusion?
>>
>> Regards,
>> Ales
>>
>>
>> On Friday, May 24, 2013 7:56:11 PM UTC+2, Massimo Di Pierro wrote:
>>>
>>> I posted web2py 2.4.7. Includes mostly bug fixes.
>>
>>

-- 

--- 
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/groups/opt_out.




[web2py] Re: mysql db connections

2013-05-26 Thread Niphlod
nope. DAL retains a connection pool, opening at most pool_size connections. 
For threaded webservers, this means that every connection instantiate a new 
connection until pool_size is reached. Connections are then recycled (as 
opposed to trashed) for every new incoming request.
For multiprocess webservers (ones that relies on fork()) instead pool_size 
is unconsequential (i.e. better to set it to 1): every new process 
"inherits" the connection and work with that.

On Sunday, May 26, 2013 8:34:40 AM UTC+2, Saba wrote:
>
>  
> Hi,
>  
> I have a question please regarding db connections and connection pooling 
> in web2py.
>  
> In models/db.py, I have a connect string like this:
>  
> db=DAL('mysql...',pool_size=5)
>  
> does model files get executed for every request? If so, then does it 
> create the above db connection for every request? 
>  
> For eg, if there are 10 requests, does it create 50 separate db 
> connections ( 10 requests * 5 pool_size)?
>  
> Please let me know. Appreciate your response.
>  
> thanks,
> Saba
>  
>  
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] After update web2py version, invalid login.

2013-05-26 Thread toni campins
>From 2.4.6 to 2.4.7

I think the problem is only in postresql database,in sqlite i have no 
problem.




El domingo, 26 de mayo de 2013 10:23:26 UTC+2, Marin Pranjić escribió:
>
> From which version did you update?
>
> Marin
>
>
> On Sun, May 26, 2013 at 10:02 AM, toni campins 
> > wrote:
>
>> Hi,
>>
>> Why after update web2py i have to edit all passwords for invalid login?
>>
>> Thanks
>>
>> -- 
>>  
>> --- 
>> 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.
>>  
>>  
>>
>
>

-- 

--- 
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/groups/opt_out.




Re: [web2py] After update web2py version, invalid login.

2013-05-26 Thread Marin Pranjić
>From which version did you update?

Marin


On Sun, May 26, 2013 at 10:02 AM, toni campins  wrote:

> Hi,
>
> Why after update web2py i have to edit all passwords for invalid login?
>
> Thanks
>
> --
>
> ---
> 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/groups/opt_out.
>
>
>

-- 

--- 
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/groups/opt_out.




[web2py] After update web2py version, invalid login.

2013-05-26 Thread toni campins
Hi,

Why after update web2py i have to edit all passwords for invalid login?

Thanks

-- 

--- 
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/groups/opt_out.