Changeset 1522 in main for trunk


Ignore:
Timestamp:
07/19/12 14:40:28 (9 years ago)
Author:
zali
Message:

typo : replace an user by a user

Location:
trunk/openPLM/plmapp
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/controllers/document.py

    r1511 r1522  
    340340    def get_suggested_parts(self): 
    341341        """ 
    342         Returns a QuerySet of parts an user may want to attach to 
     342        Returns a QuerySet of parts a user may want to attach to 
    343343        a future revision. 
    344344        """ 
  • trunk/openPLM/plmapp/models.py

    r1480 r1522  
    167167 
    168168def add_profile(sender, instance, created, **kwargs): 
    169     """ function called when an user is created to add his profile """ 
     169    """ function called when a user is created to add his profile """ 
    170170    if sender == User and created: 
    171171        profile = UserProfile(user=instance) 
     
    643643    def get_current_sign_level(self): 
    644644        """ 
    645         Returns the current sign level that an user must have to promote this 
     645        Returns the current sign level that a user must have to promote this 
    646646        object. 
    647647        """ 
     
    653653    def get_previous_sign_level(self): 
    654654        """ 
    655         Returns the current sign level that an user must have to demote this 
     655        Returns the current sign level that a user must have to demote this 
    656656        object. 
    657657        """ 
  • trunk/openPLM/plmapp/navigate.py

    r1017 r1522  
    132132        self.object = obj 
    133133        self.results = [r.id for r in results] 
    134         # a PLMObject and an user may have the same id, so we add a variable 
     134        # a PLMObject and a user may have the same id, so we add a variable 
    135135        # which tells if results contains users 
    136136        self.users_result = self.groups_result = False 
  • trunk/openPLM/plmapp/tests/controllers/plmobject.py

    r1383 r1522  
    155155    def test_revise_same_group(self): 
    156156        """ 
    157         Test that an user can revise an object if it belongs to its group. 
     157        Test that a user can revise an object if it belongs to its group. 
    158158        """ 
    159159        controller = self.create("Part1") 
     
    172172    def test_revise_error_other_group(self): 
    173173        """ 
    174         Tests that an user who does not belong to the group cannot revise 
     174        Tests that a user who does not belong to the group cannot revise 
    175175        the object. 
    176176        """ 
     
    432432    def test_is_readable_group_ok(self): 
    433433        """ 
    434         Tests that an user who belongs to the object's group can see the 
     434        Tests that a user who belongs to the object's group can see the 
    435435        object. 
    436436        """ 
     
    443443    def test_is_readable_group_invalid(self): 
    444444        """ 
    445         Tests that an user who does not belong to the object's group can not 
     445        Tests that a user who does not belong to the object's group can not 
    446446        see the object. 
    447447        """ 
  • trunk/openPLM/plmapp/tests/views.py

    r1422 r1522  
    22392239    def test_user_add_get(self): 
    22402240        """ 
    2241         Tests the page to add an user to the group, get version. 
     2241        Tests the page to add a user to the group, get version. 
    22422242        """ 
    22432243        response = self.get(self.group_url + "users/add/", page="users", 
     
    22472247    def test_user_add_post(self): 
    22482248        """ 
    2249         Tests the page to add an user to the group, post version. 
     2249        Tests the page to add a user to the group, post version. 
    22502250        """ 
    22512251        mail.outbox = [] 
     
    27752775class MechantUserViewTest(TestCase): 
    27762776    """ 
    2777     Tests when an user try an unauthorized action 
     2777    Tests when a user try an unauthorized action 
    27782778    """ 
    27792779 
  • trunk/openPLM/plmapp/views/main.py

    r1509 r1522  
    239239 
    240240    Permanently redirects to the attribute page of the given object if it 
    241     is a part, an user or a group and to the files page if it is a document. 
     241    is a part, a user or a group and to the files page if it is a document. 
    242242 
    243243    :url: :samp:`/object/{obj_type}/{obj_ref}/{obj_revi}/` 
     
    522522                        if part not in parts:  
    523523                            # invalid data 
    524                             # an user should not be able to go here if he  
     524                            # a user should not be able to go here if he  
    525525                            # does not write by hand its post request 
    526526                            # so we do not need to generate an error message 
     
    14531453    
    14541454    ``replace_manager_form`` 
    1455         a form to select the new manager (an user) 
     1455        a form to select the new manager (a user) 
    14561456 
    14571457    ``link_creation`` 
     
    15151515    
    15161516    ``replace_manager_form`` 
    1517         a form to select the new manager (an user) 
     1517        a form to select the new manager (a user) 
    15181518 
    15191519    ``link_creation`` 
     
    16581658    # related_doc and related_part should be a plmobject id 
    16591659    # If the related_doc/part is not a doc/part, we let python raise 
    1660     # an AttributeError, since an user should not play with the URL 
     1660    # an AttributeError, since a user should not play with the URL 
    16611661    # and openPLM must be smart enough to produce valid URLs 
    16621662    attach = related = None 
     
    18981898                if part not in parts:  
    18991899                    # invalid data 
    1900                     # an user should not be able to go here if he  
     1900                    # a user should not be able to go here if he  
    19011901                    # does not write by hand its post request 
    19021902                    # so we do not need to generate an error message 
     
    19801980     
    19811981    if not hasattr(obj, "get_object_user_links"): 
    1982         return HttpResponseBadRequest("object must be an user") 
     1982        return HttpResponseBadRequest("object must be a user") 
    19831983    objs = obj.get_object_user_links().select_related("plmobject") 
    19841984    objs = objs.values("role", "plmobject__type", "plmobject__reference", 
     
    20042004        raise Http404 
    20052005    if not hasattr(obj, "get_user_delegation_links"): 
    2006         return HttpResponseBadRequest("object must be an user") 
     2006        return HttpResponseBadRequest("object must be a user") 
    20072007    if request.method == "POST": 
    20082008        selected_link_id = request.POST.get('link_id') 
     
    22752275def display_groups(request, obj_ref): 
    22762276    """ 
    2277     View of the *groups* page of an user. 
     2277    View of the *groups* page of a user. 
    22782278 
    22792279    """ 
Note: See TracChangeset for help on using the changeset viewer.