[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-13 Thread mart
Hi, yes, I did restart the server... The install (no upgrade) was
obviously as smooth as ever. I did look a little deeper in the folder
that was upgraded, and realized that I was upgrading something I
grabbed from trunk instead  of a the previous official release. In
which case, I would not expect anyone or any organization to support
this type of upgrade path. Not sure why it id that, but I would say
that it is 1) my bad for upgrading an what should be for testing and
development 2) my bad, ... well just because. I did look around and
can't see any reason why the web2py upgrade would have broken the
installed server (i probably had something that would have broken it
at the next stop/start of the server anyways).


BTW - does look great!

On Nov 13, 1:10 am, mdipierro  wrote:
> Did you restart the server?
>
> On Nov 12, 11:13 pm, mart  wrote:
>
> > hum... the upgrade broke my running instance of web2py (not a big
> > deal, I'll just install (not upgrade) to a different folder). Since,
> > this seems to only happen to me, I can assume that it is something I
> > have in current web2py folder (or on my system)... wish I knew what
> > the "oddity" was so I could report better The strange thing, is
> > that i get a continuous cycle of tickets. While trying to view the
> > ticket, I get a new ticket (different number), and this just keeps on
> > going... anyways, thought you may want to know tat this is happening.
>
> > Tanks
> > Mart :)
>
> > On Nov 12, 11:55 pm, Alex  wrote:
>
> > > Maybe a bug?
>
> > > When I create a .LOAD component, the save doesn't seem to work in IE
> > > or Firefox.
>
> > > On Nov 12, 10:44 pm, mdipierro  wrote:
>
> > > > The fact is after you upgrade you get the new admin which uses a new
> > > > API function. Unless you restart the server that API function is not
> > > > available. This is a one time event since we never made such a big
> > > > change in admin.
>
> > > > On Nov 12, 7:26 pm, Anthony  wrote:
>
> > > > > I had the same exact experience on Windows (in IE). Here's the
> > > > > traceback I got:
>
> > > > > Traceback (most recent call last):
> > > > >   File "C:\web2py\gluon\restricted.py", line 188, in restricted
> > > > >     exec ccode in environment
> > > > >   File "C:\web2py\applications\admin/views\default/site.html", line
> > > > > 182, in 
> > > > > AttributeError: 'translator' object has no attribute
> > > > > 'get_possible_languages'
>
> > > > > Referring to:
>
> > > > >   for language in T.get_possible_languages():
>
> > > > > Like Andrew, everything was fine after restarting web2py.
>
> > > > > Anthony
>
> > > > > On Nov 12, 7:20 pm, Andrew Thompson  wrote:
>
> > > > > > On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> > > > > > I doubt this is what you meant, but I seem to have hit a snag with 
> > > > > > the
> > > > > > upgrade.
>
> > > > > > web2py is running on ubuntu, but I'm managing it from chrome on 
> > > > > > win7.
> > > > > > After upgrading, the redirect back failed. Attempting to reload the
> > > > > > admin page gave me more failures.
>
> > > > > > If anyone wants to glance over the error files:
>
> > > > > >http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0..
>
> > > > > > Restarting the web2py process cleared it up, and it seems to be ok. 
> > > > > > I've
> > > > > > got the new admin interface, and my small handfull of sites are 
> > > > > > still
> > > > > > running.
>
> > > > > > --
> > > > > > Andrew Thompsonhttp://aktzero.com/-Hidequotedtext -
>
> > > > - Show quoted text -
>
>


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-13 Thread Brian M
Alex, I too am seeing that .load files are not being saved - add
Chrome on windows 7 to the list.

Firebug shows an error :
area is not defined
  var data = area.textarea.value

I suspect this is due to the regular editor not being defined (it is
just a plain textarea instead of the usual editor with syntax
highlighting, etc).

Massimo, I was able to fix this by editing admin/controllers/
default.py and adding an extra check to edit() so that .load files
would be considered html.  (Of course this still doesn't fix the
general problem of the javascript adit_area_full.js editor apparently
not playing nice with the ajax save for filetypes of "text" which is
the default)

def edit():
""" File edit handler """
# Load json only if it is ajax edited...

filename = '/'.join(request.args)

# Try to discover the file type
if filename[-3:] == '.py':
filetype = 'python'
elif filename[-5:] == '.html':
filetype = 'html'
elif filename[-5:] == '.load': #<-added so can edit &
save .load components
filetype = 'html'
elif filename[-4:] == '.css':
filetype = 'css'
elif filename[-3:] == '.js':
filetype = 'js'
else:
filetype = 'text'

~Brian

On Nov 12, 10:55 pm, Alex  wrote:
> Maybe a bug?
>
> When I create a .LOAD component, the save doesn't seem to work in IE
> or Firefox.
>
> On Nov 12, 10:44 pm, mdipierro  wrote:
>
>
>
>
>
>
>
> > The fact is after you upgrade you get the new admin which uses a new
> > API function. Unless you restart the server that API function is not
> > available. This is a one time event since we never made such a big
> > change in admin.
>
> > On Nov 12, 7:26 pm, Anthony  wrote:
>
> > > I had the same exact experience on Windows (in IE). Here's the
> > > traceback I got:
>
> > > Traceback (most recent call last):
> > >   File "C:\web2py\gluon\restricted.py", line 188, in restricted
> > >     exec ccode in environment
> > >   File "C:\web2py\applications\admin/views\default/site.html", line
> > > 182, in 
> > > AttributeError: 'translator' object has no attribute
> > > 'get_possible_languages'
>
> > > Referring to:
>
> > >   for language in T.get_possible_languages():
>
> > > Like Andrew, everything was fine after restarting web2py.
>
> > > Anthony
>
> > > On Nov 12, 7:20 pm, Andrew Thompson  wrote:
>
> > > > On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> > > > I doubt this is what you meant, but I seem to have hit a snag with the
> > > > upgrade.
>
> > > > web2py is running on ubuntu, but I'm managing it from chrome on win7.
> > > > After upgrading, the redirect back failed. Attempting to reload the
> > > > admin page gave me more failures.
>
> > > > If anyone wants to glance over the error files:
>
> > > >http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0..
>
> > > > Restarting the web2py process cleared it up, and it seems to be ok. I've
> > > > got the new admin interface, and my small handfull of sites are still
> > > > running.
>
> > > > --
> > > > Andrew Thompsonhttp://aktzero.com/-Hide quoted text -
>
> > - Show quoted text -


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
Did you restart the server?

On Nov 12, 11:13 pm, mart  wrote:
> hum... the upgrade broke my running instance of web2py (not a big
> deal, I'll just install (not upgrade) to a different folder). Since,
> this seems to only happen to me, I can assume that it is something I
> have in current web2py folder (or on my system)... wish I knew what
> the "oddity" was so I could report better The strange thing, is
> that i get a continuous cycle of tickets. While trying to view the
> ticket, I get a new ticket (different number), and this just keeps on
> going... anyways, thought you may want to know tat this is happening.
>
> Tanks
> Mart :)
>
> On Nov 12, 11:55 pm, Alex  wrote:
>
>
>
>
>
> > Maybe a bug?
>
> > When I create a .LOAD component, the save doesn't seem to work in IE
> > or Firefox.
>
> > On Nov 12, 10:44 pm, mdipierro  wrote:
>
> > > The fact is after you upgrade you get the new admin which uses a new
> > > API function. Unless you restart the server that API function is not
> > > available. This is a one time event since we never made such a big
> > > change in admin.
>
> > > On Nov 12, 7:26 pm, Anthony  wrote:
>
> > > > I had the same exact experience on Windows (in IE). Here's the
> > > > traceback I got:
>
> > > > Traceback (most recent call last):
> > > >   File "C:\web2py\gluon\restricted.py", line 188, in restricted
> > > >     exec ccode in environment
> > > >   File "C:\web2py\applications\admin/views\default/site.html", line
> > > > 182, in 
> > > > AttributeError: 'translator' object has no attribute
> > > > 'get_possible_languages'
>
> > > > Referring to:
>
> > > >   for language in T.get_possible_languages():
>
> > > > Like Andrew, everything was fine after restarting web2py.
>
> > > > Anthony
>
> > > > On Nov 12, 7:20 pm, Andrew Thompson  wrote:
>
> > > > > On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> > > > > I doubt this is what you meant, but I seem to have hit a snag with the
> > > > > upgrade.
>
> > > > > web2py is running on ubuntu, but I'm managing it from chrome on win7.
> > > > > After upgrading, the redirect back failed. Attempting to reload the
> > > > > admin page gave me more failures.
>
> > > > > If anyone wants to glance over the error files:
>
> > > > >http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0..
>
> > > > > Restarting the web2py process cleared it up, and it seems to be ok. 
> > > > > I've
> > > > > got the new admin interface, and my small handfull of sites are still
> > > > > running.
>
> > > > > --
> > > > > Andrew Thompsonhttp://aktzero.com/-Hidequoted text -
>
> > > - Show quoted text -
>
>


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mart
hum... the upgrade broke my running instance of web2py (not a big
deal, I'll just install (not upgrade) to a different folder). Since,
this seems to only happen to me, I can assume that it is something I
have in current web2py folder (or on my system)... wish I knew what
the "oddity" was so I could report better The strange thing, is
that i get a continuous cycle of tickets. While trying to view the
ticket, I get a new ticket (different number), and this just keeps on
going... anyways, thought you may want to know tat this is happening.


Tanks
Mart :)

On Nov 12, 11:55 pm, Alex  wrote:
> Maybe a bug?
>
> When I create a .LOAD component, the save doesn't seem to work in IE
> or Firefox.
>
> On Nov 12, 10:44 pm, mdipierro  wrote:
>
> > The fact is after you upgrade you get the new admin which uses a new
> > API function. Unless you restart the server that API function is not
> > available. This is a one time event since we never made such a big
> > change in admin.
>
> > On Nov 12, 7:26 pm, Anthony  wrote:
>
> > > I had the same exact experience on Windows (in IE). Here's the
> > > traceback I got:
>
> > > Traceback (most recent call last):
> > >   File "C:\web2py\gluon\restricted.py", line 188, in restricted
> > >     exec ccode in environment
> > >   File "C:\web2py\applications\admin/views\default/site.html", line
> > > 182, in 
> > > AttributeError: 'translator' object has no attribute
> > > 'get_possible_languages'
>
> > > Referring to:
>
> > >   for language in T.get_possible_languages():
>
> > > Like Andrew, everything was fine after restarting web2py.
>
> > > Anthony
>
> > > On Nov 12, 7:20 pm, Andrew Thompson  wrote:
>
> > > > On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> > > > I doubt this is what you meant, but I seem to have hit a snag with the
> > > > upgrade.
>
> > > > web2py is running on ubuntu, but I'm managing it from chrome on win7.
> > > > After upgrading, the redirect back failed. Attempting to reload the
> > > > admin page gave me more failures.
>
> > > > If anyone wants to glance over the error files:
>
> > > >http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0..
>
> > > > Restarting the web2py process cleared it up, and it seems to be ok. I've
> > > > got the new admin interface, and my small handfull of sites are still
> > > > running.
>
> > > > --
> > > > Andrew Thompsonhttp://aktzero.com/-Hide quoted text -
>
> > - Show quoted text -
>
>


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Alex
Maybe a bug?

When I create a .LOAD component, the save doesn't seem to work in IE
or Firefox.

On Nov 12, 10:44 pm, mdipierro  wrote:
> The fact is after you upgrade you get the new admin which uses a new
> API function. Unless you restart the server that API function is not
> available. This is a one time event since we never made such a big
> change in admin.
>
> On Nov 12, 7:26 pm, Anthony  wrote:
>
>
>
> > I had the same exact experience on Windows (in IE). Here's the
> > traceback I got:
>
> > Traceback (most recent call last):
> >   File "C:\web2py\gluon\restricted.py", line 188, in restricted
> >     exec ccode in environment
> >   File "C:\web2py\applications\admin/views\default/site.html", line
> > 182, in 
> > AttributeError: 'translator' object has no attribute
> > 'get_possible_languages'
>
> > Referring to:
>
> >   for language in T.get_possible_languages():
>
> > Like Andrew, everything was fine after restarting web2py.
>
> > Anthony
>
> > On Nov 12, 7:20 pm, Andrew Thompson  wrote:
>
> > > On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> > > I doubt this is what you meant, but I seem to have hit a snag with the
> > > upgrade.
>
> > > web2py is running on ubuntu, but I'm managing it from chrome on win7.
> > > After upgrading, the redirect back failed. Attempting to reload the
> > > admin page gave me more failures.
>
> > > If anyone wants to glance over the error files:
>
> > >http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0..
>
> > > Restarting the web2py process cleared it up, and it seems to be ok. I've
> > > got the new admin interface, and my small handfull of sites are still
> > > running.
>
> > > --
> > > Andrew Thompsonhttp://aktzero.com/- Hide quoted text -
>
> - Show quoted text -


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
The fact is after you upgrade you get the new admin which uses a new
API function. Unless you restart the server that API function is not
available. This is a one time event since we never made such a big
change in admin.

On Nov 12, 7:26 pm, Anthony  wrote:
> I had the same exact experience on Windows (in IE). Here's the
> traceback I got:
>
> Traceback (most recent call last):
>   File "C:\web2py\gluon\restricted.py", line 188, in restricted
>     exec ccode in environment
>   File "C:\web2py\applications\admin/views\default/site.html", line
> 182, in 
> AttributeError: 'translator' object has no attribute
> 'get_possible_languages'
>
> Referring to:
>
>   for language in T.get_possible_languages():
>
> Like Andrew, everything was fine after restarting web2py.
>
> Anthony
>
> On Nov 12, 7:20 pm, Andrew Thompson  wrote:
>
> > On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> > I doubt this is what you meant, but I seem to have hit a snag with the
> > upgrade.
>
> > web2py is running on ubuntu, but I'm managing it from chrome on win7.
> > After upgrading, the redirect back failed. Attempting to reload the
> > admin page gave me more failures.
>
> > If anyone wants to glance over the error files:
>
> >http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0..
>
> > Restarting the web2py process cleared it up, and it seems to be ok. I've
> > got the new admin interface, and my small handfull of sites are still
> > running.
>
> > --
> > Andrew Thompsonhttp://aktzero.com/
>
>


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Anthony
I had the same exact experience on Windows (in IE). Here's the
traceback I got:

Traceback (most recent call last):
  File "C:\web2py\gluon\restricted.py", line 188, in restricted
exec ccode in environment
  File "C:\web2py\applications\admin/views\default/site.html", line
182, in 
AttributeError: 'translator' object has no attribute
'get_possible_languages'

Referring to:

  for language in T.get_possible_languages():

Like Andrew, everything was fine after restarting web2py.

Anthony


On Nov 12, 7:20 pm, Andrew Thompson  wrote:
> On 11/12/2010 4:58 PM, mdipierro wrote:> ps. may not work on windows
>
> I doubt this is what you meant, but I seem to have hit a snag with the
> upgrade.
>
> web2py is running on ubuntu, but I'm managing it from chrome on win7.
> After upgrading, the redirect back failed. Attempting to reload the
> admin page gave me more failures.
>
> If anyone wants to glance over the error files:
>
> http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0...http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-0...http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-04-0...http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-02-5...
>
> Restarting the web2py process cleared it up, and it seems to be ok. I've
> got the new admin interface, and my small handfull of sites are still
> running.
>
> --
> Andrew Thompsonhttp://aktzero.com/


Re: [web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Andrew Thompson

On 11/12/2010 4:58 PM, mdipierro wrote:

ps. may not work on windows

I doubt this is what you meant, but I seem to have hit a snag with the 
upgrade.


web2py is running on ubuntu, but I'm managing it from chrome on win7. 
After upgrading, the redirect back failed. Attempting to reload the 
admin page gave me more failures.


If anyone wants to glance over the error files:

http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-03.214c98d0-8098-402f-b763-4343b57db743
http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-03-00.e4723686-3941-4b87-b311-ff93903df654
http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-04-02.80cd2b37-276d-4029-b138-f51cfe10ff1c
http://aktzero.com/static/scratch/___127.0.0.1.2010-11-12.19-02-57.431d91af-4e2f-465c-8e59-c5e5f0f2e444

Restarting the web2py process cleared it up, and it seems to be ok. I've 
got the new admin interface, and my small handfull of sites are still 
running.


--
Andrew Thompson
http://aktzero.com/



[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
ps. may not work on windows

On Nov 12, 3:11 pm, Andrew Thompson  wrote:
> On 11/12/2010 10:22 AM, mdipierro wrote:
>
> > Please give it a try and report any bug.
>
> > 1.89.1
> > - new admin layout (thanks Branko Vukelic)
> > - new admin search
> > - new admin language selector (thanks Yair)
> > - new Welcome app (thanks Martin Mulone)
>
> I've been recently just updating with the link in the admin console.
> Will this update the admin and welcome apps?
>
> If not, how do I best migrate to the new version?
>
> --
> Andrew Thompsonhttp://aktzero.com/


[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
yes

On Nov 12, 3:11 pm, Andrew Thompson  wrote:
> On 11/12/2010 10:22 AM, mdipierro wrote:
>
> > Please give it a try and report any bug.
>
> > 1.89.1
> > - new admin layout (thanks Branko Vukelic)
> > - new admin search
> > - new admin language selector (thanks Yair)
> > - new Welcome app (thanks Martin Mulone)
>
> I've been recently just updating with the link in the admin console.
> Will this update the admin and welcome apps?
>
> If not, how do I best migrate to the new version?
>
> --
> Andrew Thompsonhttp://aktzero.com/