Re: Plone ftp

Simone Orsi <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CANJtmqBdEWKmwmirdN9D_Mew3+skOpSTYEDWTnPkfRee7_JF=Q@mail.gmail.com>
The problem here is not folder_contents, but FTP upload for DX objects that
do not get any ID.

The only problem w/ folder_contents view is that it breaks whenever it
tries to load an object w/ no ID.

The weird thing is that those objects are cataloged but since they have no
ID the physical path (hence, getPath on brain) is broken.

In folder_contens paths are taken from catalog's paths, and on those
objects you get a bad path with a trailing slash, so that when folder
ordering tries to guess the ID from the path here

https://github.com/plone/plone.app.folder/blob/master/src/plone/app/folder/nogopip.py#L80

you get id as empty string.

In this situation wc.foldercontents gives you a good way to upload files
without using FTP but it does not allow to upload folders.



On Wed, Feb 4, 2015 at 2:46 PM, Nathan Van Gheem <[email protected]> wrote:

> huh, I had no idea folder_contents had anything to do with FTP--that will
> need to be fixed somehow?
>
> On Wed, Feb 4, 2015 at 4:43 AM, Simone Orsi <[email protected]> wrote:
>
>> Hi,
>>
>> I experienced this, see
>> http://stackoverflow.com/questions/23104734/ftp-upload-and-dexterity-folders
>>
>> If you use `wildcard.foldercontents` (like I'm doing) FTP upload could be
>> dropped (as in my case).
>>
>> HTH,
>> S.
>>
>> On Wed, Feb 4, 2015 at 11:26 AM, espen <[email protected]> wrote:
>>
>>>
>>>
>>> 4. feb. 2015 kl. 10:00 skrev Percy Barboza [via Plone] <[hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=7573229&i=0>>:
>>>
>>> Hi
>>>
>>> Getting error uploading files via ftp to  dexterity  folders
>>>
>>>
>>> what kind of files
>>>
>>>
>>>
>>> Uploading a folder via FTP works but you get a broken object that leads
>>> you to this error in folder_contents:
>>>
>>>
>>> folder_contents for that folder or for the parent
>>>
>>> (check in ZMI what is present in the folder )
>>>
>>>
>>>
>>>
>>> ValueError: No object with id "" exists.
>>>
>>>
>>> Any known issue exists.
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> Dive into the World of Parallel Programming. The Go Parallel Website,
>>> sponsored by Intel and developed in partnership with Slashdot Media, is
>>> your
>>> hub for all things parallel software development, from weekly thought
>>> leadership blogs to news, videos, case studies, tutorials and more. Take
>>> a
>>> look and join the conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Plone-Users mailing list
>>> <a
>>> href="x-msg://100/user/SendEmail.jtp?type=node&amp;node=7573226&amp;i=0"
>>> target="_top" rel="nofollow" link="external">[hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>>
>>>
>>> ------------------------------
>>>  If you reply to this email, your message will be added to the
>>> discussion below:
>>> http://plone.293351.n2.nabble.com/Plone-ftp-tp7573226.html
>>>  To start a new topic under General Questions, email [hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=7573229&i=1>
>>> To unsubscribe from Plone, click here.
>>> NAML
>>> <http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>>
>>>
>>> ------------------------------
>>> View this message in context: Re: Plone ftp
>>> <http://plone.293351.n2.nabble.com/Plone-ftp-tp7573226p7573229.html>
>>> Sent from the General Questions mailing list archive
>>> <http://plone.293351.n2.nabble.com/General-Questions-f293352.html> at
>>> Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming. The Go Parallel Website,
>>> sponsored by Intel and developed in partnership with Slashdot Media, is
>>> your
>>> hub for all things parallel software development, from weekly thought
>>> leadership blogs to news, videos, case studies, tutorials and more. Take
>>> a
>>> look and join the conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Plone-Users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Plone-Users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>>
>
>
> --
> Nathan Van Gheem
> Solutions Architect
> Wildcard Corp
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.