Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vfolders namespace #5221

Merged
merged 17 commits into from Sep 9, 2016
Merged

Vfolders namespace #5221

merged 17 commits into from Sep 9, 2016

Conversation

phlax
Copy link
Member

@phlax phlax commented Sep 8, 2016

addresses concerns raised in #5217 (Namespacing problems with virtualfolders)

# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: only one blank line before imports.

@phlax phlax force-pushed the vfolders_namespace branch 4 times, most recently from edc79fa to f3e344f Compare September 8, 2016 14:56
def test_views_vf_translate(vfolder_views, settings):
from tp import _test_browse_view, _test_translate_view
test_type, tp, request, response, kwargs = vfolder_views
if test_type == "browse":
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not necessary

@phlax phlax force-pushed the vfolders_namespace branch 17 times, most recently from 449c003 to 86388e5 Compare September 9, 2016 15:30
@phlax phlax changed the title [WIP] Vfolders namespace Vfolders namespace Sep 9, 2016
# A clean pootle path is a pootle path without any virtual folder name on
# it. For example /af/test_vfolders/browser/chrome/ is the corresponding
# clean pootle path for /af/test_vfolders/browser/vfolder8/chrome/
vfolder, clean_pootle_path = extract_vfolder_from_path(pootle_path)
Copy link
Member

@unho unho Sep 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is dropped you can probably further simplify the surrounding code a bit more now that clean_pootle_path and pootle_path are the same.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is addressed.

@phlax phlax force-pushed the vfolders_namespace branch 3 times, most recently from 21a01cd to fea850a Compare September 9, 2016 20:38
if filename:
pootle_path = pootle_path + filename
clean_pootle_path = clean_pootle_path + filename
pootle_path = pootle_path + filename
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeated code

@phlax phlax force-pushed the vfolders_namespace branch 2 times, most recently from fa2e6cb to 02bc9b0 Compare September 9, 2016 20:52
@unho
Copy link
Member

unho commented Sep 9, 2016

lgtm

@phlax phlax merged commit e142ed1 into translate:master Sep 9, 2016
@phlax
Copy link
Member Author

phlax commented Sep 9, 2016

massive thanks for all your hard working reviewing and explaining our bugs back to us @unho !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants