summaryrefslogtreecommitdiff
path: root/addons/document/nodes.py
AgeCommit message (Collapse)Author
2012-12-17document partial refactoring and cleanupsAntony Lesuisse
bzr revid: al@openerp.com-20121217011958-70esu8d6q54fu0zd
2012-12-16remove more cruft, really ugly storage engine codeAntony Lesuisse
bzr revid: al@openerp.com-20121216225000-44oitkilkkx8u29u
2012-11-01[FIX]document : Display webdav folder names in user s language instead of ↵Nehal Panchal
only English bzr revid: mma@tinyerp.com-20121101113434-00waekqwlteufser
2012-10-02[MERGE] trunkAntonin Bourguignon
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
2012-08-06[IMP] rephrase some error and warning messages in document, edi, ↵Antonin Bourguignon
google_base_account, mrp and mrp_repair remove exclamation marks at the end of messages remove unjustified capital letters bzr revid: abo@openerp.com-20120806170841-cx9vuend1vglmsqk
2012-07-25[MERGE] Merged with main branchpso (OpenERP)
bzr revid: pso@tinyerp.com-20120725125332-7qe6b3l0fjryast2
2012-07-25[IMP] Improved warning messages for document moduleSaurang Suthar(OpenERP)
bzr revid: pso@tinyerp.com-20120725103334-rx24b2aojluvxuap
2012-07-20[IMP]all: improve some tool-tipMayur Maheshwari (OpenERP)
bzr revid: mma@tinyerp.com-20120720092653-197y2amboq3hv9e5
2012-07-12[IMP]Document : Warning Messages are changedHardik
bzr revid: hsa@tinyerp.com-20120712101747-h5uhion81908cczy
2012-06-22[IMP] Add logging at the top of python filesForam Katharotiya (OpenERP)
bzr revid: fka@tinyerp.com-20120622072545-uuok6zj2jm2koxw4
2012-06-22[IMP] Add logging at the top of python filesForam Katharotiya (OpenERP)
bzr revid: fka@tinyerp.com-20120622064839-llitm8szgikxznwr
2012-03-05[FIX] unmutable default in the remaining modulesNumerigraphe - Lionel Sausin
[REF] coding style consistency lp bug: https://launchpad.net/bugs/525808 fixed bzr revid: ls@numerigraphe.fr-20120305184003-er00xtj9vtcw7gna
2011-11-22[IMP] Added missing vim mode linesNumerigraphe - Lionel Sausin
lp bug: https://launchpad.net/bugs/524279 fixed bzr revid: ls@numerigraphe.fr-20111122085138-x6u2lcl6vrpyybp9
2011-01-18document: fix matching of names with non-latin charsP. Christeas
At a previous fix, the "res_name == name" condition was added, that didn't, however, consider the case where res_name was unicode and name in utf8. Conflicts: document/nodes.py bzr revid: p_christ@hol.gr-20110118164950-avtkxy8dc4u03fu4
2010-12-09document: fix behavior of resource-hooked folders [Bug 682761]P. Christeas
Original report: > From: Dr. Ferdinand Gasauer > Date: 29-11-2010 > Subject: webdav - create folder duplicates existing attachments > to reproduce > add attachment to partner using webdav (konqueror 4.5.3) > create new folder in webdav directory > the attachment will be displayed ALSO in the newly created folder Well, this /did/ work as the code intended, but not as a user would expect. As of commit e549808c0e90, the resource directories would list _all_ attachments referencing some record, by default. This meant that a newly created folder with files [and subfolders with files..] would have all the files listed at the root folder, too eg. /Dirs/Products/Product-A/ + [ /dir2/a.txt, /dir2/b.txt ] would list a.txt, b.txt under ../Product-A/ , too. Now, the algorithm is improved to handle such a case and turn off the "find all" flag[1] so that child files will be contained in their folders[2]. [1] I'm now glad I had left that option there. [2] still, files may all appear at the root folder, too, if this has the "find-all" flag set. bzr revid: p_christ@hol.gr-20101209100121-6kaq1zcqfewwl25b
2010-12-09document: allow slashes in dynamic folders' names. [Bug 685594]P. Christeas
Since forward slashes would confuse all protocols like DAV, FTP, we have to convert them to underscores, and also match them in search. bzr revid: p_christ@hol.gr-20101209100117-6dibokskybf47610
2010-11-12[Fix] caldav,document,document_ftp,document_webdav: fix buildbot warningssbh (Open ERP)
bzr revid: sbh@tinyerp.com-20101112114946-u19wkxzh1vj33sol
2010-11-03document: fix regressions at storage and node_descriptorP. Christeas
Since the introduction of __len__, the descriptors were broken for the ftp module. Fix. bzr revid: p_christ@hol.gr-20101103112605-tu6n6529mbdc18ve
2010-11-03document: more reasonable Unix permission bitsP. Christeas
For display purposes only, but helps us understand group-write logic. bzr revid: p_christ@hol.gr-20101103112604-vi0wy1duifni2clv
2010-11-03document: fixes for lint checksP. Christeas
bzr revid: p_christ@hol.gr-20101103112604-nh7xqcx5e17h3wjo
2010-11-03document: a class of static content node_descriptor, APIP. Christeas
bzr revid: p_christ@hol.gr-20101103112535-e24cqzamf1w42219
2010-11-03document: enhance API for iter() on node_descriptorsP. Christeas
Starting from WebDAV, the node_descriptors will need to act as stream objects, iterable. This way, we hope to minimize copies of the huge chunks of data each descriptor may contain (still, pywebdav will use a single large buffer). bzr revid: p_christ@hol.gr-20101103112534-go57aeaw946utfc5
2010-10-27document: base the dir permissions on ir.rule, not on sql call.P. Christeas
bzr revid: p_christ@hol.gr-20101027102428-6n2huvvv2o1tiyh6
2010-10-27document: richer eval() context for res_dirs.P. Christeas
We need to provide 'ctx' to the eval(), so that "uid" is defined in the expression. Covers the case of user directories. bzr revid: p_christ@hol.gr-20101027102324-ujy2293kpdzouna2
2010-10-27document: minor improvement at nodes.P. Christeas
bzr revid: p_christ@hol.gr-20101027102323-dmy92wbks216awe6
2010-10-27Document: by default N/I functions raise IO error.P. Christeas
Attempting to create a file or folder at nodes that don't support it, should be reported as a permission error. bzr revid: p_christ@hol.gr-20101027102323-3l15biqitaryqelb
2010-10-27document: Hide resource attachments/folders from static dirs.P. Christeas
If some attachment or folder references a res_model/res_id, it should NOT be visible in the root directory (where it's parent_id points to). This solves functional problems for the root folder, as well as the privacy of those attachments. bzr revid: p_christ@hol.gr-20101027102323-x4h20skrfjger9z7
2010-10-14Document: set the uid as a part of the node_context context.P. Christeas
This means that a 'uid' variable will be available to all dynamic context or domain expressions calculated on nodes. bzr revid: p_christ@hol.gr-20101014114206-3mpsxcsei1mlafqb
2010-10-12Document, calendar: Patch code from trunk-xrg branchP. Christeas
several fixes that hadn't been backported or applied correctly. bzr revid: p_christ@hol.gr-20101012112030-snnb4fjkya4ndqkm
2010-10-12Doc nodes: Docstring and a node_context.get() convenience fn.P. Christeas
bzr revid: p_christ@hol.gr-20101012104100-2y269ne3v7s03xnh
2010-10-12Document: conformant ETag, avoid special chars.P. Christeas
bzr revid: p_christ@hol.gr-20101012104042-75xq12yk2wrj66ol
2010-10-12Doc: allow override of dynamic foleders' classP. Christeas
bzr revid: p_christ@hol.gr-20101012104019-ci6z0vb9fce7tfiw
2010-10-12Document: cleanup nodes.py, let node_res_dir be overriden.P. Christeas
bzr revid: p_christ@hol.gr-20101012103945-1ziw8331h4wpvp6t
2010-10-12Document: make node classes pluggable (part 1)P. Christeas
Refactor and put hooks in document/nodes so that addons can override the classes and enhance the node behaviour, per database. bzr revid: p_christ@hol.gr-20101012103856-j115po98jqff6j02
2010-08-27Document: fixes from the old branchP. Christeas
A context={} arg, get_file_node() improvement. Conflicts: document/nodes.py bzr revid: p_christ@hol.gr-20100827073858-x364kctd048dzmva
2010-08-27Document: fix trivial errors.P. Christeas
Seems that some patches have been mis-applied and some bugs re-appeared. Conflicts: document/nodes.py bzr revid: p_christ@hol.gr-20100827073809-vjhkiwagurpnn3id
2010-08-10Document: cleanup code for lint checkingP. Christeas
After pyflakes output, cleanup some unused imports, old code, fix names for undefined vars. bzr revid: p_christ@hol.gr-20100810122957-v01nqfq9omzdcs6e
2010-08-01Doc, webdav: new API for the DAV:resourcetype property.P. Christeas
This property is used in DAV folders, CalDAV, GroupDAV and CardDAV, with different extensions at each one. So, it needs an extensible API for the value it may return. Typical response in a calendar dir: <D:resourcetype> <D:collection> <ns0:vevent-collection xmlns:ns0="http://groupdav.org"/> <ns1:calendar xmlns:ns1="urn:ietf:params:xml:ns:caldav" /> </D:resourcetype> The last two elements have to be added by subclassing the node in the caldav module. Conflicts: document_webdav/dav_fs.py bzr revid: p_christ@hol.gr-20100801083722-nh4ty58fy0hobrgk
2010-07-29Document API: fix DAV handlers that contain "-"P. Christeas
Many DAV properties are like "calendar-data", which has to be translated to _prefix_"calendar_data" for a pythonic function. bzr revid: p_christ@hol.gr-20100729133938-hqshcsqtdrm6n2yc
2010-07-29Doc API, caldav: move the get_wtag code into document module.P. Christeas
It is the same case, that we want node.write_date to be used in the wtag all over. bzr revid: p_christ@hol.gr-20100729133937-4sgseg4keexeamd4
2010-07-29Document: shorten debug message.P. Christeas
It /will/ appear all the time in multi-location requests. bzr revid: p_christ@hol.gr-20100729133937-e2tiez9z40iwtiby
2010-07-29Document, DAV: fix propfind/propname codeP. Christeas
Several small fixes for the DAV responses, so that we are more conforming to the protocol. Also fix multiple namespaces, getctag and (as always) whitespace bzr revid: p_christ@hol.gr-20100729133937-z6ctpn92w6mz7r9k
2010-07-29Document API: more code for DAV properties.P. Christeas
Support those properties in the node_class itself, not need for specific implementations at each node subclass. bzr revid: p_christ@hol.gr-20100729133936-ab1jglsr1rrp5lww
2010-07-14Document, FTP: handle case of move into existing name.P. Christeas
Unlike unix 'mv', we do not allow move to point to an existing 'new_name'. bzr revid: p_christ@hol.gr-20100714125232-fmm9sm1nc30nz92k
2010-07-13Document: fix realstore with open/close, rename.P. Christeas
Put the path computation of realstore in a helper function, and use that in all places where a file is opened/created/moved. bzr revid: p_christ@hol.gr-20100713205359-jn0bo6fcw9lwdyge
2010-07-13Document API: node_content.open_data(), for FTPP. Christeas
A crude way to get the data of a content node, using StringIO. bzr revid: p_christ@hol.gr-20100713103053-hklth9rugddm6ajl
2010-07-13Document: fix the context logic of content nodesP. Christeas
Content nodes should have meaningful context and perhaps an active id 'act_id', which will be used in the report or other generation fn(). The dctx mechanism of nodes was built for that, use it. bzr revid: p_christ@hol.gr-20100713103030-irueg85zizlp42ju
2010-07-13Document directory: "find_all" field for resource dirs.P. Christeas
A (mis-)feature of the previous code was that in resource directories, it would only list attachments that would have those dirs as parents. This means that we couldn't have another categorisation, that would yield some of the same attachments. bzr revid: p_christ@hol.gr-20100713102958-nk40nckc41uxyzri
2010-07-13Document nodes: import the errno, as in 9e6e98fbf132f1P. Christeas
bzr revid: p_christ@hol.gr-20100713102800-kfdmkfnvj0uxduo0
2010-07-13Revert "Document API: meaningful error, when asking for directory data content."P. Christeas
This reverts commit 9e6e98fbf132f1c7ef795dee9d0eb3193332a5ee. bzr revid: p_christ@hol.gr-20100713102744-rnu3vq3a2wjqmbyf