c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27488
Re: [Bug 803001] [NEW] Document path generated by Knowledge module isnot atomic
On Tuesday 28 June 2011, you wrote:
> Public bug reported:
>
> The FTP filesystem (or the webdav one) doesn't allow two (or more)
> files/directories to have the same name.
>
> By example, if you create a directory with the type "Folders per
> resource" on "Partner" model. Eg, if you have two partners with exactly
> the same name (but in a different cities) then the "List" command will
> display the same item two times.
>
> \Root
> --> Partners
> --> My partner A
> --> My partner B
> --> My partner B
> --> My partner C
> --> My partner D
>
> The problem is that you are not able to enter the second "My partner B"
> directory as the "Enter" command use the path as parameter.
>
Indeed, there is no implicit code that will make the names of filesystem nodes
unique. Instead, you have the option to choose which field will make up the
name (a single field, so far). You should choose a field with unique
constraints, if possible.
Complex names, like name+id, as you suggest, are not possible so far. The
reason is that we also need to have a way to analyze and search back the names
into the record in question. That is, if you ask to get "/Partners/My Parther
A_123", the node code (get_child() ) needs to directly find some record for "My
Partner A_123". How should it handle the underscore? What if there is really a
partner named "My Partner A_123" ?
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/803001
Title:
Document path generated by Knowledge module is not atomic
Status in OpenERP Modules (addons):
New
Bug description:
The FTP filesystem (or the webdav one) doesn't allow two (or more)
files/directories to have the same name.
By example, if you create a directory with the type "Folders per
resource" on "Partner" model. Eg, if you have two partners with
exactly the same name (but in a different cities) then the "List"
command will display the same item two times.
\Root
--> Partners
--> My partner A
--> My partner B
--> My partner B
--> My partner C
--> My partner D
The problem is that you are not able to enter the second "My partner
B" directory as the "Enter" command use the path as parameter.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/803001/+subscriptions
References