Hi Tobias,
You may have just found a bug that cropped up during the development of
version 2.  I haven't had a chance to confirm myself buy I'll let the
community know what I find out.
Cheers,
Alexei

Sent from my Windows Phone
 ------------------------------
From: Tobias Kohr <tobiask...@gmail.com>
Sent: 4/10/2014 6:36 AM
To: archesproject@googlegroups.com
Subject: [Arches] Re: Integrating modified Authority Documents

OK, the error did not have anything to do with our modified Authority
Documents.

It was caused by the entry to limit Resource Types in the global
settings.py:
LIMIT_ENTITY_TYPES_TO_LOAD = (
    # override this setting in your packages settings.py file
    'ARCHAEOLOGICAL HERITAGE (SITE).E27',
)

I guess this provokes inconsistencies when authority_files.py tries to link
data to the entities of the Resource Types that weren't loaded. Is this
correct?

Putting the same entry in the settings.py of the package to overwrite the
global setting doesn't take any effect. Is there a different syntax needed?

Cheers,
Tobias


On Thursday, April 10, 2014 1:11:16 PM UTC+2, Tobias Kohr wrote:
>
> Dear Archeslist,
>
> we have extended the ARCHAEOLOGICAL HERITAGE (SITE).E27 Resource Type and
> defined our own vocabularies in the according Authority Files.
>
> (After running install_arches_db.sh and build.sh), install_packages.sh
> loads all Authority Files. However the function
> create_link_to_entity_types() in authority_files.py aborts with the
> following error:
>
> Traceback (most recent call last):
>   File "../manage.py", line 28, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/arches-web/archesproject/virtualenv/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
>     utility.execute()
>   File
> "/arches-web/archesproject/virtualenv/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/arches-web/archesproject/virtualenv/ENV/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/arches-web/archesproject/virtualenv/ENV/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 285, in execute
>     output = self.handle(*args, **options)
>   File "/arches-web/archesproject/build/management/commands/packages.py",
> line 47, in handle
>     self.load_package(package)
>   File "/arches-web/archesproject/build/management/commands/packages.py",
> line 52, in load_package
>     install(settings.ROOT_DIR)
>   File "/arches-web/archesproject/packages/i3mainz/setup.py", line 60, in
> install
>     authority_files.load_authority_files(package_settings.ROOT_DIR)
>   File
> "/arches-web/archesproject/packages/i3mainz/install/authority_files.py",
> line 24, in load_authority_files
>     create_link_to_entity_types(cursor, packagepath)
>   File
> "/arches-web/archesproject/packages/i3mainz/install/authority_files.py",
> line 125, in create_link_to_entity_types
>     entity_type = str(cursor.fetchone()[0])
> TypeError: 'NoneType' object has no attribute '__getitem__'
>
> Any ideas what the cause for this could be?
>
> What does create_link_to_entity_types() / entity_type =
> str(cursor.fetchone()[0]) exactly do?
>
> Best,
> Tobias
>
 --
-- To post, send email to archesproject@googlegroups.com. To unsubscribe,
send email to archesproject+unsubscr...@googlegroups.com. For more
information, visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to