Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
proposal to decouple colander from translationstring
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alexey Luchko  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 12:34 pm
From: Alexey Luchko <l...@ank-sia.com>
Date: Wed, 27 Jun 2012 09:34:54 -0700 (PDT)
Local: Wed, Jun 27 2012 12:34 pm
Subject: proposal to decouple colander from translationstring
Hi!

I've found colander translates error messages of exceptions :)  It is
cool and rather surprising, but is not always required.

I'd like to use colander, but translationstring adds one extra
dependency, that is useless for me.  Please, could you remove colander
dependency on translationstring in future releases?

translationstring import could be rewritten like """
try:
    import translationstring
except ImportError:
    _ = lamba x: x
else:
    _ = translationstring.TranslationStringFactory('colander')
""",
isn't it?

--
Regards,
Alex.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris McDonough  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 12:39 pm
From: Chris McDonough <chr...@plope.com>
Date: Wed, 27 Jun 2012 12:39:42 -0400
Local: Wed, Jun 27 2012 12:39 pm
Subject: Re: proposal to decouple colander from translationstring
On 06/27/2012 12:34 PM, Alexey Luchko wrote:

> Hi!

> I've found colander translates error messages of exceptions :)  It is
> cool and rather surprising, but is not always required.

> I'd like to use colander, but translationstring adds one extra
> dependency, that is useless for me.  Please, could you remove colander
> dependency on translationstring in future releases?

No, sorry.  I'd just rather not think about the implications of doing
this for the non-universal benefit of one less dependency.

- C


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Luchko  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 2:01 pm
From: Alexey Luchko <l...@ank-sia.com>
Date: Wed, 27 Jun 2012 21:01:02 +0300
Local: Wed, Jun 27 2012 2:01 pm
Subject: Re: proposal to decouple colander from translationstring
On 27.06.2012 19:39, Chris McDonough wrote:

> On 06/27/2012 12:34 PM, Alexey Luchko wrote:
>> I've found colander translates error messages of exceptions :)  It is
>> cool and rather surprising, but is not always required.

>> I'd like to use colander, but translationstring adds one extra
>> dependency, that is useless for me.  Please, could you remove colander
>> dependency on translationstring in future releases?

> No, sorry.  I'd just rather not think about the implications of doing this
> for the non-universal benefit of one less dependency.

Sorry, I haven't meant to remove use of translationstring from the
colander.  Just adding conditional import instead of strict requirement.  A
change like the following one does not seem intrusive.

>> translationstring import could be rewritten like """
>> try:
>>      import translationstring
>> except ImportError:
>>      _ = lamba x: x
>> else:
>>      _ = translationstring.TranslationStringFactory('colander')
>> """,
>> isn't it?

Colander is good enough to be used alone, without plone.  However, it has
non-universal dependency on translationstring.

--
Regards,
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Holth  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 2:04 pm
From: Daniel Holth <dho...@gmail.com>
Date: Wed, 27 Jun 2012 14:04:40 -0400
Local: Wed, Jun 27 2012 2:04 pm
Subject: Re: proposal to decouple colander from translationstring
translationstring installs these files, and it has no dependencies on
Plone or any other package outside the standand library.

cat translationstring-1.1-py2.7.egg-info/installed-files.txt
../translationstring/__init__.py
../translationstring/compat.py
../translationstring/tests/__init__.py
../translationstring/tests/test__init__.py
../translationstring/tests/test_integration.py
../translationstring/tests/translations.py
../translationstring/tests/fixtures/locales/de/LC_MESSAGES/messages.mo
../translationstring/tests/fixtures/locales/de/LC_MESSAGES/messages.po
../translationstring/__init__.pyc
../translationstring/compat.pyc
../translationstring/tests/__init__.pyc
../translationstring/tests/test__init__.pyc
../translationstring/tests/test_integration.pyc
../translationstring/tests/translations.pyc
./
SOURCES.txt
dependency_links.txt
PKG-INFO
top_level.txt
not-zip-safe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Luchko  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 2:15 pm
From: Alexey Luchko <l...@ank-sia.com>
Date: Wed, 27 Jun 2012 21:15:27 +0300
Local: Wed, Jun 27 2012 2:15 pm
Subject: Re: proposal to decouple colander from translationstring
On 27.06.2012 21:01, Alexey Luchko wrote:

>>> translationstring import could be rewritten like """
>>> try:
>>>      import translationstring
>>> except ImportError:
>>>      _ = lamba x: x
>>> else:
>>>      _ = translationstring.TranslationStringFactory('colander')
>>> """,
>>> isn't it?

Sorry, (lambda x: x) won't work.  It could be (lambda *a, **k: (a, k)) but
it is not good.

--
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris McDonough  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 3:21 pm
From: Chris McDonough <chr...@plope.com>
Date: Wed, 27 Jun 2012 15:21:39 -0400
Local: Wed, Jun 27 2012 3:21 pm
Subject: Re: proposal to decouple colander from translationstring
On 06/27/2012 02:01 PM, Alexey Luchko wrote:

I understood the question and the answer is still "sorry, no".

- C


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »