[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: r34198 - lyx-devel/trunk/lib/lyx2lyx
From:       Richard Heck <rgheck () bobjweil ! com>
Date:       2010-04-18 22:08:24
Message-ID: 4BCB82D8.9090407 () bobjweil ! com
[Download RAW message or body]

On 04/18/2010 05:40 PM, Pavel Sanda wrote:
> rgheck@lyx.org wrote:
>    
>> Author: rgheck
>> Date: Sun Apr 18 02:57:57 2010
>> New Revision: 34198
>> URL: http://www.lyx.org/trac/changeset/34198
>>
>> Log:
>> Something weird is happening here, as reported by Enrico.
>>
>> Modified:
>>     lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
>>
>> Modified: lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
>> ==============================================================================
>> --- lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py	Sun Apr 18 02:34:56 2010	(r34197)
>> +++ lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py	Sun Apr 18 02:57:57 2010	(r34198)
>> @@ -22,7 +22,6 @@
>>   import re, string
>>   import unicodedata
>>   import sys, os
>> -import lyx2lyx_version
>>
>>   from parser_tools import find_token, find_end_of, find_tokens, get_value, get_value_string
>>
>> @@ -1469,6 +1468,11 @@
>>
>>   def revert_lyx_version(document):
>>       " Reverts LyX Version information from Inset Info "
>> +    # let's figure out why this doesn't work in the build directory.
>> +    # import lyx2lyx_version
>> +    # version = lyx2lyx_version.version
>> +    version = "2.0.0svn"
>> +		
>>       i = 0
>>       while 1:
>>           i = find_token(document.body, '\\begin_inset Info', i)
>> @@ -1495,7 +1499,7 @@
>>               continue
>>           # We do not actually know the version of LyX used to produce the document.
>>           # But we can use our version, since we are reverting.
>> -        s = [lyx2lyx_version.version]
>> +        s = [version]
>>      
> what if we just removed those two lines? its new features after all...
>
>    
I could wrap it in a try block, at least. I'll do that.

rh

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic