[contributions(DRUPAL-6--1):fgiasson] /modules/construct/modules/structNetworks/css style.css /modules/construct/modules/structNetworks/imgs chart_organisation.png delete.png /modules/construct/modules/structNetworks structNetworks.info structNetworks.module /modules/construct conStruct.module /modules/construct/modules/structImport structImport.module
User: fgiasson Branch: DRUPAL-6--1 Date: Thu, 02 Dec 2010 23:44:58 +0000 Added files: /modules/construct/modules/structNetworks/css style.css /modules/construct/modules/structNetworks/imgs chart_organisation.png delete.png /modules/construct/modules/structNetworks structNetworks.info structNetworks.module Modified files: /modules/construct conStruct.module /modules/construct/modules/structImport structImport.module Log message: structNetwork will help you managing the structWSF networks you have registered on your conStruct node. This module will help you to: (1) Register new structWSF networks (2) Deleting previously registered networks. Some behaviors changed in other modules: (1) Now structImport will list all the registered network (even if two URLs are registered for the same server). If no server are registered, localhost will be the fallback if a structWSF node exists on the same server as the conStruct node. If not, then an error will be returned to the user. (2) conStruct.module was deleting a WSF registry entry if no datasets was accessible for that WSF on that conStruct node. conStruct.module is not going this anymore since the deletation of WSF networks is now done using structNetwork. (3) When a new dataset is created, a new validation has been added: it checks if the domain of the structWSF instance is registered into the node. Things you have to do for this upgrade: (1) add structNetworks in your modules (2) make sure you have the last version of conStruct.module (3) make sure you have the last version of structImport.module Note: I would really like to be able to list all registered into the Dataset content type. In fact, it can easily be done by upgrading the field_wsf into a "Selection List Widget", and for which that list gets populated with the following PHP code: ---------- $result = db_query(db_rewrite_sql('SELECT value from {variable} WHERE name = "WSF-Registry"')); $items; while ($item = db_fetch_object($result)) { $val = unserialize($item->value); foreach($val as $key => $url) { $items[$key] = $url; } } return $items; ---------- The problem with that is that I have no idea how to create a $form_state that would work to programmatically create a node using drupal_execute. This problem happens in structImport.module at line 435. I have no idea how to properly construct that $form_state, and everything I tried was returning validation error. I am wondering if this is possible with a CCK Selection List Widget that gets populated by a custom PHP script... Links: http://cvs.drupal.org/diff.php?path=contributions/modules/construct/modules/... http://cvs.drupal.org/diff.php?path=contributions/modules/construct/modules/... http://cvs.drupal.org/diff.php?path=contributions/modules/construct/modules/... http://cvs.drupal.org/diff.php?path=contributions/modules/construct/modules/... http://cvs.drupal.org/diff.php?path=contributions/modules/construct/modules/... http://cvs.drupal.org/diff.php?path=contributions/modules/construct/conStruc... http://cvs.drupal.org/diff.php?path=contributions/modules/construct/modules/...
participants (1)
-
drupal-cvs@drupal.org