Needs review
Project:
Index
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2010 at 09:52 UTC
Updated:
23 Jul 2013 at 23:47 UTC
Jump to comment: Most recent file
Hi Xano,
Just FYI, I've just installed the dev version and I obtained error messages showed in the image in attachment.
Elthough the errors, all seem works fine.
Thank you very much for your work
MXT
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | import_predefined_permission_00.patch | 1.31 KB | xano |
| Index-Installation_Error.jpg | 263.82 KB | mxt |
Comments
Comment #1
xanoIndex will automatically try to import predefined indexes, but for that it needs permission to read files from its own directory. Index will still work if has no permission, but you won't be able to use the predefined indexes until you grant read rights and import the indexes manually again or reinstall the module.
Comment #2
xanoComment #3
seutje commentedwhy don't u just change the format to just an array or object or w/e?
that was u can just include it. Like all other exportables
Comment #4
xanoThat's possible, but that would require code to create a representation of the object in code. The only (real) advantage is that exported indexes can be edited very easily, but it requires a lot more code to do the actual export.
Not sure what to do here.
Comment #5
seutje commentedthe editing is actually rather minor, I haven't manually edited an exportable to date
other (real) advantages include conformity with the exportables philosophy.
ability to turn created indexes into sane code that can create overridable defaults (à la default views).
ability to include or simply add to a custom module (hook_default_indexes?).
I haven't looked at your current data structure, but I assume that structure could be retained, the extra amount of code to turn an object/array into the declaration of an object/array should be rather minimal
Comment #6
xanoCurrently index objects are serialised and offered as a downloadable *.txt file. This allows for very simple import and export code.
I'm not sure what overridable defaults and custom modules have to do with importing and exporting indexes. Could you elaborate on that?
Comment #7
seutje commentedwell if a module want to leverage this module for creating an overview page of the structure of it's entities, it could simply provide a default index for it, so the user isn't forced to create it himself, or even import it, it'll just come with turning on the module
if the user isn't entirely happy with that default index, he can go in and edit it, retaining the ability to go back to the default provided by the module
or if even another module extends that module, it could also extend it's default index
Comment #8
xanoThat's what currently happens. Upon installing the module predefined indexes are imported and they can be edited and deleted and imported again like any other index.
Comment #9
xano