Open ERP Forum
   IndexIndex   SearchSearch     RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   RSSRSS   Mailing ListMailing List   Log inLog in 

burk
Goto page Previous  1, 2, 3, 4, 5  
Post new topic   Reply to topic    Open Object Forum Index -> General discussion
View previous topic :: View next topic  
Author Message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Tue Jul 21, 2009 10:36 am    Post subject: Reply with quote

it's because I didn't say please, or thanks for new bug I found again with new sources ...
A+ Arrow
Back to top
View user's profile Send private message
jitu.hds



Joined: 29 Jul 2008
Posts: 184
Location: delhi

PostPosted: Tue Jul 21, 2009 11:03 am    Post subject: Reply with quote

may be u r right......but what makes difference?after a lot of work & time[all waisted] we are still there where before few days........nothing is going to change ....i have a fair question to openerp....if there is no way.....then tell[we will accept it as it si] or if there is way...then what???
_________________
jitu
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Tue Jul 21, 2009 11:29 am    Post subject: Reply with quote

A+

Last edited by GEM on Thu Jan 28, 2010 2:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Tue Jul 21, 2009 11:53 am    Post subject: Reply with quote

I would like inform that the official version for windows allinone 5.0.1 has the same problem with pytz for vista sp2 french version.
I don't understand utility to propose a software to test under windows with bug or error message, I will not pay for a version for linux, even if you say that there is no problem ....
For the image of openerp, it's not very good, but they have too many client, they don't worry.
A+
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Wed Jul 22, 2009 3:32 pm    Post subject: Reply with quote

look again a little ... , s. no new news ....
perhaps when the score of 8000 views will be attain we will have an answer for the pytz problem.
No chance, it is for windows, it's not a priority, and unnecessary (this word exists ?).
I should be a girl and say pleazzzzzzzzzzzzz, show emoticones Crying or Very sad ...., perhaps I will have an answer .....
For the moment, good night.
Zzzzzz
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Wed Jul 22, 2009 3:40 pm    Post subject: Reply with quote

perhaps this is the man of the situation

Last edited by GEM on Tue Dec 22, 2009 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Wed Jul 22, 2009 5:00 pm    Post subject: Reply with quote

You're right,
but I don't have money , I can't develop for myself, I help nobody since I subscribe to the forum, I do spam with emoticones and don't give solution again that, I'm a dissident because I speak about fork (I speak about same experience for some software) and to finish I'm agressive.
Back to top
View user's profile Send private message
sraps



Joined: 09 Jul 2008
Posts: 242

PostPosted: Wed Jul 22, 2009 5:56 pm    Post subject: Reply with quote

If you are aggressive because of something and do a riot, demolish something or "kill" somebody. Anyway you are pissing off rest of society, so you are going to be isolated. In case of the forum it would result in a ban.

Do fight against the people who are offending you, not the people who are not responsible for that.

If here were only posts from Tiny, I would encourage you on doing a riot.
At the moment this forum is the central place where people can discuss something on OpenERP.

So be more constructive please! 70% or more of your posts are bullshit, nothing more.

There are lot of things where one can help and contribute in the OSS project, even not being a direct developer or having the money.

Kaspars
---------------------------------
http://kndati.lv
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Wed Jul 22, 2009 6:32 pm    Post subject: Reply with quote

bad statistique (it's not a critic), I wil say 85% at least, you should have read all my post since one month, and I'm agree with you, but don't forget to read all post since the end of year 2008, and perhaps you will understand the evolution of my attitude (which is not good actually, I'm again agree with you).
And you are right, I ban myself of this forum, but there is no reason that a lot of people do the same things than me, perhaps that some people think the same things like me or not, but I'm sure that there are a lot of people who leave the forum and not by my fault .
To be constructive? I tried to be it, perhaps without the result you (and me) would for me, I let you the last answer if you want, I will follow what you say, I will transform me like most people to an ostrich.
Back to top
View user's profile Send private message
sraps



Joined: 09 Jul 2008
Posts: 242

PostPosted: Wed Jul 22, 2009 8:30 pm    Post subject: Reply with quote

Quote:
To be constructive? I tried to be it, perhaps without the result you (and me) would for me, I let you the last answer if you want, I will follow what you say, I will transform me like most people to an ostrich.


I wouldn't call myself an ostrich, nor the other people who are trying to use and make prosper the attractive tool.

People with loud voice and clear position always lead others, who are not so confident.

If you would do nothing, you would be an ostrich. If you make fuss, you are going to sabotage remaining part of this site which belongs to community, as well as make bad image of the whole project.

We are working on this project as other people do, trying to make living on it. We are trying to get the software better, but we are not going to promote Tiny, nor their partners, because they are not about fair play.

They benefit from visibility (free marketing and promotion), testing, bugfixing and so on, still trying to squeeze profit out of the community which make all of that. Before someone try to argue, that they develop the code, find statistical breakdownn of software life cycle costing...

Tryton made fork, but this is not the best solution to the problem. To my opinion it is better to make strong independent external community around existing OpenERP. Editor will not be able to do anything about it, then they will be forced to play by the same rules as other contributors.

Maybe they would become leaders among equals, or be the somewhere there in the past, but not at the ignorant position as they are now.

It would be better if you realize your eager in a more effective way.

Kaspars
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Thu Jul 23, 2009 10:11 am    Post subject: Reply with quote

The ostrich strategy :
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Thu Jul 23, 2009 11:22 am    Post subject: Reply with quote

the opposed way :
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Thu Jul 23, 2009 11:39 am    Post subject: Reply with quote

another way, work :
adapt this code in pytz __init__.py with the habitual test if os.name == 'nt':

package DateTime::TimeZone::Local::Win32;

use strict;
use warnings;

use base 'DateTime::TimeZone::Local';

use Win32::TieRegistry ( 'KEY_READ', Delimiter => q{/} );


sub Methods { return qw( FromEnv FromRegistry ) }

sub EnvVars { return 'TZ' }

{
# This list comes (mostly) in the zipball for the Chronos project
# - a Smalltalk datetime library. Thanks, Chronos!
my %WinToOlson =
( 'Afghanistan' => 'Asia/Kabul',
'Afghanistan Standard Time' => 'Asia/Kabul',
'Alaskan' => 'America/Anchorage',
'Alaskan Standard Time' => 'America/Anchorage',
'Arab' => 'Asia/Riyadh',
'Arab Standard Time' => 'Asia/Riyadh',
'Arabian' => 'Asia/Muscat',
'Arabian Standard Time' => 'Asia/Muscat',
'Arabic Standard Time' => 'Asia/Baghdad',
'Argentina Standard Time' => 'America/Argentina/Buenos_Aires',
'Armenian Standard Time' => 'Asia/Yerevan',
'Atlantic' => 'America/Halifax',
'Atlantic Standard Time' => 'America/Halifax',
'AUS Central' => 'Australia/Darwin',
'AUS Central Standard Time' => 'Australia/Darwin',
'AUS Eastern' => 'Australia/Sydney',
'AUS Eastern Standard Time' => 'Australia/Sydney',
'Azerbaijan Standard Time' => 'Asia/Baku',
'Azores' => 'Atlantic/Azores',
'Azores Standard Time' => 'Atlantic/Azores',
'Bangkok' => 'Asia/Bangkok',
'Bangkok Standard Time' => 'Asia/Bangkok',
'Beijing' => 'Asia/Shanghai',
'Canada Central' => 'America/Regina',
'Canada Central Standard Time' => 'America/Regina',
'Cape Verde Standard Time' => 'Atlantic/Cape_Verde',
'Caucasus' => 'Asia/Yerevan',
'Caucasus Standard Time' => 'Asia/Yerevan',
'Cen. Australia' => 'Australia/Adelaide',
'Cen. Australia Standard Time' => 'Australia/Adelaide',
'Central' => 'America/Chicago',
'Central America Standard Time' => 'America/Regina',
'Central Asia' => 'Asia/Dhaka',
'Central Asia Standard Time' => 'Asia/Dhaka',
'Central Brazilian Standard Time' => 'America/Manaus',
'Central Europe' => 'Europe/Prague',
'Central Europe Standard Time' => 'Europe/Prague',
'Central European' => 'Europe/Belgrade',
'Central European Standard Time' => 'Europe/Belgrade',
'Central Pacific' => 'Pacific/Guadalcanal',
'Central Pacific Standard Time' => 'Pacific/Guadalcanal',
'Central Standard Time' => 'America/Chicago',
'Central Standard Time (Mexico)' => 'America/Mexico_City',
'China' => 'Asia/Shanghai',
'China Standard Time' => 'Asia/Shanghai',
'Dateline' => 'Pacific/Majuro',
'Dateline Standard Time' => 'Pacific/Majuro',
'E. Africa' => 'Africa/Nairobi',
'E. Africa Standard Time' => 'Africa/Nairobi',
'E. Australia' => 'Australia/Brisbane',
'E. Australia Standard Time' => 'Australia/Brisbane',
'E. Europe' => 'Europe/Minsk',
'E. Europe Standard Time' => 'Europe/Minsk',
'E. South America' => 'America/Sao_Paulo',
'E. South America Standard Time' => 'America/Sao_Paulo',
'Eastern' => 'America/New_York',
'Eastern Standard Time' => 'America/New_York',
'Egypt' => 'Africa/Cairo',
'Egypt Standard Time' => 'Africa/Cairo',
'Ekaterinburg' => 'Asia/Yekaterinburg',
'Ekaterinburg Standard Time' => 'Asia/Yekaterinburg',
'Fiji' => 'Pacific/Fiji',
'Fiji Standard Time' => 'Pacific/Fiji',
'FLE' => 'Europe/Helsinki',
'FLE Standard Time' => 'Europe/Helsinki',
'Georgian Standard Time' => 'Asia/Tbilisi',
'GFT' => 'Europe/Athens',
'GFT Standard Time' => 'Europe/Athens',
'GMT' => 'Europe/London',
'GMT Standard Time' => 'Europe/London',
'Greenland Standard Time' => 'America/Godthab',
'Greenwich' => 'GMT',
'Greenwich Standard Time' => 'GMT',
'GTB' => 'Europe/Athens',
'GTB Standard Time' => 'Europe/Athens',
'Hawaiian' => 'Pacific/Honolulu',
'Hawaiian Standard Time' => 'Pacific/Honolulu',
'India' => 'Asia/Calcutta',
'India Standard Time' => 'Asia/Calcutta',
'Iran' => 'Asia/Tehran',
'Iran Standard Time' => 'Asia/Tehran',
'Israel' => 'Asia/Jerusalem',
'Israel Standard Time' => 'Asia/Jerusalem',
'Jordan Standard Time' => 'Asia/Amman',
'Korea' => 'Asia/Seoul',
'Korea Standard Time' => 'Asia/Seoul',
'Mauritius Standard Time' => 'Indian/Mauritius',
'Mexico' => 'America/Mexico_City',
'Mexico Standard Time' => 'America/Mexico_City',
'Mexico Standard Time 2' => 'America/Chihuahua',
'Mid-Atlantic' => 'Atlantic/South_Georgia',
'Mid-Atlantic Standard Time' => 'Atlantic/South_Georgia',
'Middle East Standard Time' => 'Asia/Beirut',
'Montevideo Standard Time' => 'America/Montevideo',
'Morocco Standard Time' => 'Africa/Casablanca',
'Mountain' => 'America/Denver',
'Mountain Standard Time' => 'America/Denver',
'Mountain Standard Time (Mexico)' => 'America/Chihuahua',
'Myanmar Standard Time' => 'Asia/Rangoon',
'N. Central Asia Standard Time' => 'Asia/Novosibirsk',
'Namibia Standard Time' => 'Africa/Windhoek',
'Nepal Standard Time' => 'Asia/Katmandu',
'New Zealand' => 'Pacific/Auckland',
'New Zealand Standard Time' => 'Pacific/Auckland',
'Newfoundland' => 'America/St_Johns',
'Newfoundland Standard Time' => 'America/St_Johns',
'North Asia East Standard Time' => 'Asia/Ulaanbaatar',
'North Asia Standard Time' => 'Asia/Krasnoyarsk',
'Pacific' => 'America/Los_Angeles',
'Pacific SA' => 'America/Santiago',
'Pacific SA Standard Time' => 'America/Santiago',
'Pacific Standard Time' => 'America/Los_Angeles',
'Pacific Standard Time (Mexico)' => 'America/Tijuana',
'Pakistan Standard Time' => 'Asia/Karachi',
'Prague Bratislava' => 'Europe/Prague',
'Romance' => 'Europe/Paris',
'Romance Standard Time' => 'Europe/Paris',
'Russian' => 'Europe/Moscow',
'Russian Standard Time' => 'Europe/Moscow',
'SA Eastern' => 'America/Buenos_Aires',
'SA Eastern Standard Time' => 'America/Buenos_Aires',
'SA Pacific' => 'America/Bogota',
'SA Pacific Standard Time' => 'America/Bogota',
'SA Western' => 'America/Caracas',
'SA Western Standard Time' => 'America/Caracas',
'Samoa' => 'Pacific/Apia',
'Samoa Standard Time' => 'Pacific/Apia',
'Saudi Arabia' => 'Asia/Riyadh',
'Saudi Arabia Standard Time' => 'Asia/Riyadh',
'SE Asia' => 'Asia/Bangkok',
'SE Asia Standard Time' => 'Asia/Bangkok',
'Singapore' => 'Asia/Singapore',
'Singapore Standard Time' => 'Asia/Singapore',
'South Africa' => 'Africa/Harare',
'South Africa Standard Time' => 'Africa/Harare',
'Sri Lanka' => 'Asia/Colombo',
'Sri Lanka Standard Time' => 'Asia/Colombo',
'Sydney Standard Time' => 'Australia/Sydney',
'Taipei' => 'Asia/Taipei',
'Taipei Standard Time' => 'Asia/Taipei',
'Tasmania' => 'Australia/Hobart',
'Tasmania Standard Time' => 'Australia/Hobart',
'Tokyo' => 'Asia/Tokyo',
'Tokyo Standard Time' => 'Asia/Tokyo',
'Tonga Standard Time' => 'Pacific/Tongatapu',
'US Eastern' => 'America/Indianapolis',
'US Eastern Standard Time' => 'America/Indianapolis',
'US Mountain' => 'America/Phoenix',
'US Mountain Standard Time' => 'America/Phoenix',
'Venezuela Standard Time' => 'America/Caracas',
'Vladivostok' => 'Asia/Vladivostok',
'Vladivostok Standard Time' => 'Asia/Vladivostok',
'W. Australia' => 'Australia/Perth',
'W. Australia Standard Time' => 'Australia/Perth',
'W. Central Africa Standard Time' => 'Africa/Luanda',
'W. Europe' => 'Europe/Berlin',
'W. Europe Standard Time' => 'Europe/Berlin',
'Warsaw' => 'Europe/Warsaw',
'West Asia' => 'Asia/Karachi',
'West Asia Standard Time' => 'Asia/Karachi',
'West Pacific' => 'Pacific/Guam',
'West Pacific Standard Time' => 'Pacific/Guam',
'Western Brazilian Standard Time' => 'America/Rio_Branco',
'Yakutsk' => 'Asia/Yakutsk',
'Yakutsk Standard Time' => 'Asia/Yakutsk',
);

sub FromRegistry
{
my $class = shift;

my $win_name = $class->_FindWindowsTZName();

# On Windows 2008 Server, there is additional junk after a
# null character.
$win_name =~ s/\0.*$//
if defined $win_name;

return unless defined $win_name;

my $olson = $WinToOlson{$win_name};

return unless $olson;

return unless $class->_IsValidName($olson);

local $@;
return eval { DateTime::TimeZone->new( name => $olson ) };
}
}

sub _FindWindowsTZName
{
my $class = shift;

my $LMachine = $Registry->Open( 'LMachine/', { Access => KEY_READ } );

my $TimeZoneInfo =
$LMachine->{'SYSTEM/CurrentControlSet/Control/TimeZoneInformation/'};

# Windows Vista, Windows 2008 Server
if ( defined $TimeZoneInfo->{'/TimeZoneKeyName'} &&
$TimeZoneInfo->{'/TimeZoneKeyName'} ne '' )
{
return $TimeZoneInfo->{'/TimeZoneKeyName'};
}
else
{
my $AllTimeZones =
$LMachine->{'SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time Zones/'}
# Windows NT, Windows 2000, Windows XP, Windows 2003 Server
? $LMachine->{'SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time Zones/'}
# Windows 95, Windows 98, Windows Millenium Edition
: $LMachine->{'SOFTWARE/Microsoft/Windows/CurrentVersion/Time Zones/'};

foreach my $zone ( $AllTimeZones->SubKeyNames() )
{
if ( $AllTimeZones->{ $zone . '/Std' } eq $TimeZoneInfo->{'/StandardName'} )
{
return $zone;
}
}
}

return;
}


1;

__END__

=head1 NAME

DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows

=head1 SYNOPSIS

my $tz = DateTime::TimeZone->new( name => 'local' );

my $tz = DateTime::TimeZone::Local->TimeZone();

=head1 DESCRIPTION

This module provides methods for determining the local time zone on a
Windows platform.

=head1 HOW THE TIME ZONE IS DETERMINED

This class tries the following methods of determining the local time
zone:

=over 4

=item * $ENV{TZ}

It checks C<<ENV>> for a valid time zone name.

=item * Windows Registry

When using the registry, we look for the Windows time zone and use a
mapping to translate this to an Olson time zone name.

=over 8

=item * Windows Vista and 2008

We look in "SYSTEM/CurrentControlSet/Control/TimeZoneInformation/" for
a node named "/TimeZoneKeyName". If this exists, we use this key to
look up the Olson time zone name in our mapping.

=item * Windows NT, Windows 2000, Windows XP, Windows 2003 Server

We look in "SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time Zones/"
and loop through all of its sub keys.

For each sub key, we compare the value of the key with "/Std" appended
to the end to the value of
"SYSTEM/CurrentControlSet/Control/TimeZoneInformation/StandardName". This
gives us the I<English> name of the Windows time zone, which we use to
look up the Olson time zone name.

=item * Windows 95, Windows 98, Windows Millenium Edition

The algorithm is the same as for NT, but we loop through the sub keys
of "SOFTWARE/Microsoft/Windows/CurrentVersion/Time Zones/"

=back

=back

=head1 AUTHOR

Dave Rolsky, <autarch>

=head1 COPYRIGHT & LICENSE

Copyright (c) 2003-2008 David Rolsky. All rights reserved. This
program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included
with this module.

=cut
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Thu Jul 23, 2009 3:22 pm    Post subject: Reply with quote

go to python25\lib\site-packages\pytz
in file __init__.py

at the end of the script in the list all_timezones = _ [...........], add the line with the name of the timezone you want,
for me 'Paris, Madrid',
copy pytz\zoneinfo\Europe\Paris in pytz\zoneinfo\Paris, Madrid
(you can do the same thing for all timezones in SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time Zones/ and do the correspondence with timezone in pytz\zoneinfo\X , all the time put the new file with the new name given in windows registry in pytz\zoneinfo)


But the problem is that in scripts setup.py for server and cllient downloaded with bazaar, files in pytz\zoneinfo\* are not copy in library.zip. you must add them manually before to build server or client with the command makefile. Perhaps change the script to add all the file in zoneinfo with fonction data_files.
Second problem, the name given in windows registry in SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time Zones/ are not universal, I've the country names in french.
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1149
Location: Lotharingie

PostPosted: Fri Jul 24, 2009 11:23 am    Post subject: Reply with quote

Hi,
Thanks to the openerp team to change scripts setup.py for server and client for branch 5.0 which add folder pytz\zoneinfo\*.
but again the error UnknowTimeZone.
Solved if I add the line in pytz\__init__.py all_timezones and the correspondant rename file in timezoneinfo, for the timezone given after UnknowTimeZone, which is this of the windows registry.
Perhaps, try to choose another way, and use the module made for windows for the timezone : python25\Lib\site-packages\win32\Lib\win32timezone.py.
Another reason is the problem of summer/winter hour like in France, which is not understand by pytz (somebody can confirm?).
Thanks for works past and futur.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open Object Forum Index -> General discussion All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum