From hans.langouche at gmail.com Wed Jul 1 07:05:15 2009 From: hans.langouche at gmail.com (Hans Langouche) Date: Wed, 01 Jul 2009 09:05:15 +0200 Subject: [development] problem with hook_menu In-Reply-To: References: <4A49CEF9.2050407@gmail.com> Message-ID: <4A4B0AAB.7010209@gmail.com> Tnx, that did the trick indeed, I overlooked the documentation part about setting up your own wildcard loader, which worked like a charm. HnLn Steven Jones wrote: > Looks like you've mixed implementations of hook_menu from Drupal 5 and > 6. Webform module does something similar to what you want, have a look > at its code to see how it's done! > > Regards > Steven Jones > ComputerMinds ltd - Perfect Drupal Websites > > Phone : 0121 288 0434 > Mobile : 07951 270 026 > Twitter : darthsteven > http://www.computerminds.co.uk > > > > 2009/6/30 Hans Langouche : > >> Hi, >> >> I'm running into a problem with the menu system. I have a 'project' content >> type that has a couple of child links to show either some cck field of that >> node or some embedded views with related content (but I think what happens >> on those child paths is not relevant). The problem I have is that these >> child paths often show the content of the parent (node) path instead of the >> content it's supposed to show (this will go away after clearing cache, but >> comes back again). >> >> Below is how I add the paths to the system, nodeapi then also adds aliases >> for each of those links (based on the alias of the parent link). Note that >> this problem also occurs when I visit the link with the real path (e.g. >> node/x/more, so I guess the alias system is also not the cause). >> >> Originally I didn't add in the file and file path (as the hook_menu call is >> in the same module as the page callback's), I added it in to try to solve >> this cache (?) problem. >> >> Any suggestions or tips are appreciated :-) >> >> Hans >> >> if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(3)) { >> $_node = node_load(arg(1)); >> if ($_node->type == 'project') { >> $items = array(); >> $items['node/%node/more'] = array( >> 'title callback' => 'projecttabs_title', >> 'title arguments' => array(1, t('more')), >> 'page callback' => 'projecttabs_tabs_more', >> 'page arguments' => array(1), >> 'file' => 'projecttabs.module', >> 'file path' => drupal_get_path('module', 'projecttabs'), >> 'access arguments' => array('access content'), >> 'type' => MENU_CALLBACK, >> ); >> >> From hans.langouche at gmail.com Wed Jul 1 07:14:56 2009 From: hans.langouche at gmail.com (Hans Langouche) Date: Wed, 01 Jul 2009 09:14:56 +0200 Subject: [development] calendar with multilingual path Message-ID: <4A4B0CF0.3020806@gmail.com> Hi there, what would be the best way to achieve multi lingual paths for the calendar module (including intact language switcher) ? I tried viewfield, but the arguments don't seem to work correctly and also my calendar block won't point to the correct calendar path. E.g calendar/2009-06 fr/calendrier/2009-06 nl/kalender/2009-06 Tnx, Hans From pierre.rineau at makina-corpus.com Thu Jul 2 10:04:31 2009 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Thu, 02 Jul 2009 12:04:31 +0200 Subject: [development] form with confirmation (sometimes) In-Reply-To: <548EB4A7-607D-4A9F-AAE2-FF7CABA16668@mikeyp.net> References: <45a29f450906250929p381fedc7p2b1de92979b50404@mail.gmail.com> <548EB4A7-607D-4A9F-AAE2-FF7CABA16668@mikeyp.net> Message-ID: <1246529071.9345.22.camel@guinevere.makina-nantes.net> BTW, I don't like the node.module implementation of config_form on delete workflow. Even worst in comment.module, they do the same stuff accessible directly to $_POST superglobal. They should properly do this using a multistep form, I.E. by accessing variables in the $form_state and playing with the $form_state['rebuild'] option, which they are not apparently doing. Pierre. Le jeudi 25 juin 2009 ? 10:13 -0700, Michael Prasuhn a ?crit : > Look at node module, specifically node_admin_nodes() and > node_admin_nodes_validate() and node_admin_nodes_submit() which are > all found in node.admin.inc in Drupal 6. It provides this same > functionality - it only shows a confirmation form if the operation is > to delete nodes. > > -Mike > > On Jun 25, 2009, at 9:29 AM, Llu?s wrote: > > > I have a form to allow deleting some variables. If the deleted item is > > 'empty' it should be possible to delete it without any problem; but > > full items should have a 'confirmation' step before deleting them. > > > > I have read http://drupal.org/node/387674 and > > http://drupal.org/node/385640; but in my case I need to pass an array > > to the confirmation form, and I think it has to be an easier way to > > allow a "Are you sure you want to do this?". > > > > Any hint is welcome. > > > > -- > > *La vida ?s com una taronja, qu? esperes a exprimir-la? > > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > > nom?s una vegada. > > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > > __________________ > Michael Prasuhn > 503.488.5433 office > 971.244.2595 cell > 503.661.7574 home > mike at mikeyp.net > http://mikeyp.net > > > > > > From pierre.rineau at makina-corpus.com Thu Jul 2 10:09:42 2009 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Thu, 02 Jul 2009 12:09:42 +0200 Subject: [development] form with confirmation (sometimes) In-Reply-To: <45a29f450906251033v65e3a820o56cbe80fa785487f@mail.gmail.com> References: <45a29f450906250929p381fedc7p2b1de92979b50404@mail.gmail.com> <548EB4A7-607D-4A9F-AAE2-FF7CABA16668@mikeyp.net> <45a29f450906251033v65e3a820o56cbe80fa785487f@mail.gmail.com> Message-ID: <1246529382.9345.26.camel@guinevere.makina-nantes.net> The $form_state['rebuild'] forces the form API to rebuild the same form, using the same processing function, but instead of giving a empty $form_state, it gives a full filled array with values you set into. Somehow, in validate then submit, you do a $form_state['delete'] = array(), then, in you processing form function, you can catch the $form_state if not empty (and filled with your 'delete' attribute), then you can use a if statement to build a different form (in your case, a simple config_form(), with an altered '#submit' which will be the real delete operation submit callback). Hope it helps. Le jeudi 25 juin 2009 ? 19:33 +0200, Llu?s a ?crit : > I have taken a look to these funcions but I cannot see how > $form_state['rebuild'] = TRUE; > make confirmation appear. > > On Thu, Jun 25, 2009 at 7:13 PM, Michael Prasuhn wrote: > > Look at node module, specifically node_admin_nodes() and > > node_admin_nodes_validate() and node_admin_nodes_submit() which are all > > found in node.admin.inc in Drupal 6. It provides this same functionality - > > it only shows a confirmation form if the operation is to delete nodes. > > > > -Mike > > > > On Jun 25, 2009, at 9:29 AM, Llu?s wrote: > > > >> I have a form to allow deleting some variables. If the deleted item is > >> 'empty' it should be possible to delete it without any problem; but > >> full items should have a 'confirmation' step before deleting them. > >> > >> I have read http://drupal.org/node/387674 and > >> http://drupal.org/node/385640; but in my case I need to pass an array > >> to the confirmation form, and I think it has to be an easier way to > >> allow a "Are you sure you want to do this?". > >> > >> Any hint is welcome. > >> > >> -- > >> *La vida ?s com una taronja, qu? esperes a exprimir-la? > >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? > >> nom?s una vegada. > >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. > > > > __________________ > > Michael Prasuhn > > 503.488.5433 office > > 971.244.2595 cell > > 503.661.7574 home > > mike at mikeyp.net > > http://mikeyp.net > > > > > > > > > > > > > > > > > From karoly at negyesi.net Mon Jul 6 16:21:50 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Mon, 6 Jul 2009 09:21:50 -0700 Subject: [development] When writing a loop... Message-ID: <7e270cea0907060921q53e37913h8cff714b18398b5d@mail.gmail.com> ... please always consider: can this loop become impossibly long? If you are iterating over anything without set limits then the answer is likely yes. Typically, nodes, files, users, terms, comments, aggregator items, menu links are the things that some sites can easily have millions of. Roles and vocabularies are an example which are very unlikely to become unwieldy large. Thanks NK From news at unleashedmind.com Mon Jul 6 16:44:34 2009 From: news at unleashedmind.com (Daniel F. Kudwien) Date: Mon, 6 Jul 2009 18:44:34 +0200 Subject: [development] When writing a loop... In-Reply-To: <7e270cea0907060921q53e37913h8cff714b18398b5d@mail.gmail.com> Message-ID: <008001c9fe59$0ae45390$0200a8c0@structworks.com> I guess that was some promotional work to teach developers to use Batch API in core? > -----Original Message----- > From: development-bounces at drupal.org > [mailto:development-bounces at drupal.org] On Behalf Of Karoly Negyesi > Sent: Monday, July 06, 2009 6:22 PM > To: Drupal development > Subject: [development] When writing a loop... > > ... please always consider: can this loop become impossibly > long? If you are iterating over anything without set limits > then the answer is likely yes. Typically, nodes, files, > users, terms, comments, aggregator items, menu links are the > things that some sites can easily have millions of. Roles and > vocabularies are an example which are very unlikely to become > unwieldy large. > > Thanks > > NK > From karoly at negyesi.net Mon Jul 6 16:48:35 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Mon, 6 Jul 2009 09:48:35 -0700 Subject: [development] When writing a loop... In-Reply-To: <008001c9fe59$0ae45390$0200a8c0@structworks.com> References: <7e270cea0907060921q53e37913h8cff714b18398b5d@mail.gmail.com> <008001c9fe59$0ae45390$0200a8c0@structworks.com> Message-ID: <7e270cea0907060948r528fbc2at41ec096a9713ded7@mail.gmail.com> And in contrib. On Mon, Jul 6, 2009 at 9:44 AM, Daniel F. Kudwien wrote: > I guess that was some promotional work to teach developers to use Batch API > in core? From enboig at gmail.com Tue Jul 7 14:12:57 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Tue, 7 Jul 2009 16:12:57 +0200 Subject: [development] Node appear in database but not in admin/content/node Message-ID: <45a29f450907070712nfdee103h59675240f408eaf0@mail.gmail.com> Using D6 I have created a custom node type and a custom node access permissions. All was working fine but now I cannot access some nodes despite they appear in: {node} {node_revisions} {node_access} {node_customtable} I have tried using user->uid=1 but I am out of luck; I have created a multisite, one for beta testers, and one for developing, and they also share some tables with another site. The shared tables are: $db_prefix = array( 'default' => 'cc2_', //betatesters 'users' => 'meg_', 'profile_fields' => 'meg_', 'profile_values' => 'meg_', 'alt_login' => 'meg_', ); if (substr($_SERVER['SCRIPT_NAME'], 0, 5) == '/cc3/' ) { // developing $db_prefix['cache'] = 'cc3_'; $db_prefix['cache_block'] = 'cc3_'; $db_prefix['cache_filter'] = 'cc3_'; $db_prefix['cache_form'] = 'cc3_'; $db_prefix['cache_menu'] = 'cc3_'; $db_prefix['cache_page'] = 'cc3_'; $db_prefix['cache_update'] = 'cc3_'; $db_prefix['cache_views'] = 'cc3_'; // $db_prefix['sessions'] = 'cc3_'; $db_prefix['views_object_cache'] = 'cc3_'; } I have no idea of where the problem is; -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From enboig at gmail.com Tue Jul 7 14:31:12 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Tue, 7 Jul 2009 16:31:12 +0200 Subject: [development] Node appear in database but not in admin/content/node In-Reply-To: <45a29f450907070712nfdee103h59675240f408eaf0@mail.gmail.com> References: <45a29f450907070712nfdee103h59675240f408eaf0@mail.gmail.com> Message-ID: <45a29f450907070731y3cd8b88ax91f6d8705ec96843@mail.gmail.com> I forgot to add that nodes do appear in views, but when I click them I see a "page not found" On Tue, Jul 7, 2009 at 4:12 PM, Llu?s wrote: > Using D6 I have created a custom node type and a custom node access > permissions. All was working fine but now I cannot access some nodes > despite they appear in: > {node} > {node_revisions} > {node_access} > {node_customtable} > > I have tried using user->uid=1 but I am out of luck; I have created a > multisite, one for beta testers, and one for developing, and they also > share some tables with another site. The shared tables are: > > $db_prefix = array( > ?'default' ? => 'cc2_', ?//betatesters > ?'users' ? ? => 'meg_', > ?'profile_fields' => 'meg_', > ?'profile_values' => 'meg_', > ?'alt_login' => 'meg_', > ); > > if (substr($_SERVER['SCRIPT_NAME'], 0, 5) == '/cc3/' ) { ?// developing > ?$db_prefix['cache'] = 'cc3_'; > ?$db_prefix['cache_block'] = 'cc3_'; > ?$db_prefix['cache_filter'] = 'cc3_'; > ?$db_prefix['cache_form'] = 'cc3_'; > ?$db_prefix['cache_menu'] = 'cc3_'; > ?$db_prefix['cache_page'] = 'cc3_'; > ?$db_prefix['cache_update'] = 'cc3_'; > ?$db_prefix['cache_views'] = 'cc3_'; > // ?$db_prefix['sessions'] = 'cc3_'; > ?$db_prefix['views_object_cache'] = 'cc3_'; > } > > I have no idea of where the problem is; > > -- > *La vida ?s com una taronja, qu? esperes a exprimir-la? > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From preisz at gmail.com Tue Jul 7 15:04:52 2009 From: preisz at gmail.com (shawn preisz) Date: Tue, 7 Jul 2009 11:04:52 -0400 Subject: [development] Node appear in database but not in admin/content/node In-Reply-To: <45a29f450907070731y3cd8b88ax91f6d8705ec96843@mail.gmail.com> References: <45a29f450907070712nfdee103h59675240f408eaf0@mail.gmail.com> <45a29f450907070731y3cd8b88ax91f6d8705ec96843@mail.gmail.com> Message-ID: I had a similar problem when the creator of those nodes deleted their account. After recreating their account in the users table, the nodes then reappeared. On 7/7/09, Llu?s wrote: > I forgot to add that nodes do appear in views, but when I click them I > see a "page not found" > > On Tue, Jul 7, 2009 at 4:12 PM, Llu?s wrote: >> Using D6 I have created a custom node type and a custom node access >> permissions. All was working fine but now I cannot access some nodes >> despite they appear in: >> {node} >> {node_revisions} >> {node_access} >> {node_customtable} >> >> I have tried using user->uid=1 but I am out of luck; I have created a >> multisite, one for beta testers, and one for developing, and they also >> share some tables with another site. The shared tables are: >> >> $db_prefix = array( >> ?'default' ? => 'cc2_', ?//betatesters >> ?'users' ? ? => 'meg_', >> ?'profile_fields' => 'meg_', >> ?'profile_values' => 'meg_', >> ?'alt_login' => 'meg_', >> ); >> >> if (substr($_SERVER['SCRIPT_NAME'], 0, 5) == '/cc3/' ) { ?// developing >> ?$db_prefix['cache'] = 'cc3_'; >> ?$db_prefix['cache_block'] = 'cc3_'; >> ?$db_prefix['cache_filter'] = 'cc3_'; >> ?$db_prefix['cache_form'] = 'cc3_'; >> ?$db_prefix['cache_menu'] = 'cc3_'; >> ?$db_prefix['cache_page'] = 'cc3_'; >> ?$db_prefix['cache_update'] = 'cc3_'; >> ?$db_prefix['cache_views'] = 'cc3_'; >> // ?$db_prefix['sessions'] = 'cc3_'; >> ?$db_prefix['views_object_cache'] = 'cc3_'; >> } >> >> I have no idea of where the problem is; >> >> -- >> *La vida ?s com una taronja, qu? esperes a exprimir-la? >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >> nom?s una vegada. >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. >> > > > > -- > *La vida ?s com una taronja, qu? esperes a exprimir-la? > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -- Sent from my mobile device From enboig at gmail.com Tue Jul 7 15:25:56 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Tue, 7 Jul 2009 17:25:56 +0200 Subject: [development] Node appear in database but not in admin/content/node In-Reply-To: References: <45a29f450907070712nfdee103h59675240f408eaf0@mail.gmail.com> <45a29f450907070731y3cd8b88ax91f6d8705ec96843@mail.gmail.com> Message-ID: <45a29f450907070825r75a89daet5d5eb06275d48e8b@mail.gmail.com> You are right; the problems started when I shared the users table, and some {node}.uid didn't exist in {users} thanks On Tue, Jul 7, 2009 at 5:04 PM, shawn preisz wrote: > I had a similar problem when the creator of those nodes deleted their > account. After recreating their account in the users table, the nodes > then reappeared. > > On 7/7/09, Llu?s wrote: >> I forgot to add that nodes do appear in views, but when I click them I >> see a "page not found" >> >> On Tue, Jul 7, 2009 at 4:12 PM, Llu?s wrote: >>> Using D6 I have created a custom node type and a custom node access >>> permissions. All was working fine but now I cannot access some nodes >>> despite they appear in: >>> {node} >>> {node_revisions} >>> {node_access} >>> {node_customtable} >>> >>> I have tried using user->uid=1 but I am out of luck; I have created a >>> multisite, one for beta testers, and one for developing, and they also >>> share some tables with another site. The shared tables are: >>> >>> $db_prefix = array( >>> ?'default' ? => 'cc2_', ?//betatesters >>> ?'users' ? ? => 'meg_', >>> ?'profile_fields' => 'meg_', >>> ?'profile_values' => 'meg_', >>> ?'alt_login' => 'meg_', >>> ); >>> >>> if (substr($_SERVER['SCRIPT_NAME'], 0, 5) == '/cc3/' ) { ?// developing >>> ?$db_prefix['cache'] = 'cc3_'; >>> ?$db_prefix['cache_block'] = 'cc3_'; >>> ?$db_prefix['cache_filter'] = 'cc3_'; >>> ?$db_prefix['cache_form'] = 'cc3_'; >>> ?$db_prefix['cache_menu'] = 'cc3_'; >>> ?$db_prefix['cache_page'] = 'cc3_'; >>> ?$db_prefix['cache_update'] = 'cc3_'; >>> ?$db_prefix['cache_views'] = 'cc3_'; >>> // ?$db_prefix['sessions'] = 'cc3_'; >>> ?$db_prefix['views_object_cache'] = 'cc3_'; >>> } >>> >>> I have no idea of where the problem is; >>> >>> -- >>> *La vida ?s com una taronja, qu? esperes a exprimir-la? >>> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >>> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >>> nom?s una vegada. >>> *Abans d'imprimir aquest missatge, pensa en el medi ambient. >>> >> >> >> >> -- >> *La vida ?s com una taronja, qu? esperes a exprimir-la? >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >> nom?s una vegada. >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. >> > > -- > Sent from my mobile device > -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From bobbrazeau at gmail.com Tue Jul 7 17:07:28 2009 From: bobbrazeau at gmail.com (bobbrazeau at gmail.com) Date: Tue, 07 Jul 2009 17:07:28 +0000 Subject: [development] MS SQL question Message-ID: <0016367f96ee50d83b046e20a820@google.com> Hey guys, I realize this is a hot button issue and am not trying to ruffle any feathers. We are looking to switch out website from a lamp stack to a CMS and Drupal is the one I am championing. The site itself would be running on a mysql cluster. One of the issues of our environment is some data sits on a MS SQL server. Currently we have it setup to connect via odbc and everything is fine. While we wouldn't need Drupal to use MS SQL as a backend server, there is data some we'd need to grab for some of the pages. D6 doesn't support MSSQL though the abstraction layer, but would it be possible to code the modules to connect to the server on their own and use php code to process the db data? And what is the ick factor on that? NOT for MSSQL but the approach - or if there is a better way please inform me. Thanks! Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From metzlerd at metzlerd.com Tue Jul 7 17:18:32 2009 From: metzlerd at metzlerd.com (David Metzler) Date: Tue, 7 Jul 2009 10:18:32 -0700 Subject: [development] MS SQL question In-Reply-To: <0016367f96ee50d83b046e20a820@google.com> References: <0016367f96ee50d83b046e20a820@google.com> Message-ID: When pulling data from external sources, I simply don't use the drupal database abstraction layer at all. It doesn't have an ick factor for me at all. I use the approach your talking about with great success at my university. We connect to Oracle and MSSql to get external data, and as a result have built quite a nice portal using drupal as the application development framework. Good luck. Dave On Jul 7, 2009, at 10:07 AM, bobbrazeau at gmail.com wrote: > Hey guys, I realize this is a hot button issue and am not trying to > ruffle any feathers. > > We are looking to switch out website from a lamp stack to a CMS and > Drupal is the one I am championing. The site itself would be > running on a mysql cluster. One of the issues of our environment is > some data sits on a MS SQL server. Currently we have it setup to > connect via odbc and everything is fine. > > While we wouldn't need Drupal to use MS SQL as a backend server, > there is data some we'd need to grab for some of the pages. D6 > doesn't support MSSQL though the abstraction layer, but would it be > possible to code the modules to connect to the server on their own > and use php code to process the db data? And what is the ick factor > on that? NOT for MSSQL but the approach - or if there is a better > way please inform me. > > Thanks! > > Bob From jcfiala at gmail.com Tue Jul 7 17:23:58 2009 From: jcfiala at gmail.com (John Fiala) Date: Tue, 7 Jul 2009 11:23:58 -0600 Subject: [development] MS SQL question In-Reply-To: References: <0016367f96ee50d83b046e20a820@google.com> Message-ID: On Tue, Jul 7, 2009 at 11:18 AM, David Metzler wrote: > When pulling data from external sources, I simply don't use the drupal > database abstraction layer at all. It doesn't have an ick factor for me at > all. I use the approach your talking about with great success at my > university. ?We connect to Oracle and MSSql to get external data, and as a > result have built quite a nice portal using drupal as the application > development framework. > > Good luck. > > Dave Agreed - if it's not the primary database, and you're careful about intentional or unintentional sql injection, there's no problem with using other methods to connect to the MS SQL db. Have fun! -- John Fiala From mathews.kyle at gmail.com Tue Jul 7 17:25:40 2009 From: mathews.kyle at gmail.com (Kyle Mathews) Date: Tue, 7 Jul 2009 11:25:40 -0600 Subject: [development] MS SQL question In-Reply-To: References: <0016367f96ee50d83b046e20a820@google.com> Message-ID: This post by Larry Garfield provides an excellent run-down of the different ways of using remote data in Drupal: http://www.palantir.net/blog/remote-data-drupal-museums-and-web-2009 Kyle Research Assistant Entrepreneurship and Technology Center @ BYU kyle.mathews2000.com/blog On Tue, Jul 7, 2009 at 11:23 AM, John Fiala wrote: > On Tue, Jul 7, 2009 at 11:18 AM, David Metzler > wrote: > > When pulling data from external sources, I simply don't use the drupal > > database abstraction layer at all. It doesn't have an ick factor for me > at > > all. I use the approach your talking about with great success at my > > university. We connect to Oracle and MSSql to get external data, and as > a > > result have built quite a nice portal using drupal as the application > > development framework. > > > > Good luck. > > > > Dave > > Agreed - if it's not the primary database, and you're careful about > intentional or unintentional sql injection, there's no problem with > using other methods to connect to the MS SQL db. Have fun! > > -- > John Fiala > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobbrazeau at gmail.com Tue Jul 7 22:02:53 2009 From: bobbrazeau at gmail.com (bob brazeau) Date: Tue, 7 Jul 2009 15:02:53 -0700 Subject: [development] MS SQL question - Thanks! Message-ID: Good info, and I'll let the higher ups know that connecting to our other databases won't be an issue at all. Larry Garfield's page was great, I read through it and will have to go back and look over the code he linked to. Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From remorse at partners.org Fri Jul 10 20:03:25 2009 From: remorse at partners.org (Richard Morse) Date: Fri, 10 Jul 2009 16:03:25 -0400 Subject: [development] Menu router question Message-ID: Hi! I'm trying to extend the taxonomy interface so that I can attach additional information to certain terms. I'd like to do one of two things: - either make admin/content/taxonomy/edit/term be a MENU_DEFAULT_TASK, and add additional tabs such as admin/content/taxonomy/edit/term/%/info1 or - (as I can easily add a link to the form) determine how to make the menu system display the proper breadcrumb for a sub page. I'm almost there (maybe) -- that is, if I have a menu item like: $items['admin/content/taxonomy/edit/term/%/info1'] = array( 'title' => 'my title', 'access arguments' => array('permission'), 'page callback' => 'drupal_get_form', 'page arguments' => array('my_func', 5), 'type' => MENU_LOCAL_TASTK, 'tab_parent' => 'admin/content/taxonomy/edit/term/%', ); it will properly create the breadcrumb list, except that the "Edit term" link doesn't include the term id at the end, which breaks things. Is there a way to accomplish either of these? Thanks, Ricky The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. From nan_wich at bellsouth.net Fri Jul 10 20:32:07 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Fri, 10 Jul 2009 20:32:07 +0000 Subject: [development] Menu router question In-Reply-To: Message-ID: <071020092032.22222.4A57A546000D6321000056CE22216128369B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Why not just do a hook_form_alter and add a fieldset to the form, as Taxonomy Image does? Have you looked at Taxonomy Enhancer or Term Fields? -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. Richard Morse wrote > Hi! I'm trying to extend the taxonomy interface so that I can attach > additional information to certain terms. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From remorse at partners.org Fri Jul 10 20:52:27 2009 From: remorse at partners.org (Richard Morse) Date: Fri, 10 Jul 2009 16:52:27 -0400 Subject: [development] Menu router question In-Reply-To: <071020092032.22222.4A57A546000D6321000056CE22216128369B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> References: <071020092032.22222.4A57A546000D6321000056CE22216128369B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: <8FF08E09-2D26-44A9-B5D0-0DE444C7033E@partners.org> On Jul 10, 2009, at 4:32 PM, nan_wich at bellsouth.net wrote: > Why not just do a hook_form_alter and add a fieldset to the form, as > Taxonomy Image does? Have you looked at Taxonomy Enhancer or Term > Fields? I thought of this, and it's what I probably will do, but now I'm interested to see if the menu system will do either of the other two things... :-) Ricky The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. From fredthejonester at gmail.com Mon Jul 13 08:53:15 2009 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 13 Jul 2009 11:53:15 +0300 Subject: [development] Convince Client to Release Code Message-ID: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> We have one client for whom we wrote a set of custom modules. I asked the client if we could put the modules on d.o and he balked. I tried to explain that he'll get good testing and also bug fixes and new features maybe, if others post patches etc. He feels that he (his organization that is) paid for the work and why should someone else now benefit? He also has this idea that other organizations like his will want a site like his and he has plans to provide a hosted service for them (while this idea may seem far-fetched, I do think he has some connections which might make this idea feasible). So he thinks if we release the code, then they will just grab the code and use it. I tried to explain that your average layman has no idea what Drupal is, no way to figure out your site is running Drupal, and if even he got that far, he has no way of building his site without a professional to put the pieces together (after they figure what those pieces are of course), and then they he would do just as well to use our hosted plan! But he hasn't accepted this. Are there any good arguments we can use to persuade him? I feel he has nothing to lose in releasing the code, but we have to convince him of that. Thanks. From nir at winpdb.org Mon Jul 13 09:40:11 2009 From: nir at winpdb.org (Nir Aides) Date: Mon, 13 Jul 2009 12:40:11 +0300 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> This is an interesting legal problem. According to the GPL, your work is derived from software covered by the GPL and therefore the client can not give you a copy of the source under any terms other than the GPL even if they own the copyright to the part of the work created by you. Now, you have a copy of the source (since you created it) by permission (which may be irrelevant) of the client. Therefore the copy you have is governed by the GPL and it is illegal of the client to prevent you from distributing it under the GPL. Some people might look at this problem and trivially dismiss it because of such and such, but I wonder if it can be trivially dismissed. The interesting thing is that there are a lot of transactions and business based on similar relationships between developers and clients. The consequences of this problem can therefore be huge. This is not the only problem with the GPL. There are other fundamental problems such as the problem of determining and maintaining ownership of copyright of Free Software projects. I would love to hear the opinion of a legal expert on this. Nir On Mon, Jul 13, 2009 at 11:53 AM, Fred Jones wrote: > We have one client for whom we wrote a set of custom modules. I asked > the client if we could put the modules on d.o and he balked. I tried > to explain that he'll get good testing and also bug fixes and new > features maybe, if others post patches etc. > > He feels that he (his organization that is) paid for the work and why > should someone else now benefit? He also has this idea that other > organizations like his will want a site like his and he has plans to > provide a hosted service for them (while this idea may seem > far-fetched, I do think he has some connections which might make this > idea feasible). > > So he thinks if we release the code, then they will just grab the code > and use it. I tried to explain that your average layman has no idea > what Drupal is, no way to figure out your site is running Drupal, and > if even he got that far, he has no way of building his site without a > professional to put the pieces together (after they figure what those > pieces are of course), and then they he would do just as well to use > our hosted plan! > > But he hasn't accepted this. Are there any good arguments we can use > to persuade him? I feel he has nothing to lose in releasing the code, > but we have to convince him of that. > > Thanks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at webthatworks.it Mon Jul 13 10:33:28 2009 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Mon, 13 Jul 2009 12:33:28 +0200 Subject: [development] Convince Client to Release Code In-Reply-To: <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> Message-ID: <20090713123328.16d15bd1@dawn.webthatworks.it> On Mon, 13 Jul 2009 12:40:11 +0300 Nir Aides wrote: > This is an interesting legal problem. > > According to the GPL, your work is derived from software covered > by the GPL and therefore the client can not give you a copy of the > source under any terms other than the GPL even if they own the > copyright to the part of the work created by you. > Now, you have a copy of the source (since you created it) by > permission (which may be irrelevant) of the client. > Therefore the copy you have is governed by the GPL and it is > illegal of the client to prevent you from distributing it under > the GPL. I think it depends on the terms of the contract. eg. if I am an employ of XYZ, I'm "exposed" to a GPL program and the holder of the copyright is XYZ I still may not distribute it. I think this is the case with modified Apache/MySQL at Google. They don't "leak out". -- Ivan Sergio Borgonovo http://www.webthatworks.it From stewsnooze at gmail.com Mon Jul 13 10:35:17 2009 From: stewsnooze at gmail.com (Stewart Robinson) Date: Mon, 13 Jul 2009 11:35:17 +0100 Subject: [development] Convince Client to Release Code In-Reply-To: <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> Message-ID: Typically in legal circles ownership is given to the creator. However if any sort of contract was signed and that mentioned work for hire, or basically detailed that the work was to be owned by the company rather than Fred then Fred can't distribute this. Even if Fred does own the code it is not wise to distribute something built as part of a contract without agreement. It's not good for references and future work. Re the GPL. Building on top of the GPL is fine and you don't have to distribute it at all. The only thing the GPL does is make you ship the license and original stuff along with your new product if you distribute that product. That's a gross simplification. But in essence if this work was done to go on a website then that is most likely not distributing the work as the website delivers the output of the work, not the work itself. Fred should get agreement first to be safe in my opinion.. 2009/7/13 Nir Aides > This is an interesting legal problem. > > According to the GPL, your work is derived from software covered by the GPL > and therefore the client can not give you a copy of the source under any > terms other than the GPL even if they own the copyright to the part of the > work created by you. > > Now, you have a copy of the source (since you created it) by permission > (which may be irrelevant) of the client. > Therefore the copy you have is governed by the GPL and it is illegal of the > client to prevent you from distributing it under the GPL. > > Some people might look at this problem and trivially dismiss it because of > such and such, but I wonder if it can be trivially dismissed. > > The interesting thing is that there are a lot of transactions and business > based on similar relationships between developers and clients. The > consequences of this problem can therefore be huge. > > This is not the only problem with the GPL. There are other fundamental > problems such as the problem of determining and maintaining ownership of > copyright of Free Software projects. > > I would love to hear the opinion of a legal expert on this. > > Nir > > > > On Mon, Jul 13, 2009 at 11:53 AM, Fred Jones wrote: > >> We have one client for whom we wrote a set of custom modules. I asked >> the client if we could put the modules on d.o and he balked. I tried >> to explain that he'll get good testing and also bug fixes and new >> features maybe, if others post patches etc. >> >> He feels that he (his organization that is) paid for the work and why >> should someone else now benefit? He also has this idea that other >> organizations like his will want a site like his and he has plans to >> provide a hosted service for them (while this idea may seem >> far-fetched, I do think he has some connections which might make this >> idea feasible). >> >> So he thinks if we release the code, then they will just grab the code >> and use it. I tried to explain that your average layman has no idea >> what Drupal is, no way to figure out your site is running Drupal, and >> if even he got that far, he has no way of building his site without a >> professional to put the pieces together (after they figure what those >> pieces are of course), and then they he would do just as well to use >> our hosted plan! >> >> But he hasn't accepted this. Are there any good arguments we can use >> to persuade him? I feel he has nothing to lose in releasing the code, >> but we have to convince him of that. >> >> Thanks. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at webthatworks.it Mon Jul 13 11:11:56 2009 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Mon, 13 Jul 2009 13:11:56 +0200 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <20090713131156.7b9258c3@dawn.webthatworks.it> On Mon, 13 Jul 2009 11:53:15 +0300 Fred Jones wrote: > We have one client for whom we wrote a set of custom modules. I > asked the client if we could put the modules on d.o and he balked. > I tried to explain that he'll get good testing and also bug fixes > and new features maybe, if others post patches etc. > > He feels that he (his organization that is) paid for the work and > why should someone else now benefit? He also has this idea that > other organizations like his will want a site like his and he has > plans to provide a hosted service for them (while this idea may > seem far-fetched, I do think he has some connections which might > make this idea feasible). > > So he thinks if we release the code, then they will just grab the > code and use it. I tried to explain that your average layman has > no idea what Drupal is, no way to figure out your site is running > Drupal, and if even he got that far, he has no way of building his > site without a professional to put the pieces together (after they > figure what those pieces are of course), and then they he would do > just as well to use our hosted plan! > > But he hasn't accepted this. Are there any good arguments we can > use to persuade him? I feel he has nothing to lose in releasing > the code, but we have to convince him of that. I think your job is to let him understand the advantages of having such modules "supported by the community" and what does it mean "replicating and maintaining your work". Then it all depends on which terms you worked for/with them and if the terms were clear enough for both (copyright holder, maintenance and support plan, characteristics of the modules eg. easy deployment...). Supposed he is the holder of the copyright he may or may not have good commercial reasons to stop distribution (the commercial reasons may or may not overcome the maintenance costs). As a developer you may have a word on the management costs and opportunity to release it but I tend to trust clients on their business matter (just tend...). If you detain the copyright of the modules you develop and it is clear they are under GPL that would make it easier. BTW if you are not the copyright holder... you shouldn't be allowed take private agreement *not* to release in the public since they may be in violation of the GPL. But violation of GPL is going to be discovered... just when the agreement is not any more private... so this is going to be a mess I wouldn't be willing to get involved with. Working with GPL software without making a client aware of the advantages and obligations he has is bad for you, the client and Open Source. -- Ivan Sergio Borgonovo http://www.webthatworks.it From earnie at users.sourceforge.net Mon Jul 13 11:41:52 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 13 Jul 2009 11:41:52 +0000 Subject: [development] Convince Client to Release Code In-Reply-To: References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> Message-ID: <20090713114152.10651zo169zo8txc@mail.siebunlimited.com> Quoting Stewart Robinson : > Typically in legal circles ownership is given to the creator. I'm of the understanding that the ownership belongs to the intellectual property holder. That could be the creator but it could also be an employer or contractee depending on the contracts signed by the employee or contractor. -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From hovercrafter at earthlink.net Mon Jul 13 11:46:52 2009 From: hovercrafter at earthlink.net (Jamie Holly) Date: Mon, 13 Jul 2009 07:46:52 -0400 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <4A5B1EAC.90204@earthlink.net> Does the client have a site/service that would be of interest to the general public? If so then I would try to sell it from the angle that you can release the module with a "supported by" attribution that links back to them from the D.O. project page. That could help give them more recognition and give their company a higher standing within the O.S. community. Jamie Holly http://www.intoxination.net http://www.hollyit.net Fred Jones wrote: > We have one client for whom we wrote a set of custom modules. I asked > the client if we could put the modules on d.o and he balked. I tried > to explain that he'll get good testing and also bug fixes and new > features maybe, if others post patches etc. > > He feels that he (his organization that is) paid for the work and why > should someone else now benefit? He also has this idea that other > organizations like his will want a site like his and he has plans to > provide a hosted service for them (while this idea may seem > far-fetched, I do think he has some connections which might make this > idea feasible). > > So he thinks if we release the code, then they will just grab the code > and use it. I tried to explain that your average layman has no idea > what Drupal is, no way to figure out your site is running Drupal, and > if even he got that far, he has no way of building his site without a > professional to put the pieces together (after they figure what those > pieces are of course), and then they he would do just as well to use > our hosted plan! > > But he hasn't accepted this. Are there any good arguments we can use > to persuade him? I feel he has nothing to lose in releasing the code, > but we have to convince him of that. > > Thanks. > > From alex at spoon.com.au Mon Jul 13 11:48:11 2009 From: alex at spoon.com.au (Alex Cochrane) Date: Mon, 13 Jul 2009 19:48:11 +0800 Subject: [development] Convince Client to Release Code In-Reply-To: <20090713114152.10651zo169zo8txc@mail.siebunlimited.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> <20090713114152.10651zo169zo8txc@mail.siebunlimited.com> Message-ID: <1247485691.22310.28.camel@inu> On Mon, 2009-07-13 at 11:41 +0000, Earnie Boyd wrote: > I'm of the understanding that the ownership belongs to the > intellectual property holder. That could be the creator but it > could > also be an employer or contractee depending on the contracts signed > by > the employee or contractor. This is correct. From hovercrafter at earthlink.net Mon Jul 13 12:10:20 2009 From: hovercrafter at earthlink.net (Jamie Holly) Date: Mon, 13 Jul 2009 08:10:20 -0400 Subject: [development] Convince Client to Release Code In-Reply-To: <20090713123328.16d15bd1@dawn.webthatworks.it> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> <20090713123328.16d15bd1@dawn.webthatworks.it> Message-ID: <4A5B242C.2090102@earthlink.net> > he client to prevent you from distributing it under > > the GPL. > > I think it depends on the terms of the contract. > > eg. if I am an employ of XYZ, I'm "exposed" to a GPL program and the > holder of the copyright is XYZ I still may not distribute it. > > I think this is the case with modified Apache/MySQL at Google. > They don't "leak out". > > That's the way it was explained to me last summer when I got into a battle with a former client and lawyers got involved. Now every client I do work for is on a contract and that contract stipulates if I can or can not release any of the work. If they don't want me to then the hourly rate also is higher. Jamie Holly http://www.intoxination.net http://www.hollyit.net From syscrusher at 4th.com Mon Jul 13 12:25:49 2009 From: syscrusher at 4th.com (Syscrusher) Date: Mon, 13 Jul 2009 08:25:49 -0400 Subject: [development] Convince Client to Release Code In-Reply-To: <20090713131156.7b9258c3@dawn.webthatworks.it> (sfid-20090713_071242_089278_9561569C) References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <20090713131156.7b9258c3@dawn.webthatworks.it> (sfid-20090713_071242_089278_9561569C) Message-ID: <1247487949.5020.138.camel@marcus> On Mon, 2009-07-13 at 13:11 +0200, Ivan Sergio Borgonovo wrote: > > He feels that he (his organization that is) paid for the work and > > why should someone else now benefit? Does he realize that he's the beneficiary of millions of hours of work paid for by others? Probably not. {sigh} Scott -- Syscrusher From nedjo at islandnet.com Mon Jul 13 13:03:00 2009 From: nedjo at islandnet.com (Nedjo Rogers) Date: Mon, 13 Jul 2009 07:03:00 -0600 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <4A5B3084.6070400@islandnet.com> Fred Jones wrote: > Are there any good arguments we can use > to persuade him? See this related article: http://civicactions.com/blog/most_important_decision_developing_site_Contributed_vs_custom_development and the "Contribute back" section here: http://drupal.org/node/51169 From fredthejonester at gmail.com Mon Jul 13 13:06:14 2009 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 13 Jul 2009 16:06:14 +0300 Subject: [development] Convince Client to Release Code In-Reply-To: <1247487949.5020.138.camel@marcus> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <20090713131156.7b9258c3@dawn.webthatworks.it> <1247487949.5020.138.camel@marcus> Message-ID: <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> Regarding the legal issues here, it's definitely interesting and I will now take care to make contacts, but as far as this job, we have no contract but anyway the owners of this group are friends of ours and there is no fight going on--we just suggested to release the code and they asked us not to. So now we have to convince them to agree. :) > I think your job is to let him understand the advantages of having > such modules "supported by the community" and what does it mean > "replicating and maintaining your work". So that's what I'm asking about here--I can tell him the advantages are: 1. Testing and Bug reports. 2. Potential patches being submitted that he won't have to pay for. That's what I know. What does "replicating and maintaining your work" refer to? > Does the client have a site/service that would be of interest to the general > public? If so then I would try to sell it from the angle that you can > release the module with a "supported by" attribution that links back to them > from the D.O. project page. That could help give them more recognition and > give their company a higher standing within the O.S. community. No, their service is only for other organizations in their particular business. I don't think a link on d.o will interest them *at all.* I would like one, but I'm a nerd. lol. > Does he realize that he's the beneficiary of millions of hours of work > paid for by others? Of course he realizes that. Does he care, however? Seems like not. :( Well, it could be that he knows and appreciates BUT he still doesn't want to lose his own money over it. lol. > See this related article: > > http://civicactions.com/blog/most_important_decision_developing_site_Contributed_vs_custom_development > > and the "Contribute back" section here: > > http://drupal.org/node/51169 OK, great--this is the kind of thing I was looking for. Thanks. Fred From metzlerd at metzlerd.com Mon Jul 13 13:42:29 2009 From: metzlerd at metzlerd.com (David Metzler) Date: Mon, 13 Jul 2009 06:42:29 -0700 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <20090713131156.7b9258c3@dawn.webthatworks.it> <1247487949.5020.138.camel@marcus> <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> Message-ID: <16DDFA3E-8E71-4F0B-A086-459BB493FF06@metzlerd.com> Although the links provided touch on this. The most successful argument I have used is that the client may be able to defer and/or share the maintence costs of the module. The first time that they don't have to pay a developer to upgrade the module to the next major rev of drupal (because someone else has contributed the port), this can be a powerful argument. Of course as others have already mentioned, it should be pointed out that they are taking advantage of other consultants paid development by using drupal, and that it is fairly common practice for code that is paid for by other organizations to be released back into the drupal community. There are many success stories to be told, where an important feature to a contributed module was developed (and therefor paid for) wholly by another person. Depending on the complexity and reusability of the module, they may FULLY recoup the cost of development in maintenance cost savings. I often describe open source software as bartered software developement, where you lose the overhead associated with contract management. ;) Given all that, continue to point all this out, every time you get an opportunity. Sometimes it takes a while to sell, and the proprietary module could be released into the community at any time. No rush. I'm still selling it at my shop, not cause the people don't get it, but because its an easy thing to take for granted. It's the bills you pay that get your attention, not the ones you manage to avoid. Good luck, and keep trying.... Dave On Jul 13, 2009, at 6:06 AM, Fred Jones wrote: > Regarding the legal issues here, it's definitely interesting and I > will now take care to make contacts, but as far as this job, we have > no contract but anyway the owners of this group are friends of ours > and there is no fight going on--we just suggested to release the code > and they asked us not to. So now we have to convince them to agree. :) > >> I think your job is to let him understand the advantages of having >> such modules "supported by the community" and what does it mean >> "replicating and maintaining your work". > > So that's what I'm asking about here--I can tell him the advantages > are: > > 1. Testing and Bug reports. > 2. Potential patches being submitted that he won't have to pay for. > > That's what I know. What does "replicating and maintaining your > work" refer to? > >> Does the client have a site/service that would be of interest to >> the general >> public? If so then I would try to sell it from the angle that you can >> release the module with a "supported by" attribution that links >> back to them >> from the D.O. project page. That could help give them more >> recognition and >> give their company a higher standing within the O.S. community. > > No, their service is only for other organizations in their particular > business. I don't think a link on d.o will interest them *at all.* I > would like one, but I'm a nerd. lol. > >> Does he realize that he's the beneficiary of millions of hours of >> work >> paid for by others? > > Of course he realizes that. Does he care, however? Seems like not. :( > > Well, it could be that he knows and appreciates BUT he still doesn't > want to lose his own money over it. lol. > >> See this related article: >> >> http://civicactions.com/blog/ >> most_important_decision_developing_site_Contributed_vs_custom_develop >> ment >> >> and the "Contribute back" section here: >> >> http://drupal.org/node/51169 > > OK, great--this is the kind of thing I was looking for. Thanks. > > Fred From everyone at asifproductions.com Mon Jul 13 13:24:54 2009 From: everyone at asifproductions.com (As If Productions) Date: Mon, 13 Jul 2009 06:24:54 -0700 Subject: [development] Convince Client to Release Code (Fred Jones) In-Reply-To: References: Message-ID: <20090713132629.KHZT20430.fed1rmmtao105.cox.net@fed1rmimpo02.cox.net> Hey Fred -- Another advantage of releasing the code, you can include a link to the client's site somewhere in your description ("as seen here" or "check out a demo") - which will then give him an inbound link from drupal.org. That's good SEO mojo. LVX TF --- As If Productions http://www.asifproductions.com Interactive Worlds and Immersive Obsessions From winborn at advomatic.com Mon Jul 13 14:22:27 2009 From: winborn at advomatic.com (Aaron Winborn) Date: Mon, 13 Jul 2009 10:22:27 -0400 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <20090713131156.7b9258c3@dawn.webthatworks.it> <1247487949.5020.138.camel@marcus> <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> Message-ID: <4A5B4323.4050908@advomatic.com> An HTML attachment was scrubbed... URL: From andrewberry at sentex.net Mon Jul 13 14:43:09 2009 From: andrewberry at sentex.net (Andrew Berry) Date: Mon, 13 Jul 2009 10:43:09 -0400 Subject: [development] Convince Client to Release Code In-Reply-To: <4A5B242C.2090102@earthlink.net> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <5d2328510907130240y50a97f3cu9cbb2c4862e5da44@mail.gmail.com> <20090713123328.16d15bd1@dawn.webthatworks.it> <4A5B242C.2090102@earthlink.net> Message-ID: On 13-Jul-09, at 8:10 AM, Jamie Holly wrote: > and that contract stipulates if I can or can not release any of the > work. If they don't want me to then the hourly rate also is higher. I've also found this to work really well. I typically phrase it as a "community participation" discount off of the regular rate if they allow contributions. I've yet to have a client decline that option, though I've not worked with clients who's primary business is the web. Depending on the module and the size of the project, the potential for security reviews is often a benefit which I promote to clients. Regardless of competitive rationale, having your website hacked can be a more immediate (and costly) concern. I always stipulate that patches to existing modules, themes, core or other FOSS code can be contributed back. I've never had an objection to this. Good luck! --Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2672 bytes Desc: not available URL: From j.sintjago at xs4all.nl Mon Jul 13 14:37:42 2009 From: j.sintjago at xs4all.nl (Joop Sint Jago) Date: Mon, 13 Jul 2009 08:37:42 -0600 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <000901ca03c7$7b0e7240$712b56c0$@sintjago@xs4all.nl> Regardless of legal status. How can one "grab" Drupal for free (with all related benefits) and then refuse to contribute back? -----Oorspronkelijk bericht----- Van: development-bounces at drupal.org [mailto:development-bounces at drupal.org] Namens Fred Jones Verzonden: maandag 13 juli 2009 2:53 Aan: development at drupal.org Onderwerp: [development] Convince Client to Release Code We have one client for whom we wrote a set of custom modules. I asked the client if we could put the modules on d.o and he balked. I tried to explain that he'll get good testing and also bug fixes and new features maybe, if others post patches etc. He feels that he (his organization that is) paid for the work and why should someone else now benefit? He also has this idea that other organizations like his will want a site like his and he has plans to provide a hosted service for them (while this idea may seem far-fetched, I do think he has some connections which might make this idea feasible). So he thinks if we release the code, then they will just grab the code and use it. I tried to explain that your average layman has no idea what Drupal is, no way to figure out your site is running Drupal, and if even he got that far, he has no way of building his site without a professional to put the pieces together (after they figure what those pieces are of course), and then they he would do just as well to use our hosted plan! But he hasn't accepted this. Are there any good arguments we can use to persuade him? I feel he has nothing to lose in releasing the code, but we have to convince him of that. Thanks. From cweagans at gmail.com Mon Jul 13 14:51:42 2009 From: cweagans at gmail.com (Cameron Eagans) Date: Mon, 13 Jul 2009 08:51:42 -0600 Subject: [development] Convince Client to Release Code In-Reply-To: <1930169715167413555@unknownmsgid> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <1930169715167413555@unknownmsgid> Message-ID: While I am a proponent of contributing back to the community, there are certain situations where it would not be prudent to do so (from a business owner's prospective). For example, what if you developed an application like TSheets.com or FreshBooks.com in Drupal? I'm pretty sure that you would not want any of your custom code floating around on the internet -- ever. It's not a matter of morals sometimes -- it's a matter of livelyhood. If your community contributions can directly help or create competitors, it doesn't make much sense to contribute your modules/themes/etc. Likewise, if you developed some application that ran on Linux, would you want to open-source your app? There are tons of closed-source applications for Linux, and not much debate over their legality or morals. I liken that situation to this one. Just my $0.02. ----- Cameron Eagans Owner, Black Storms Studios, LLC http://www.blackstormsstudios.com/cweagans On Mon, Jul 13, 2009 at 8:37 AM, Joop Sint Jago wrote: > Regardless of legal status. > How can one "grab" Drupal for free (with all related benefits) and then > refuse to contribute back? > > > -----Oorspronkelijk bericht----- > Van: development-bounces at drupal.org [mailto:development-bounces at drupal.org > ] > Namens Fred Jones > Verzonden: maandag 13 juli 2009 2:53 > Aan: development at drupal.org > Onderwerp: [development] Convince Client to Release Code > > We have one client for whom we wrote a set of custom modules. I asked > the client if we could put the modules on d.o and he balked. I tried > to explain that he'll get good testing and also bug fixes and new > features maybe, if others post patches etc. > > He feels that he (his organization that is) paid for the work and why > should someone else now benefit? He also has this idea that other > organizations like his will want a site like his and he has plans to > provide a hosted service for them (while this idea may seem > far-fetched, I do think he has some connections which might make this > idea feasible). > > So he thinks if we release the code, then they will just grab the code > and use it. I tried to explain that your average layman has no idea > what Drupal is, no way to figure out your site is running Drupal, and > if even he got that far, he has no way of building his site without a > professional to put the pieces together (after they figure what those > pieces are of course), and then they he would do just as well to use > our hosted plan! > > But he hasn't accepted this. Are there any good arguments we can use > to persuade him? I feel he has nothing to lose in releasing the code, > but we have to convince him of that. > > Thanks. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewberry at sentex.net Mon Jul 13 14:58:57 2009 From: andrewberry at sentex.net (Andrew Berry) Date: Mon, 13 Jul 2009 10:58:57 -0400 Subject: [development] Convince Client to Release Code In-Reply-To: <000901ca03c7$7b0e7240$712b56c0$@sintjago@xs4all.nl> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <000901ca03c7$7b0e7240$712b56c0$@sintjago@xs4all.nl> Message-ID: On 13-Jul-09, at 10:37 AM, Joop Sint Jago wrote: > Regardless of legal status. > How can one "grab" Drupal for free (with all related benefits) and > then > refuse to contribute back? http://www.fsf.org/licensing/licenses/gpl-faq.html I'd suggest reading up about the AGPL license as well as it will help to answer your question: http://www.fsf.org/licensing/licenses/agpl-3.0.html --Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2672 bytes Desc: not available URL: From amystephen at gmail.com Mon Jul 13 15:10:35 2009 From: amystephen at gmail.com (Amy Stephen) Date: Mon, 13 Jul 2009 10:10:35 -0500 Subject: [development] Convince Client to Release Code In-Reply-To: <16DDFA3E-8E71-4F0B-A086-459BB493FF06@metzlerd.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <20090713131156.7b9258c3@dawn.webthatworks.it> <1247487949.5020.138.camel@marcus> <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> <16DDFA3E-8E71-4F0B-A086-459BB493FF06@metzlerd.com> Message-ID: <979e7e490907130810j14f39de3ge7bacb12d28aa881@mail.gmail.com> On Mon, Jul 13, 2009 at 8:42 AM, David Metzler wrote: > > Given all that, continue to point all this out, every time you get an > opportunity. Sometimes it takes a while to sell, and the proprietary module > could be released into the community at any time. No rush. > To me, "proprietary" is the key. It's important for the contract to make clear that code will be licensed legally. Otherwise, the developer could be put into a difficult position of distributing proprietary code. It's the one distributing GPL code who is accountable. It's best to express contracts in terms of what functions will be provided and/or hours required to get there, not specifically what new code might be required. Then, as you are augmenting an existing code base and using the appropriate license for new work, the engagement stays focused on the collective result, not the component pieces. In the end, it's never a good idea to redistribute an entire replica of any collective result. Sharing new functions back to the community places important functions into an overall support infrastructure and can be done discretely, without detracting from anyone's solution or market advantage. -------------- next part -------------- An HTML attachment was scrubbed... URL: From naheemzaffar at gmail.com Mon Jul 13 15:29:57 2009 From: naheemzaffar at gmail.com (Naheem Zaffar) Date: Mon, 13 Jul 2009 16:29:57 +0100 Subject: [development] Convince Client to Release Code In-Reply-To: <979e7e490907130810j14f39de3ge7bacb12d28aa881@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> <20090713131156.7b9258c3@dawn.webthatworks.it> <1247487949.5020.138.camel@marcus> <177c0a10907130606i695ad6d1s6207f13e5ffc063e@mail.gmail.com> <16DDFA3E-8E71-4F0B-A086-459BB493FF06@metzlerd.com> <979e7e490907130810j14f39de3ge7bacb12d28aa881@mail.gmail.com> Message-ID: <3adc77210907130829l6c1b4fd6wdb2488f707f3b3c@mail.gmail.com> Just a note that the GPL does not (AFAIK) automatically mean free distribution of code to anyone - just that if you give the code to someone else, they then have the right to modification, distribution etc to others under the terms of the GPL. Also if you are doing contract work, it is probably best to specify ahead of time what you want to happen with the code once you have met the client's business requirements and it may be good to point out how their business is benefiting from thsi free code sharing - how they are being saved a lot of money in being able to use code written by others. You will have to ask a lawyer, but my understanding is that in a contract work situation you cannot prevent the client from distributing the work (there are some modules out there that do try to restrict and thus violate the GPL - the ones I have encountered are ports from Joomla! and not hosted at drupal.org) as they see fit as long as it is under the terms of the GPL. As for your rights, they are as specified in your contract - if you transferred ownership, then it is probably up to the client. If you did not specify anything here, it is still best to continue a good working relationship with those you work with as it might affect your overall reputation for "changing the terms" even if you didn't. In the future, it may be best to have some of the legalese, processes available and clarified with the client before any work is done. Just to note that IANAL. -------------- next part -------------- An HTML attachment was scrubbed... URL: From larry at garfieldtech.com Mon Jul 13 16:43:45 2009 From: larry at garfieldtech.com (larry at garfieldtech.com) Date: Mon, 13 Jul 2009 11:43:45 -0500 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <4A5B6441.9020906@garfieldtech.com> As others have noted, the time to be having this conversation with a client is before any work is done, not after. Your contract (which you want to have, period, even if it's a friend, and this is why) should specify who holds the copyright on any code written for the project. For Drupal modules, whoever holds the copyright is required to distribute it under the GPL... *if* they choose to distribute it. There is no legal requirement in the GPL that any of the code you write ever be given to anyone but you and the client, just that if one of you does so that it is under the GPL. Most sites include some widely-used general purpose modules, some fringe special purpose modules (either custom written or not), and some site-specific one-off code that, while still GPL, is really not useful to anyone else. How much of each varies widely with the site. There's really no value to distributing the latter, and I'd argue that putting that on Drupal.org is a net-negative as it just inflates the number of modules and eats up valueable namespace. So any code that is not generalizable you shouldn't bother distributing anyway. For any code that is generalizable, I think the most persuasive argument is that, especially for a hosted solution like you describe, *code is not what differentiates him in the market*. It's the service he offers. Code is incidental to that. If people want to replicate his service and compete with him, replicating his service will be harder than replicating his code. If the code is not that important to the service, then he loses nothing by releasing it. If that particular functionality is that important to the service, then someone else trying to compete with him will replicate the code that provides the functionality, release it, get the karma and good will of doing so, which means the free support and increased likelihood that someone will answer questions when he has them, etc. The free, shared version of that functionality will eventually become better than whatever your client's hidden version is, so his competition will have *better* code at their disposal than he will, and he'll be stuck with code that no one can support except him that is worse than the publicly available, shared version. That's the worst possible situation for him to be in. Sometimes, releasing code does help your competition. Any Drupal consulting shop that releases modules or makes patches to existing modules is directly benefiting other consulting shops that they may end up bidding against on a client. And those shops are doing the same in return. With enough shops doing that (and there are), you're still getting more free code and functionality than you're giving away. Everyone is perpetually in "code debt" to the larger community in terms of code given away vs. code gotten for free. It also means that other module maintainers are more likely to consider your feature requests and patches (even if they have to write them themselves) if they recognize you as an active contributor. That's what makes open source work; everyone is in debt to everyone. :-) Fred Jones wrote: > We have one client for whom we wrote a set of custom modules. I asked > the client if we could put the modules on d.o and he balked. I tried > to explain that he'll get good testing and also bug fixes and new > features maybe, if others post patches etc. > > He feels that he (his organization that is) paid for the work and why > should someone else now benefit? He also has this idea that other > organizations like his will want a site like his and he has plans to > provide a hosted service for them (while this idea may seem > far-fetched, I do think he has some connections which might make this > idea feasible). > > So he thinks if we release the code, then they will just grab the code > and use it. I tried to explain that your average layman has no idea > what Drupal is, no way to figure out your site is running Drupal, and > if even he got that far, he has no way of building his site without a > professional to put the pieces together (after they figure what those > pieces are of course), and then they he would do just as well to use > our hosted plan! > > But he hasn't accepted this. Are there any good arguments we can use > to persuade him? I feel he has nothing to lose in releasing the code, > but we have to convince him of that. > > Thanks. From Alex at ZivTech.com Mon Jul 13 16:45:03 2009 From: Alex at ZivTech.com (Alex Urevick-Ackelsberg) Date: Mon, 13 Jul 2009 12:45:03 -0400 Subject: [development] Convince Client to Release Code Message-ID: <37b3830e0907130945p76b73ac1s6e0e7056edeab532@mail.gmail.com> I definitely think these types of discussions are best had before work begins, and should be part of the contract between you and your client. Here's the wording from our standard contract: ------------- Proprietary Rights. The Drupal software programs (comprised of core software as well as additional community-contributed modules and theme software) (herein referred to as ?Drupal?) used by Consultant are licensed under a GNU General Public License, and all developed code and techniques derived from Drupal shall be licensed in accordance with the applicable GNU General Public License. Further, developed code and techniques derived from Drupal shall be contributed to the Drupal community for public use unless specifically agreed upon in writing by both parties prior to development or it is agreed that such code would not provide benefit to the community. Developed code, when contributed back to the Drupal community, can be attributed to both Consultant and Company as appropriate. Developed code and techniques not derived from or natively integrated with Drupal shall not be contributed to an open source community without express consent from Company. ------------- This almost invariably makes the contract negotiations take longer, but in the end they are sold on the ideas that it is 'the right/profressional way' to work in Open Source, and we won't sacrifice working in the 'right way', as well as the long term maintenance costs of maintaining your own code. -- Alex Urevick-Ackelsberg ZivTech, LLC http://zivtech.com alex at zivtech.com office: (267) 940-7737 cell: (215) 866-8956 skype: zivtech aim: zivtech From: David Metzler > To: development at drupal.org > Date: Mon, 13 Jul 2009 06:42:29 -0700 > Subject: Re: [development] Convince Client to Release Code > Although the links provided touch on this. The most successful argument I > have used is that the client may be able to defer and/or share the maintence > costs of the module. The first time that they don't have to pay a developer > to upgrade the module to the next major rev of drupal (because someone else > has contributed the port), this can be a powerful argument. Of course as > others have already mentioned, it should be pointed out that they are taking > advantage of other consultants paid development by using drupal, and that it > is fairly common practice for code that is paid for by other organizations > to be released back into the drupal community. > > There are many success stories to be told, where an important feature to a > contributed module was developed (and therefor paid for) wholly by another > person. Depending on the complexity and reusability of the module, they may > FULLY recoup the cost of development in maintenance cost savings. I often > describe open source software as bartered software developement, where you > lose the overhead associated with contract management. ;) > > Given all that, continue to point all this out, every time you get an > opportunity. Sometimes it takes a while to sell, and the proprietary module > could be released into the community at any time. No rush. > > I'm still selling it at my shop, not cause the people don't get it, but > because its an easy thing to take for granted. It's the bills you pay that > get your attention, not the ones you manage to avoid. > > Good luck, and keep trying.... > > Dave > > On Jul 13, 2009, at 6:06 AM, Fred Jones wrote: > > Regarding the legal issues here, it's definitely interesting and I >> will now take care to make contacts, but as far as this job, we have >> no contract but anyway the owners of this group are friends of ours >> and there is no fight going on--we just suggested to release the code >> and they asked us not to. So now we have to convince them to agree. :) >> >> I think your job is to let him understand the advantages of having >>> such modules "supported by the community" and what does it mean >>> "replicating and maintaining your work". >>> >> >> So that's what I'm asking about here--I can tell him the advantages are: >> >> 1. Testing and Bug reports. >> 2. Potential patches being submitted that he won't have to pay for. >> >> That's what I know. What does "replicating and maintaining your work" >> refer to? >> >> Does the client have a site/service that would be of interest to the >>> general >>> public? If so then I would try to sell it from the angle that you can >>> release the module with a "supported by" attribution that links back to >>> them >>> from the D.O. project page. That could help give them more recognition >>> and >>> give their company a higher standing within the O.S. community. >>> >> >> No, their service is only for other organizations in their particular >> business. I don't think a link on d.o will interest them *at all.* I >> would like one, but I'm a nerd. lol. >> >> Does he realize that he's the beneficiary of millions of hours of work >>> paid for by others? >>> >> >> Of course he realizes that. Does he care, however? Seems like not. :( >> >> Well, it could be that he knows and appreciates BUT he still doesn't >> want to lose his own money over it. lol. >> >> See this related article: >>> >>> http://civicactions.com/blog/ >>> most_important_decision_developing_site_Contributed_vs_custom_development >>> >>> and the "Contribute back" section here: >>> >>> http://drupal.org/node/51169 >>> >> >> OK, great--this is the kind of thing I was looking for. Thanks. >> >> Fred >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kieran at acquia.com Mon Jul 13 17:05:50 2009 From: kieran at acquia.com (Kieran Lal) Date: Mon, 13 Jul 2009 10:05:50 -0700 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: On Mon, Jul 13, 2009 at 1:53 AM, Fred Jones wrote: > > But he hasn't accepted this. Are there any good arguments we can use > to persuade him? I feel he has nothing to lose in releasing the code, > but we have to convince him of that. Fred, show him how other businesses are succeeding with Drupal and how they choose to contribute back. There are several Drupal case studies on the front page of Drupal.org and many more listed here http://drupal.org/success-stories . That will provide a business friendly context for sharing code. e.g. Sony Music sponsors major multilingual improvements in Drupal 6, http://drupal.org/node/383954 Also challenge the business owner on the following issues: 1) Your business is now dependent on Drupal. Do you want your web platform to succeed or fail? If you want it to succeed, make contributions of marginal cost to you, now that the module is built, to make Drupal successful. 2) Do you plan to grow your business? If so, you will likely need to hire more Drupal developers in the future. The best recruiting for new talent is through developers who have an affinity for the features you are already developing. By putting you code in the public domain, you are effectively creating an interview process to determine who the most competent developers are for the features you want to develop. 3) What is your research and development budget? The users who are visiting your site are going to expect the business site to keep improving the user experience, integration with other services on the Internet, new features. Do you have the budget to develop everything your site visitors want, or would it be better to have research and development ongoing around your modules at little marginal cost to your business. Assure him that business execution, and not individual features on a website are the differentiators for a business. Kieran > > Thanks. > From vivian at byinspiration.co.uk Mon Jul 13 16:50:54 2009 From: vivian at byinspiration.co.uk (Vivian Spencer) Date: Mon, 13 Jul 2009 17:50:54 +0100 Subject: [development] Convince Client to Release Code In-Reply-To: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: Here's an example of a good contract if you need one: http://24ways.org/2008/contract-killer - Vivian From drupal at dave-cohen.com Mon Jul 13 17:52:44 2009 From: drupal at dave-cohen.com (Dave Cohen) Date: Mon, 13 Jul 2009 10:52:44 -0700 Subject: [development] Menu router question In-Reply-To: References: Message-ID: <200907131052.45395.drupal@dave-cohen.com> I did something similar, changing the chatroom module so that each chat had two tabs. I used hook_menu_alter like this... /** * Implementation of hook_menu_alter(). */ function fb_chatroom_menu_alter(&$items) { if ($items['chatroom/chat/%']) { // here I make the regular menu item a callback $items['chatroom/chat/%']['type'] = MENU_CALLBACK; // here I add a tab for the regular item $items['chatroom/chat/%/all'] = array( 'title' => t('Everyone'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); // here I add a second tab $items['chatroom/chat/%/fb/friends'] = array( 'type' => MENU_LOCAL_TASK, 'title' => t('My Friends'), 'page callback' => 'fb_chatroom_view_chat', 'page arguments' => array('friends', 2), 'access callback' => 'fb_chatroom_access_helper', 'access arguments' => array('access chat rooms', 'friends'), ); // etc for any other changes needed.... } On Friday 10 July 2009 13:03:25 Richard Morse wrote: > Hi! I'm trying to extend the taxonomy interface so that I can attach > additional information to certain terms. > > I'd like to do one of two things: > > - either make admin/content/taxonomy/edit/term be a MENU_DEFAULT_TASK, > and add additional tabs such as admin/content/taxonomy/edit/term/%/info1 > From fredthejonester at gmail.com Mon Jul 13 19:12:05 2009 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 13 Jul 2009 22:12:05 +0300 Subject: [development] Convince Client to Release Code In-Reply-To: References: <177c0a10907130153y61c4b815o7daee2423b405ecc@mail.gmail.com> Message-ID: <177c0a10907131212v677adf73p32a6f6d1131d348e@mail.gmail.com> > Here's an example of a good contract if you need one: > http://24ways.org/2008/contract-killer Thank you to everyone who replied. I sent off an email now. :) Fred From clemens at build2be.nl Wed Jul 15 15:09:21 2009 From: clemens at build2be.nl (Clemens Tolboom) Date: Wed, 15 Jul 2009 17:09:21 +0200 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? Message-ID: <1247670561.4224.42.camel@clemens-laptop.dev> Having a development test acceptance and production environment it's a drag when moving the production database and files to an acceptance or development environment. One has to update the files database table and more tables or do trickery with symlinks to get the site running clean. If we could make the filepath in the files table relative to the /admin/settings/file-system path the real files are relocatable without pain. Just do a db load and a rsync to get the files and change the dmin/settings/file-system path. What do you think? Did I miss something important? From ufukbay at gmail.com Wed Jul 15 16:02:38 2009 From: ufukbay at gmail.com (ufuk bayburt) Date: Wed, 15 Jul 2009 19:02:38 +0300 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <1247670561.4224.42.camel@clemens-laptop.dev> References: <1247670561.4224.42.camel@clemens-laptop.dev> Message-ID: <888304040907150902j2fd4a8b0g57a9e8f838148dcc@mail.gmail.com> On Wed, Jul 15, 2009 at 6:09 PM, Clemens Tolboom wrote: > Having a development test acceptance and production environment it's a > drag when moving the production database and files to an acceptance or > development environment. > > One has to update the files database table and more tables or do > trickery with symlinks to get the site running clean. > > If we could make the filepath in the files table relative to > the /admin/settings/file-system path the real files are relocatable > without pain. Just do a db load and a rsync to get the files and change > the dmin/settings/file-system path. > > What do you think? Did I miss something important? > > See http://drupal.org/node/366464. -------------- next part -------------- An HTML attachment was scrubbed... URL: From neclimdul at gmail.com Wed Jul 15 16:08:44 2009 From: neclimdul at gmail.com (James Gilliland) Date: Wed, 15 Jul 2009 11:08:44 -0500 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <888304040907150902j2fd4a8b0g57a9e8f838148dcc@mail.gmail.com> References: <1247670561.4224.42.camel@clemens-laptop.dev> <888304040907150902j2fd4a8b0g57a9e8f838148dcc@mail.gmail.com> Message-ID: <877d4f280907150908t7b863eb1v6813c626818d598f@mail.gmail.com> Set up your production filesystem path first and set that before developing your site? On Wed, Jul 15, 2009 at 11:02 AM, ufuk bayburt wrote: > On Wed, Jul 15, 2009 at 6:09 PM, Clemens Tolboom > wrote: >> >> Having a development test acceptance and production environment it's a >> drag when moving the production database and files to an acceptance or >> development environment. >> >> One has to update the files database table and more tables or do >> trickery with symlinks to get the site running clean. >> >> If we could make the filepath in the files table relative to >> the /admin/settings/file-system path the real files are relocatable >> without pain. Just do a db load and a rsync to get the files and change >> the dmin/settings/file-system path. >> >> What do you think? Did I miss something important? >> > > See http://drupal.org/node/366464. > From weitzman at tejasa.com Wed Jul 15 16:39:17 2009 From: weitzman at tejasa.com (Moshe Weitzman) Date: Wed, 15 Jul 2009 12:39:17 -0400 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <1247670561.4224.42.camel@clemens-laptop.dev> References: <1247670561.4224.42.camel@clemens-laptop.dev> Message-ID: <6117a7500907150939v355ce3f4t426a3ab60a755154@mail.gmail.com> fixed in d7 with sites/sites.php. you can map one path to another so the that two environments can be made to look the same. see http://api.drupal.org/api/function/conf_path/7. of course d6 still needs some tricks. On Wed, Jul 15, 2009 at 11:09 AM, Clemens Tolboom wrote: > Having a development test acceptance and production environment it's a > drag when moving the production database and files to an acceptance or > development environment. > > One has to update the files database table and more tables or do > trickery with symlinks to get the site running clean. > > If we could make the filepath in the files table relative to > the /admin/settings/file-system path the real files are relocatable > without pain. Just do a db load and a rsync to get the files and change > the dmin/settings/file-system path. > > What do you think? Did I miss something important? > > From bevan at civicactions.com Wed Jul 15 21:54:46 2009 From: bevan at civicactions.com (Bevan Rudge) Date: Thu, 16 Jul 2009 09:54:46 +1200 Subject: [development] Files table includes file_directory_path Message-ID: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> > Date: Wed, 15 Jul 2009 17:09:21 +0200 > From: Clemens Tolboom > Subject: [development] Why is the Drupal File System relative to > ? ? ? ?website root and not relative to admin/settings/file-system path? > > Having a development test acceptance and production environment it's a > drag when moving the production database and files to an acceptance or > development environment. > > One has to update the files database table and more tables or do > trickery with symlinks to get the site running clean. > > If we could make the filepath in the files table relative to > the /admin/settings/file-system path the real files are relocatable > without pain. Just do a db load and a rsync to get the files and change > the dmin/settings/file-system path. > > What do you think? Did I miss something important? There is a featurebug in Drupal core that has been around since Drupal 5 or before, where the file API allows modules to save and retrieve files using a path relative to either the Drupal root or variable_get('file_directory_path', ...). A number of people have tried to fix this (including myself) in Drupal core, but it is a rather overwhelming issue since so much code in core and contrib now expects not only the file API, but also the files table to include variable_get('file_directory_path', ...). Attempts to fix it in the past sometimes gets distracted by related issues such as sites/sites.php and default files_directory_path, which don't actually solve the featurebug. At CivicActions we have a tool (pushdb --xFix) that fixes the paths in the files directory and elsewhere in the db, which we run when copying an instance of the site to a staging environment. However this approach is becoming unsustainable and we are considering using a separate instances of Drupal core in each and every staging environment so that they all use sites/default. What this means is that much of the time this featurebug is such a PITA that Drupal's multisite features don't work for staging environments. In my own sandbox I don't use multisite for staging environments at all, because of this issue, Do others? > Message: 6 > Date: Wed, 15 Jul 2009 19:02:38 +0300 > From: ufuk bayburt > Subject: Re: [development] Why is the Drupal File System relative to > ? ? ? ?website root and not relative to admin/settings/file-system path? > > See http://drupal.org/node/366464. That's the cleanest fix for this bug I've seen yet, but still seems to have wider ramifications than that patch fixes, and that's just Drupal core. I think it also needs an update handler that fixes paths in the files table for Drupal 6 sites upgrading to Drupal 7. > Date: Wed, 15 Jul 2009 11:08:44 -0500 > From: James Gilliland > Subject: Re: [development] Why is the Drupal File System relative to > ? ? ? ?website root and not relative to admin/settings/file-system path? > > Set up your production filesystem path first and set that before > developing your site? You misunderstood the initial post. The poster is asking about the case where he/she creates a staging environment from the live environment, not the other way around. However you've raised another issue derived from this featurebug. If you are developing a site on a domain which will not be the final domain name (e.g. because the site you're developing is replacing a non-drupal site), and your conf_path() is not sites/default, then you need to set your files_directory_path beforehand and/or create a system of symlinks to workaround the featurebug (or be screwed if your on windows). The foresight usually come with the experience of having been burned by this featurebug ? probably when you deployed a site and all the files broke a previous time. This hurts the developer experience. > Date: Wed, 15 Jul 2009 12:39:17 -0400 > From: Moshe Weitzman > Subject: Re: [development] Why is the Drupal File System relative to > ? ? ? ?website root and not relative to admin/settings/file-system path? > > fixed in d7 with sites/sites.php. you can map one path to another so > the that two environments can be made to look the same. see > http://api.drupal.org/api/function/conf_path/7. > > of course d6 still needs some tricks. While that's a great feature it doesn't fix this featurebug, it just provides another workaround for when it breaks and for those with foresight. Bevan/ From kathleen at ceardach.com Wed Jul 15 22:15:22 2009 From: kathleen at ceardach.com (Kathleen Murtagh) Date: Wed, 15 Jul 2009 18:15:22 -0400 Subject: [development] Files table includes file_directory_path In-Reply-To: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> Message-ID: <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> On Wed, Jul 15, 2009 at 5:54 PM, Bevan Rudge wrote: > At CivicActions we have a tool (pushdb --xFix) that fixes the paths in > the files directory and elsewhere in the db, which we run when copying > an instance of the site to a staging environment. However this > approach is becoming unsustainable and we are considering using a > separate instances of Drupal core in each and every staging > environment so that they all use sites/default. > > What this means is that much of the time this featurebug is such a > PITA that Drupal's multisite features don't work for staging > environments. In my own sandbox I don't use multisite for staging > environments at all, because of this issue, Do others? > I don't use multisite for managing dev, staging and production environments. In my workflow, it would be *more* complicated to use this method. I put the entirety of Drupal core into version control and deploy working spaces straight from version control. This makes it much easier to control exactly what and when code is pushed to production, and enable the ability navigate through the history to find sources of bugs. The only time I use multisite is for actual separate, yet integrated websites. The most common use for me are multiple websites that share tables, like the user-related tables. -------------- next part -------------- An HTML attachment was scrubbed... URL: From postmaster at boxbe.com Thu Jul 16 11:23:59 2009 From: postmaster at boxbe.com (postmaster at boxbe.com) Date: Thu, 16 Jul 2009 04:23:59 -0700 (PDT) Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? (Action Required) Message-ID: <1718438014.18218.1247743439199.JavaMail.prod@app004.boxbe.com> Hello ufuk bayburt, This message serves as notification that you will not receive any more courtesy notices from our members for two days. Messages you have sent will remain in a lower priority queue for our member to review at their leisure. Future messages will be more likely to be viewed if you are on our member's priority Guest List. Thank you, bharanikumariyerphp at gmail.com About Boxbe This courtesy notice is part of a free service to make email more reliable and useful. Boxbe (http://www.boxbe.com) uses your existing social network and that of your friends to keep your inbox clean and make sure you receive email from people who matter to you. Boxbe: Say Goodbye to Email Overload Visit http://www.boxbe.com/how-it-works?tc=229711722_1448946350 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: ufuk bayburt Subject: Re: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? Date: Wed, 15 Jul 2009 19:02:38 +0300 Size: 4734 URL: From lstroobant at gmail.com Thu Jul 16 12:49:06 2009 From: lstroobant at gmail.com (Luc Stroobant) Date: Thu, 16 Jul 2009 14:49:06 +0200 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <1247670561.4224.42.camel@clemens-laptop.dev> References: <1247670561.4224.42.camel@clemens-laptop.dev> Message-ID: <4A5F21C2.8060008@gmail.com> Clemens Tolboom wrote: > Having a development test acceptance and production environment it's a > drag when moving the production database and files to an acceptance or > development environment. > > One has to update the files database table and more tables or do > trickery with symlinks to get the site running clean. > > If we could make the filepath in the files table relative to > the /admin/settings/file-system path the real files are relocatable > without pain. Just do a db load and a rsync to get the files and change > the dmin/settings/file-system path. > > What do you think? Did I miss something important? On *nix you can easily workaround this problem by creating your site directory as sites/sitename and adding the actual urls as symlinks So you get something as directory: mysite link: www.mysite.com -> mysite link: dev.mysite.com -> mysite entries in the files table will always look like sites/mysite/files/file.ext and are the same for dev and prod... Luc From earnie at users.sourceforge.net Thu Jul 16 13:40:45 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 16 Jul 2009 13:40:45 +0000 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <4A5F21C2.8060008@gmail.com> References: <1247670561.4224.42.camel@clemens-laptop.dev> <4A5F21C2.8060008@gmail.com> Message-ID: <20090716134045.19554d1q2rugroow@mail.siebunlimited.com> Quoting Luc Stroobant : > Clemens Tolboom wrote: >> Having a development test acceptance and production environment it's a >> drag when moving the production database and files to an acceptance or >> development environment. >> >> One has to update the files database table and more tables or do >> trickery with symlinks to get the site running clean. >> >> If we could make the filepath in the files table relative to >> the /admin/settings/file-system path the real files are relocatable >> without pain. Just do a db load and a rsync to get the files and change >> the dmin/settings/file-system path. >> >> What do you think? Did I miss something important? > > On *nix you can easily workaround this problem by creating your site > directory as sites/sitename and adding the actual urls as symlinks > > So you get something as > > directory: mysite > link: www.mysite.com -> mysite > link: dev.mysite.com -> mysite > > entries in the files table will always look like sites/mysite/files/file.ext > and are the same for dev and prod... > And on windows junction www.mysite.com mysite junction dev.mysite.com mysite -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From mistknight at gmail.com Thu Jul 16 13:50:20 2009 From: mistknight at gmail.com (Ashraf Amayreh) Date: Thu, 16 Jul 2009 16:50:20 +0300 Subject: [development] Files table includes file_directory_path In-Reply-To: <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> Message-ID: Storing a file's path which may change in the future inside the database is a bug no matter what the use case is. I had once developed a site and then decided to move the files from sites/default/ to sites// in order to create a new site using the same installation and was very surprised at seeing this bug. The path is stored in the files and users table (for profile pics) I believe. On Thu, Jul 16, 2009 at 1:15 AM, Kathleen Murtagh wrote: > On Wed, Jul 15, 2009 at 5:54 PM, Bevan Rudge wrote: > >> At CivicActions we have a tool (pushdb --xFix) that fixes the paths in >> the files directory and elsewhere in the db, which we run when copying >> an instance of the site to a staging environment. However this >> approach is becoming unsustainable and we are considering using a >> separate instances of Drupal core in each and every staging >> environment so that they all use sites/default. >> >> What this means is that much of the time this featurebug is such a >> PITA that Drupal's multisite features don't work for staging >> environments. In my own sandbox I don't use multisite for staging >> environments at all, because of this issue, Do others? >> > > I don't use multisite for managing dev, staging and production > environments. In my workflow, it would be *more* complicated to use this > method. I put the entirety of Drupal core into version control and deploy > working spaces straight from version control. This makes it much easier to > control exactly what and when code is pushed to production, and enable the > ability navigate through the history to find sources of bugs. > > The only time I use multisite is for actual separate, yet integrated > websites. The most common use for me are multiple websites that share > tables, like the user-related tables. > -- Ashraf Amayreh http://aamayreh.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mistknight at gmail.com Thu Jul 16 13:57:37 2009 From: mistknight at gmail.com (Ashraf Amayreh) Date: Thu, 16 Jul 2009 16:57:37 +0300 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <20090716134045.19554d1q2rugroow@mail.siebunlimited.com> References: <1247670561.4224.42.camel@clemens-laptop.dev> <4A5F21C2.8060008@gmail.com> <20090716134045.19554d1q2rugroow@mail.siebunlimited.com> Message-ID: I don't really understand why the files are not just stored relative to the files folder rather than the site root. That way, changing the location of the files folder would only entail changing the file path inside the administration. When retrieving file paths the function doing that could simply call file_directory_path() and append the filepath from the database. Isn't this how it should standardly be dealt with, or did I miss something? AA On Thu, Jul 16, 2009 at 4:40 PM, Earnie Boyd wrote: > Quoting Luc Stroobant : > > Clemens Tolboom wrote: >> >>> Having a development test acceptance and production environment it's a >>> drag when moving the production database and files to an acceptance or >>> development environment. >>> >>> One has to update the files database table and more tables or do >>> trickery with symlinks to get the site running clean. >>> >>> If we could make the filepath in the files table relative to >>> the /admin/settings/file-system path the real files are relocatable >>> without pain. Just do a db load and a rsync to get the files and change >>> the dmin/settings/file-system path. >>> >>> What do you think? Did I miss something important? >>> >> >> On *nix you can easily workaround this problem by creating your site >> directory as sites/sitename and adding the actual urls as symlinks >> >> So you get something as >> >> directory: mysite >> link: www.mysite.com -> mysite >> link: dev.mysite.com -> mysite >> >> entries in the files table will always look like >> sites/mysite/files/file.ext >> and are the same for dev and prod... >> >> > And on windows > > junction www.mysite.com mysite > junction dev.mysite.com mysite > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ > > > -- Ashraf Amayreh http://aamayreh.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb at 2bits.com Thu Jul 16 14:16:14 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Thu, 16 Jul 2009 10:16:14 -0400 Subject: [development] Files table includes file_directory_path In-Reply-To: References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> Message-ID: <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> As others said, you either use symlinks (which forces you to have two directories per site), or the new sites.php feature of Drupal 7. Using that, you can have a contrived name for each site (even site1, site2, or an md5 hash for each site), and redirect the site in it. The trick is to not use sites/default for each site from now on, and only use a unique identifier. That identifier can be the same when you develop the site, and remains the same when you deploy the site. On Thu, Jul 16, 2009 at 9:50 AM, Ashraf Amayreh wrote: > Storing a file's path which may change in the future inside the database is > a bug no matter what the use case is. > > I had once developed a site and then decided to move the files from > sites/default/ to sites// in order to create a new site using > the same installation and was very surprised at seeing this bug. The path is > stored in the files and users table (for profile pics) I believe. > > > On Thu, Jul 16, 2009 at 1:15 AM, Kathleen Murtagh wrote: > >> On Wed, Jul 15, 2009 at 5:54 PM, Bevan Rudge wrote: >> >>> At CivicActions we have a tool (pushdb --xFix) that fixes the paths in >>> the files directory and elsewhere in the db, which we run when copying >>> an instance of the site to a staging environment. However this >>> approach is becoming unsustainable and we are considering using a >>> separate instances of Drupal core in each and every staging >>> environment so that they all use sites/default. >>> >>> What this means is that much of the time this featurebug is such a >>> PITA that Drupal's multisite features don't work for staging >>> environments. In my own sandbox I don't use multisite for staging >>> environments at all, because of this issue, Do others? >>> >> >> I don't use multisite for managing dev, staging and production >> environments. In my workflow, it would be *more* complicated to use this >> method. I put the entirety of Drupal core into version control and deploy >> working spaces straight from version control. This makes it much easier to >> control exactly what and when code is pushed to production, and enable the >> ability navigate through the history to find sources of bugs. >> >> The only time I use multisite is for actual separate, yet integrated >> websites. The most common use for me are multiple websites that share >> tables, like the user-related tables. >> > > > > -- > Ashraf Amayreh > http://aamayreh.org > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb at 2bits.com Thu Jul 16 14:18:18 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Thu, 16 Jul 2009 10:18:18 -0400 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: References: <1247670561.4224.42.camel@clemens-laptop.dev> <4A5F21C2.8060008@gmail.com> <20090716134045.19554d1q2rugroow@mail.siebunlimited.com> Message-ID: <4a9fdc630907160718g8f8e97erf3fd98a90ae7a416@mail.gmail.com> Even if you solve the issue with drupal generated paths (e.g. the ones stored in the files table), you still have a lot of stuff that is in HTML and needs to change (e.g. tags, ...etc. which are not easily changed. So having a good value from the start is important. On Thu, Jul 16, 2009 at 9:57 AM, Ashraf Amayreh wrote: > I don't really understand why the files are not just stored relative to the > files folder rather than the site root. > > That way, changing the location of the files folder would only entail > changing the file path inside the administration. > > When retrieving file paths the function doing that could simply call > file_directory_path() and append the filepath from the database. Isn't this > how it should standardly be dealt with, or did I miss something? > > AA > > > On Thu, Jul 16, 2009 at 4:40 PM, Earnie Boyd > wrote: > >> Quoting Luc Stroobant : >> >> Clemens Tolboom wrote: >>> >>>> Having a development test acceptance and production environment it's a >>>> drag when moving the production database and files to an acceptance or >>>> development environment. >>>> >>>> One has to update the files database table and more tables or do >>>> trickery with symlinks to get the site running clean. >>>> >>>> If we could make the filepath in the files table relative to >>>> the /admin/settings/file-system path the real files are relocatable >>>> without pain. Just do a db load and a rsync to get the files and change >>>> the dmin/settings/file-system path. >>>> >>>> What do you think? Did I miss something important? >>>> >>> >>> On *nix you can easily workaround this problem by creating your site >>> directory as sites/sitename and adding the actual urls as symlinks >>> >>> So you get something as >>> >>> directory: mysite >>> link: www.mysite.com -> mysite >>> link: dev.mysite.com -> mysite >>> >>> entries in the files table will always look like >>> sites/mysite/files/file.ext >>> and are the same for dev and prod... >>> >>> >> And on windows >> >> junction www.mysite.com mysite >> junction dev.mysite.com mysite >> >> -- >> Earnie >> -- http://r-feed.com/ -- http://for-my-kids.com/ >> -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ >> >> >> > > > -- > Ashraf Amayreh > http://aamayreh.org > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From hovercrafter at earthlink.net Thu Jul 16 14:19:02 2009 From: hovercrafter at earthlink.net (Jamie Holly) Date: Thu, 16 Jul 2009 10:19:02 -0400 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: References: <1247670561.4224.42.camel@clemens-laptop.dev> <4A5F21C2.8060008@gmail.com> <20090716134045.19554d1q2rugroow@mail.siebunlimited.com> Message-ID: <4A5F36D6.6030202@earthlink.net> There's also benefits to it being absolute. If my /files folder is becoming bloated and I decide I want to start a fresh files directory all I have to do is change the file path inside admin. All my old file paths will still be intact. Making it relative would then break the archived /files path. If moving the file system were actually that common of an occurrence then I could see this being a big problem. But to do things like moving from a development/staging area to a production area a simple query does the trick: UPDATE files SET filepath=REPLACE(filepath, '/sites/www.oldserver.com/file', '/sites/www.newserver.com/file'); User pictures: UPDATE users SET picture=REPLACE(picture, '/sites/www.oldserver.com/file', '/sites/www.newserver.com/file'); This has never been a problem for me when it comes to having to move a file system. Jamie Holly http://www.intoxination.net http://www.hollyit.net Ashraf Amayreh wrote: > I don't really understand why the files are not just stored relative > to the files folder rather than the site root. > > That way, changing the location of the files folder would only entail > changing the file path inside the administration. > > When retrieving file paths the function doing that could simply call > file_directory_path() and append the filepath from the database. Isn't > this how it should standardly be dealt with, or did I miss something? > > AA > > On Thu, Jul 16, 2009 at 4:40 PM, Earnie Boyd > > > wrote: > > Quoting Luc Stroobant >: > > Clemens Tolboom wrote: > > Having a development test acceptance and production > environment it's a > drag when moving the production database and files to an > acceptance or > development environment. > > One has to update the files database table and more tables > or do > trickery with symlinks to get the site running clean. > > If we could make the filepath in the files table relative to > the /admin/settings/file-system path the real files are > relocatable > without pain. Just do a db load and a rsync to get the > files and change > the dmin/settings/file-system path. > > What do you think? Did I miss something important? > > > On *nix you can easily workaround this problem by creating > your site directory as sites/sitename and adding the actual > urls as symlinks > > So you get something as > > directory: mysite > link: www.mysite.com -> mysite > link: dev.mysite.com -> mysite > > entries in the files table will always look like > sites/mysite/files/file.ext > and are the same for dev and prod... > > > And on windows > > junction www.mysite.com mysite > junction dev.mysite.com mysite > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ > > > > > > -- > Ashraf Amayreh > http://aamayreh.org From drewish at katherinehouse.com Thu Jul 16 14:55:31 2009 From: drewish at katherinehouse.com (andrew morton) Date: Thu, 16 Jul 2009 10:55:31 -0400 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: References: <1247670561.4224.42.camel@clemens-laptop.dev> <4A5F21C2.8060008@gmail.com> <20090716134045.19554d1q2rugroow@mail.siebunlimited.com> Message-ID: On Thu, Jul 16, 2009 at 9:57 AM, Ashraf Amayreh wrote: > I don't really understand why the files are not just stored relative to the > files folder rather than the site root. > > That way, changing the location of the files folder would only entail > changing the file path inside the administration. > > When retrieving file paths the function doing that could simply call > file_directory_path() and append the filepath from the database. Isn't this > how it should standardly be dealt with, or did I miss something? Not to pick on you specifically, but if you'd read through the issue that ufuk linked to in the very first reply to this thread (http://drupal.org/node/366464) you'll find plenty of discussion about the complications that prevent this from being such a "simple" change. Can we please move this discussion over to the issue queue? andrew From larry at garfieldtech.com Thu Jul 16 15:18:30 2009 From: larry at garfieldtech.com (larry at garfieldtech.com) Date: Thu, 16 Jul 2009 10:18:30 -0500 Subject: [development] Files table includes file_directory_path In-Reply-To: <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> Message-ID: <4A5F44C6.80609@garfieldtech.com> sites.php was actually added specifically for this sort of issue, because the sites/ directory structure was too brittle. Of course, for the files directories in particular I have long since dropped using sites//files in favor of files/, which sidesteps the issue entirely. That doesn't need to change no matter what server the site moves to. Khalid Baheyeldin wrote: > As others said, you either use symlinks (which forces you to have two > directories per site), or the new sites.php feature of Drupal 7. > > Using that, you can have a contrived name for each site (even site1, > site2, or an md5 hash for each site), and redirect the site in it. > > The trick is to not use sites/default for each site from now on, and > only use a unique identifier. That identifier can be the same when you > develop the site, and remains the same when you deploy the site. > > On Thu, Jul 16, 2009 at 9:50 AM, Ashraf Amayreh > wrote: > > Storing a file's path which may change in the future inside the > database is a bug no matter what the use case is. > > I had once developed a site and then decided to move the files from > sites/default/ to sites// in order to create a new site > using the same installation and was very surprised at seeing this > bug. The path is stored in the files and users table (for profile > pics) I believe. > > > On Thu, Jul 16, 2009 at 1:15 AM, Kathleen Murtagh > > wrote: > > On Wed, Jul 15, 2009 at 5:54 PM, Bevan Rudge > > wrote: > > At CivicActions we have a tool (pushdb --xFix) that fixes > the paths in > the files directory and elsewhere in the db, which we run > when copying > an instance of the site to a staging environment. However this > approach is becoming unsustainable and we are considering > using a > separate instances of Drupal core in each and every staging > environment so that they all use sites/default. > > What this means is that much of the time this featurebug is > such a > PITA that Drupal's multisite features don't work for staging > environments. In my own sandbox I don't use multisite for > staging > environments at all, because of this issue, Do others? > > > I don't use multisite for managing dev, staging and production > environments. In my workflow, it would be *more* complicated to > use this method. I put the entirety of Drupal core into version > control and deploy working spaces straight from version > control. This makes it much easier to control exactly what and > when code is pushed to production, and enable the ability > navigate through the history to find sources of bugs. > > The only time I use multisite is for actual separate, yet > integrated websites. The most common use for me are multiple > websites that share tables, like the user-related tables. > > > > > -- > Ashraf Amayreh > http://aamayreh.org > > > > > -- > Khalid M. Baheyeldin > 2bits.com , Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci From enboig at gmail.com Thu Jul 16 15:40:29 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Thu, 16 Jul 2009 17:40:29 +0200 Subject: [development] problem with custom date and timezones Message-ID: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> I have created a custom node type. I have a date field which I created as int in order to use it in views, being able to sort it, format, etc.... My problem right now is that when inserting a node with one date, it appears as "day before" when viewing the node. How should I save it to avoid this problem? My form looks like $arrayF=getdate(($node->data_paper>0 ? $node->data_paper : time())); $arrayF['month']=$arrayF['mon']; $arrayF['day']=$arrayF['mday']; $form['data_paper_array'] = array( '#type' => 'date', '#title' => 'Data Factura', '#default_value' => $arrayF, '#required' => TRUE, '#weight' => -9, ); My insert query looks like $dateF=$node->data_paper_array; $factura_tmsp=mktime(0,0,0,$dateF['month'],$dateF['day'],$dateF['year']);// $date['year']."-".$date['month']."-".$date['day']; $node->data_paper=$factura_tmsp; db_query("INSERT ......); And my theme function: $output.="
  • Data Factura: ".format_date($node->data_paper,'small')."
  • "; Any hint/advice? Thanks -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From enboig at gmail.com Fri Jul 17 10:42:25 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Fri, 17 Jul 2009 12:42:25 +0200 Subject: [development] problem with custom date and timezones In-Reply-To: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> References: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> Message-ID: <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> Making some research my problem is with format date: $node->data_assentament -> 1247781600 date("d-m-Y H:i", $node->data_assentament) -> 17-07-2009 00:00 format_date($node->data_assentament,'medium') -> Dij, 07/16/2009 - 22:00 (I need the date in dd/mm/YYYY format) Should I avoid format_date() or there is a better way to solve this? On Thu, Jul 16, 2009 at 5:40 PM, Llu?s wrote: > I have created a custom node type. I have a date field which I created > as int in order to use it in views, being able to sort it, format, > etc.... > > My problem right now is that when inserting a node with one date, it > appears as "day before" when viewing the node. How should I save it to > avoid this problem? > > My form looks like > ?$arrayF=getdate(($node->data_paper>0 ? $node->data_paper : time())); > ?$arrayF['month']=$arrayF['mon']; > ?$arrayF['day']=$arrayF['mday']; > ?$form['data_paper_array'] = array( > ? ?'#type' => 'date', > ? ?'#title' => 'Data Factura', > ? ?'#default_value' => $arrayF, > ? ?'#required' => TRUE, > ? ?'#weight' => -9, > ?); > > My insert query looks like > ?$dateF=$node->data_paper_array; > ?$factura_tmsp=mktime(0,0,0,$dateF['month'],$dateF['day'],$dateF['year']);// > ?$date['year']."-".$date['month']."-".$date['day']; > ?$node->data_paper=$factura_tmsp; > ?db_query("INSERT ......); > > And my theme function: > ?$output.="
  • Data Factura: > ".format_date($node->data_paper,'small')."
  • "; > > > Any hint/advice? Thanks > > -- > *La vida ?s com una taronja, qu? esperes a exprimir-la? > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From clemens at build2be.nl Fri Jul 17 10:26:27 2009 From: clemens at build2be.nl (Clemens Tolboom) Date: Fri, 17 Jul 2009 12:26:27 +0200 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <888304040907150902j2fd4a8b0g57a9e8f838148dcc@mail.gmail.com> References: <1247670561.4224.42.camel@clemens-laptop.dev> <888304040907150902j2fd4a8b0g57a9e8f838148dcc@mail.gmail.com> Message-ID: <1247826387.4174.10.camel@clemens-laptop.dev> Thanks for the link > See http://drupal.org/node/366464. Fiddling with http://api.drupal.org/api/function/conf_path/7 is off course a solution but it misses the 'it works out of the box' wish. But maybe I'm just too lazy ;) I now use sites/default/files more and skip the multi site option for making staging more workable. Production is not always under control ie when having a NFS mounted files directory improper sym linked. From hovercrafter at earthlink.net Fri Jul 17 11:54:52 2009 From: hovercrafter at earthlink.net (Jamie Holly) Date: Fri, 17 Jul 2009 07:54:52 -0400 Subject: [development] problem with custom date and timezones In-Reply-To: <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> References: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> Message-ID: <4A60668C.4040203@earthlink.net> The date you are setting is in the GMT timezone. When you use format_date, it will add the timezone offset to that date, which is why you're getting the different dates. To get around that do this set 'custom' for format_date's second argument then the third argument is the pattern. The forth argument is the timezone offset. Set that to 0 and it won't calculate an offset (leave it as null and it will use Drupal's offset variable, which you set in admin). format_date($node->data_assentament,'custom', 'd-m-Y H:i',0) Jamie Holly http://www.intoxination.net http://www.hollyit.net Llu?s wrote: > Making some research my problem is with format date: > > $node->data_assentament -> 1247781600 > date("d-m-Y H:i", $node->data_assentament) -> 17-07-2009 00:00 > format_date($node->data_assentament,'medium') -> Dij, 07/16/2009 - 22:00 > > (I need the date in dd/mm/YYYY format) > > Should I avoid format_date() or there is a better way to solve this? > > > From sfreach at gmail.com Fri Jul 17 12:11:30 2009 From: sfreach at gmail.com (Seth Freach) Date: Fri, 17 Jul 2009 08:11:30 -0400 Subject: [development] problem with custom date and timezones In-Reply-To: <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> References: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> Message-ID: <4A606A72.6090904@gmail.com> Llu?s, time() will return a value relative to the epoch, which is epicentered in GMT. date() takes that value and returns a local time based on it. IE, date() knows about the computer's timezone and takes it into account. Drupal's format_date() function uses gmdate() internally, which, unlike date(), does not do local timezone offsetting. gmdate() returns the formated date string in GMT. The reason format_date() does this is because it wants to return a time that has meaning to the individual user's location, which is not necessarily the computer's location, nor are all users always in the same timezone. Drupal does the timezone offsetting itself to allow a system default timezone and individual user configurable timezones too. Double check your Drupal timezone settings at q=admin/settings/date-time and possibly your user timezone settings at q=user/$uid/edit Seth Llu?s wrote: > Making some research my problem is with format date: > > $node->data_assentament -> 1247781600 > date("d-m-Y H:i", $node->data_assentament) -> 17-07-2009 00:00 > format_date($node->data_assentament,'medium') -> Dij, 07/16/2009 - 22:00 > > (I need the date in dd/mm/YYYY format) > > Should I avoid format_date() or there is a better way to solve this? > > On Thu, Jul 16, 2009 at 5:40 PM, Llu?s wrote: > >> I have created a custom node type. I have a date field which I created >> as int in order to use it in views, being able to sort it, format, >> etc.... >> >> My problem right now is that when inserting a node with one date, it >> appears as "day before" when viewing the node. How should I save it to >> avoid this problem? >> >> My form looks like >> $arrayF=getdate(($node->data_paper>0 ? $node->data_paper : time())); >> $arrayF['month']=$arrayF['mon']; >> $arrayF['day']=$arrayF['mday']; >> $form['data_paper_array'] = array( >> '#type' => 'date', >> '#title' => 'Data Factura', >> '#default_value' => $arrayF, >> '#required' => TRUE, >> '#weight' => -9, >> ); >> >> My insert query looks like >> $dateF=$node->data_paper_array; >> $factura_tmsp=mktime(0,0,0,$dateF['month'],$dateF['day'],$dateF['year']);// >> $date['year']."-".$date['month']."-".$date['day']; >> $node->data_paper=$factura_tmsp; >> db_query("INSERT ......); >> >> And my theme function: >> $output.="
  • Data Factura: >> ".format_date($node->data_paper,'small')."
  • "; >> >> >> Any hint/advice? Thanks >> >> -- >> *La vida ?s com una taronja, qu? esperes a exprimir-la? >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >> nom?s una vegada. >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From earnie at users.sourceforge.net Fri Jul 17 12:17:46 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Fri, 17 Jul 2009 12:17:46 +0000 Subject: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path? In-Reply-To: <1247826387.4174.10.camel@clemens-laptop.dev> References: <1247670561.4224.42.camel@clemens-laptop.dev> <888304040907150902j2fd4a8b0g57a9e8f838148dcc@mail.gmail.com> <1247826387.4174.10.camel@clemens-laptop.dev> Message-ID: <20090717121746.4125505r6jc9ngg0@mail.siebunlimited.com> Quoting Clemens Tolboom : > > Production is not always under control ie when having a NFS mounted > files directory improper sym linked. > True for larger companies but the symlinks discussed were directories within the sites/ directory. There should be no issue of improper symlink because the directories for the symlink live in the same directory as the symlink. E.G.: cd sites/ mkdir sample.com ln -s sample.com www.sample.com ln -s sample.com dev.sample.com I do this for sites that can be accessed by www.sample.com as well as sample.com. -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From enboig at gmail.com Fri Jul 17 12:53:40 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Fri, 17 Jul 2009 14:53:40 +0200 Subject: [development] problem with custom date and timezones In-Reply-To: <4A606A72.6090904@gmail.com> References: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> <4A606A72.6090904@gmail.com> Message-ID: <45a29f450907170553o30ea6ebdn7417c9883a80c587@mail.gmail.com> I have set timezone to UTC in admin/settings/date-time and no timezone for user. So my problems are: a) How do I have to store the date? is mktime(0,0,0,$month,$day,$year); correct? b) If I want to use the date in views, how should I store it in database? I use int(11) now c) How can retrieve $month, $day, $year to make the form again? On Fri, Jul 17, 2009 at 2:11 PM, Seth Freach wrote: > Llu?s, > > time() will return a value relative to the epoch, which is epicentered in > GMT. > date() takes that value and returns a local time based on it.? IE, date() > knows about the computer's timezone and takes it into account. > > Drupal's format_date() function uses gmdate() internally, which, unlike > date(), does not do local timezone offsetting. gmdate() returns the formated > date string in GMT.? The reason format_date() does this is because it wants > to return a time that has meaning to the individual user's location, which > is not necessarily the computer's location, nor are all users always in the > same timezone.? Drupal does the timezone offsetting itself to allow a system > default timezone and individual user configurable timezones too. > > Double check your Drupal timezone settings at q=admin/settings/date-time and > possibly your user timezone settings at q=user/$uid/edit > > Seth > > Llu?s wrote: > > Making some research my problem is with format date: > > $node->data_assentament -> 1247781600 > date("d-m-Y H:i", $node->data_assentament) -> 17-07-2009 00:00 > format_date($node->data_assentament,'medium') -> Dij, 07/16/2009 - 22:00 > > (I need the date in dd/mm/YYYY format) > > Should I avoid format_date() or there is a better way to solve this? > > On Thu, Jul 16, 2009 at 5:40 PM, Llu?s wrote: > > > I have created a custom node type. I have a date field which I created > as int in order to use it in views, being able to sort it, format, > etc.... > > My problem right now is that when inserting a node with one date, it > appears as "day before" when viewing the node. How should I save it to > avoid this problem? > > My form looks like > ?$arrayF=getdate(($node->data_paper>0 ? $node->data_paper : time())); > ?$arrayF['month']=$arrayF['mon']; > ?$arrayF['day']=$arrayF['mday']; > ?$form['data_paper_array'] = array( > ? ?'#type' => 'date', > ? ?'#title' => 'Data Factura', > ? ?'#default_value' => $arrayF, > ? ?'#required' => TRUE, > ? ?'#weight' => -9, > ?); > > My insert query looks like > ?$dateF=$node->data_paper_array; > ?$factura_tmsp=mktime(0,0,0,$dateF['month'],$dateF['day'],$dateF['year']);// > ?$date['year']."-".$date['month']."-".$date['day']; > ?$node->data_paper=$factura_tmsp; > ?db_query("INSERT ......); > > And my theme function: > ?$output.="
  • Data Factura: > ".format_date($node->data_paper,'small')."
  • "; > > > Any hint/advice? Thanks > > -- > *La vida ?s com una taronja, qu? esperes a exprimir-la? > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > > > > -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From sfreach at gmail.com Fri Jul 17 13:51:38 2009 From: sfreach at gmail.com (Seth Freach) Date: Fri, 17 Jul 2009 09:51:38 -0400 Subject: [development] problem with custom date and timezones In-Reply-To: <45a29f450907170553o30ea6ebdn7417c9883a80c587@mail.gmail.com> References: <45a29f450907160840q273c47d0j3ab3ae5462607c05@mail.gmail.com> <45a29f450907170342x58984ac7j8639c0e393bd372b@mail.gmail.com> <4A606A72.6090904@gmail.com> <45a29f450907170553o30ea6ebdn7417c9883a80c587@mail.gmail.com> Message-ID: <4A6081EA.4040804@gmail.com> a) mktime() will return a (GMT based) unix timestamp, but assumes that the params passed (namely, the 0 hour value) are local system time, thus they will be converted to GMT first. the gmmktime() function returns the same value format, but assumes that the params are already in GMT, and will not do any further timezone shifting relative to local system settings. You might want to play around with that function and GMT params. NB: this is all at the PHP level, below the Drupal application level. mktime() should work if your system's timezone offset is set to what you expect. Is this hosted account somewhere or a machine you control? roughly diagrammed: storage: mktime('local clock info') -> filters through local system timezone offset -> GMT based unix timestamp storage: gmmktime('GMT clock info') -> GMT based unix timestamp display: GMT based unix timestamp -> format_date(...) -> 'local clock info' b) storing dates is a design decision that you have to really evaluate from the start. int's and unix timestamps are a reasonable approach though. check out http://drupal.org/node/262066 & http://drupal.org/node/291799 for more info. The key with storing unix timestamps is to make sure that everything is stored in the db in a uniform timezone offset (ussually UTC). Understand how Drupal deals with timezone handling at the application layer and don't try to "outsmart" it at the PHP layer. c) if all date's have been stored uniformly as unix timestamps: $month = format_date($node->data_assentament, 'custom', 'm'); $day = format_date($node->data_assentament, 'custom', 'd'); $year = format_date($node->data_assentament, 'custom', 'Y'); The main idea here is that you have two layers of the application stack (PHP and Drupal) both trying to be smart about timezone handling, and each layer is undoing the other's efforts. You have to make one be authoritative and the other passive from an application design perspective. You will probably get the best results if you let Drupal be the authoritative layer when it comes to timezones. Seth Llu?s wrote: > I have set timezone to UTC in admin/settings/date-time and no timezone for user. > > So my problems are: > a) How do I have to store the date? is mktime(0,0,0,$month,$day,$year); correct? > b) If I want to use the date in views, how should I store it in > database? I use int(11) now > c) How can retrieve $month, $day, $year to make the form again? > > > On Fri, Jul 17, 2009 at 2:11 PM, Seth Freach wrote: > >> Llu?s, >> >> time() will return a value relative to the epoch, which is epicentered in >> GMT. >> date() takes that value and returns a local time based on it. IE, date() >> knows about the computer's timezone and takes it into account. >> >> Drupal's format_date() function uses gmdate() internally, which, unlike >> date(), does not do local timezone offsetting. gmdate() returns the formated >> date string in GMT. The reason format_date() does this is because it wants >> to return a time that has meaning to the individual user's location, which >> is not necessarily the computer's location, nor are all users always in the >> same timezone. Drupal does the timezone offsetting itself to allow a system >> default timezone and individual user configurable timezones too. >> >> Double check your Drupal timezone settings at q=admin/settings/date-time and >> possibly your user timezone settings at q=user/$uid/edit >> >> Seth >> >> Llu?s wrote: >> >> Making some research my problem is with format date: >> >> $node->data_assentament -> 1247781600 >> date("d-m-Y H:i", $node->data_assentament) -> 17-07-2009 00:00 >> format_date($node->data_assentament,'medium') -> Dij, 07/16/2009 - 22:00 >> >> (I need the date in dd/mm/YYYY format) >> >> Should I avoid format_date() or there is a better way to solve this? >> >> On Thu, Jul 16, 2009 at 5:40 PM, Llu?s wrote: >> >> >> I have created a custom node type. I have a date field which I created >> as int in order to use it in views, being able to sort it, format, >> etc.... >> >> My problem right now is that when inserting a node with one date, it >> appears as "day before" when viewing the node. How should I save it to >> avoid this problem? >> >> My form looks like >> $arrayF=getdate(($node->data_paper>0 ? $node->data_paper : time())); >> $arrayF['month']=$arrayF['mon']; >> $arrayF['day']=$arrayF['mday']; >> $form['data_paper_array'] = array( >> '#type' => 'date', >> '#title' => 'Data Factura', >> '#default_value' => $arrayF, >> '#required' => TRUE, >> '#weight' => -9, >> ); >> >> My insert query looks like >> $dateF=$node->data_paper_array; >> $factura_tmsp=mktime(0,0,0,$dateF['month'],$dateF['day'],$dateF['year']);// >> $date['year']."-".$date['month']."-".$date['day']; >> $node->data_paper=$factura_tmsp; >> db_query("INSERT ......); >> >> And my theme function: >> $output.="
  • Data Factura: >> ".format_date($node->data_paper,'small')."
  • "; >> >> >> Any hint/advice? Thanks >> >> -- >> *La vida ?s com una taronja, qu? esperes a exprimir-la? >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >> nom?s una vegada. >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. >> >> >> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomi at vacilando.org Fri Jul 17 16:33:13 2009 From: tomi at vacilando.org (=?UTF-8?B?VG9tw6HFoSBGw7xsw7ZwcCAodmFjaWxhbmRvLm9yZyk=?=) Date: Fri, 17 Jul 2009 18:33:13 +0200 Subject: [development] How to disable any block or sidebar from module Message-ID: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> Hi, I cannot find a generic way how to disable a sidebar programmatically. In my module, if some conditions are met, I would like to make sure that the whole sidebar (or any blocks in it) are not rendered at all, regardless of the theme. Could somebody advise, please? Sorry if it's obvious.. Thanks, *vacilando* -- Tom?? J. F?l?pp http://www.vacilando.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb at 2bits.com Fri Jul 17 16:37:52 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Fri, 17 Jul 2009 12:37:52 -0400 Subject: [development] Files table includes file_directory_path In-Reply-To: References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> Message-ID: <4a9fdc630907170937x77631b2r430138ffeec2565d@mail.gmail.com> On Thu, Jul 16, 2009 at 10:50 AM, Adrian Rossouw wrote: > > On 16 Jul 2009, at 4:16 PM, Khalid Baheyeldin wrote: > > As others said, you either use symlinks (which forces you to have two >> directories per site), or the new sites.php feature of Drupal 7. >> >> Using that, you can have a contrived name for each site (even site1, >> site2, or an md5 hash for each site), and redirect the site in it. >> >> The trick is to not use sites/default for each site from now on, and only >> use a unique identifier. That identifier can be the same when you develop >> the site, and remains the same when you deploy the site. >> > > Just because a work around exists doesn't mean the current behaviour isn't > wrong. > > What are the reasons for the files not being relative ? > Relative or absolute can be debated. I think that relative is more elegant and more portable. But this is for stuff in the files table only. Once you publish a site and you reference static things in it as you are stuck with that path. The sites.php method avoids this. You can have sites/12345/files/blah.jpg, and it is no longer dependent on the domain name. Development and testing can happen to the same path. So, yes, I agree that relative is better, but it does not solve all the issues that sites.php does. -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From earnie at users.sourceforge.net Fri Jul 17 18:01:45 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Fri, 17 Jul 2009 18:01:45 +0000 Subject: [development] How to disable any block or sidebar from module In-Reply-To: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> References: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> Message-ID: <20090717180145.94775oh50p40en40@mail.siebunlimited.com> Quoting "Tom?? F?l?pp (vacilando.org)" : > Hi, > > I cannot find a generic way how to disable a sidebar programmatically. > > In my module, if some conditions are met, I would like to make sure that the > whole sidebar (or any blocks in it) are not rendered at all, regardless of > the theme. > > Could somebody advise, please? Sorry if it's obvious.. > I think you want to use hook_block()[1]. [1] http://api.drupal.org/api/function/hook_block -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From kb at 2bits.com Fri Jul 17 18:47:13 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Fri, 17 Jul 2009 14:47:13 -0400 Subject: [development] How to disable any block or sidebar from module In-Reply-To: <20090717180145.94775oh50p40en40@mail.siebunlimited.com> References: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> <20090717180145.94775oh50p40en40@mail.siebunlimited.com> Message-ID: <4a9fdc630907171147i159bd40dyf429a9f3b522601d@mail.gmail.com> On Fri, Jul 17, 2009 at 2:01 PM, Earnie Boyd wrote: > Quoting "Tom?? F?l?pp (vacilando.org)" : > > Hi, >> >> I cannot find a generic way how to disable a sidebar programmatically. >> >> In my module, if some conditions are met, I would like to make sure that >> the >> whole sidebar (or any blocks in it) are not rendered at all, regardless of >> the theme. >> >> Could somebody advise, please? Sorry if it's obvious.. >> >> > I think you want to use hook_block()[1]. > > [1] http://api.drupal.org/api/function/hook_block > He is talking about the whole sidebar, hence a region, not a block. hook_block() will not help here. In the past we have done it by setting the visibility PHP code for each block in a given region, and that would make the entire sidebar invisible if the conditions are met. It is a pain if you have more than a few blocks in that region (right side bar for example). You said you don't want it in the theme, but it would be a simple change in page.tpl.php The other option is to use preprocess_block(). Perhaps something like this in template.php region = 'right') { if (!custom_visibility_function()) { unset($variables['block']; } } } ?> Still in the theme though. > > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ > > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From killshot91 at comcast.net Fri Jul 17 18:56:04 2009 From: killshot91 at comcast.net (Steve Edwards) Date: Fri, 17 Jul 2009 11:56:04 -0700 Subject: [development] How to disable any block or sidebar from module In-Reply-To: <4a9fdc630907171147i159bd40dyf429a9f3b522601d@mail.gmail.com> References: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> <20090717180145.94775oh50p40en40@mail.siebunlimited.com> <4a9fdc630907171147i159bd40dyf429a9f3b522601d@mail.gmail.com> Message-ID: <4A60C944.9010207@comcast.net> What about using a preprocess function in a module to unset the sidebar region variable if the condition is met? Steve Khalid Baheyeldin wrote: > > > On Fri, Jul 17, 2009 at 2:01 PM, Earnie Boyd > > > wrote: > > Quoting "Tom?? F?l?pp (vacilando.org )" > >: > > Hi, > > I cannot find a generic way how to disable a sidebar > programmatically. > > In my module, if some conditions are met, I would like to make > sure that the > whole sidebar (or any blocks in it) are not rendered at all, > regardless of > the theme. > > Could somebody advise, please? Sorry if it's obvious.. > > > I think you want to use hook_block()[1]. > > [1] http://api.drupal.org/api/function/hook_block > > > He is talking about the whole sidebar, hence a region, not a block. > hook_block() will not help here. > > In the past we have done it by setting the visibility PHP code for > each block > in a given region, and that would make the entire sidebar invisible if > the > conditions are met. It is a pain if you have more than a few blocks in > that > region (right side bar for example). > > You said you don't want it in the theme, but it would be a simple > change in > page.tpl.php > > > > > > > > The other option is to use preprocess_block(). Perhaps something like > this in > template.php > > function phptemplate_preprocess_block(&$variables) { > if ($variables['block']->region = 'right') { > if (!custom_visibility_function()) { > unset($variables['block']; > } > } > } > ?> > > Still in the theme though. > > > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ > > > > > -- > Khalid M. Baheyeldin > 2bits.com , Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From drupal at owenbarton.com Fri Jul 17 19:01:21 2009 From: drupal at owenbarton.com (Owen Barton) Date: Fri, 17 Jul 2009 12:01:21 -0700 Subject: [development] How to disable any block or sidebar from module In-Reply-To: <4A60C944.9010207@comcast.net> References: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> <20090717180145.94775oh50p40en40@mail.siebunlimited.com> <4a9fdc630907171147i159bd40dyf429a9f3b522601d@mail.gmail.com> <4A60C944.9010207@comcast.net> Message-ID: <44dd1dd30907171201u587b3f1ag947c21e077bcfe3@mail.gmail.com> Here is some code that does a similar thing in preprocess page, to allow you to override the entire sidebar with a CCK text field (if non-empty). You could equally just conditionally unset($vars['right']) instead here. function MYTHEME_preprocess_page(&$vars, $hook) { // The Right Sidebar override uses a CCK field which, when populated, replaces the right sidebar instead of the existing // sidebar right content. if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(2) && isset($vars['node']->field_right_sidebar_override[0])) { $trimmed = trim(strip_tags($vars['node']->field_right_sidebar_override[0]['safe'], '')); if (!empty($trimmed)) { $vars['right'] = $vars['node']->field_right_sidebar_override[0]['safe']; } } } - O On Fri, Jul 17, 2009 at 11:56 AM, Steve Edwards wrote: > What about using a preprocess function in a module to unset the sidebar > region variable if the condition is met? > > Steve > > Khalid Baheyeldin wrote: > > > > On Fri, Jul 17, 2009 at 2:01 PM, Earnie Boyd > wrote: > >> Quoting "Tom?? F?l?pp (vacilando.org)" : >> >> Hi, >>> >>> I cannot find a generic way how to disable a sidebar programmatically. >>> >>> In my module, if some conditions are met, I would like to make sure that >>> the >>> whole sidebar (or any blocks in it) are not rendered at all, regardless >>> of >>> the theme. >>> >>> Could somebody advise, please? Sorry if it's obvious.. >>> >>> >> I think you want to use hook_block()[1]. >> >> [1] http://api.drupal.org/api/function/hook_block >> > > He is talking about the whole sidebar, hence a region, not a block. > hook_block() will not help here. > > In the past we have done it by setting the visibility PHP code for each > block > in a given region, and that would make the entire sidebar invisible if the > conditions are met. It is a pain if you have more than a few blocks in that > region (right side bar for example). > > You said you don't want it in the theme, but it would be a simple change in > page.tpl.php > > > > > > > > The other option is to use preprocess_block(). Perhaps something like this > in > template.php > > function phptemplate_preprocess_block(&$variables) { > if ($variables['block']->region = 'right') { > if (!custom_visibility_function()) { > unset($variables['block']; > } > } > } > ?> > > Still in the theme though. > >> >> >> -- >> Earnie >> -- http://r-feed.com/ -- http://for-my-kids.com/ >> -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ >> >> > > > -- > Khalid M. Baheyeldin > 2bits.com, Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at rootyhollow.com Fri Jul 17 19:09:25 2009 From: jim at rootyhollow.com (Jim Taylor) Date: Fri, 17 Jul 2009 15:09:25 -0400 Subject: [development] How to disable any block or sidebar from module In-Reply-To: <4A60C944.9010207@comcast.net> References: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> <20090717180145.94775oh50p40en40@mail.siebunlimited.com> <4a9fdc630907171147i159bd40dyf429a9f3b522601d@mail.gmail.com> <4A60C944.9010207@comcast.net> Message-ID: <2f2379e70907171209q58f2c03av2786050aa69f7e1c@mail.gmail.com> Might try this module I have never used it but it looks promising http://drupal.org/project/region_visibility On Fri, Jul 17, 2009 at 2:56 PM, Steve Edwards wrote: > What about using a preprocess function in a module to unset the sidebar > region variable if the condition is met? > > Steve > > Khalid Baheyeldin wrote: > > > > On Fri, Jul 17, 2009 at 2:01 PM, Earnie Boyd > wrote: > >> Quoting "Tom?? F?l?pp (vacilando.org)" : >> >> Hi, >>> >>> I cannot find a generic way how to disable a sidebar programmatically. >>> >>> In my module, if some conditions are met, I would like to make sure that >>> the >>> whole sidebar (or any blocks in it) are not rendered at all, regardless >>> of >>> the theme. >>> >>> Could somebody advise, please? Sorry if it's obvious.. >>> >>> >> I think you want to use hook_block()[1]. >> >> [1] http://api.drupal.org/api/function/hook_block >> > > He is talking about the whole sidebar, hence a region, not a block. > hook_block() will not help here. > > In the past we have done it by setting the visibility PHP code for each > block > in a given region, and that would make the entire sidebar invisible if the > conditions are met. It is a pain if you have more than a few blocks in that > region (right side bar for example). > > You said you don't want it in the theme, but it would be a simple change in > page.tpl.php > > > > > > > > The other option is to use preprocess_block(). Perhaps something like this > in > template.php > > function phptemplate_preprocess_block(&$variables) { > if ($variables['block']->region = 'right') { > if (!custom_visibility_function()) { > unset($variables['block']; > } > } > } > ?> > > Still in the theme though. > >> >> >> -- >> Earnie >> -- http://r-feed.com/ -- http://for-my-kids.com/ >> -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ >> >> > > > -- > Khalid M. Baheyeldin > 2bits.com, Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci > > -- Jim Taylor Rooty Hollow LLC, Owner jim at rootyhollow.com www.rootyhollow.com (614) 432-8609 Twitter: jalama Linkedin: http://www.linkedin.com/in/rootyhollow -------------- next part -------------- An HTML attachment was scrubbed... URL: From clemens at build2be.nl Fri Jul 17 19:44:30 2009 From: clemens at build2be.nl (Clemens Tolboom) Date: Fri, 17 Jul 2009 21:44:30 +0200 Subject: [development] Files table includes file_directory_path In-Reply-To: <4A5F44C6.80609@garfieldtech.com> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> <4A5F44C6.80609@garfieldtech.com> Message-ID: <1247859870.4174.14.camel@clemens-laptop.dev> On Thu, 2009-07-16 at 10:18 -0500, larry at garfieldtech.com wrote: > sites.php was actually added specifically for this sort of issue, > because the sites/ directory structure was too brittle. > > Of course, for the files directories in particular I have long since > dropped using sites//files in favor of files/, which > sidesteps the issue entirely. That doesn't need to change no matter > what server the site moves to. What is your sitekey structure in case of a multi-site environement and what when doing a staging scenario ie move production to a demo of regression environment? (With D5 multisite I moved from the files/ to sites//files to get rid of painfull all at once D5 updates.) From shankar at musickafe.com Fri Jul 17 20:09:19 2009 From: shankar at musickafe.com (Shankar Dhanasekaran) Date: Sat, 18 Jul 2009 01:39:19 +0530 Subject: [development] new module ideas for localized content Message-ID: <4A60DA6F.9090600@musickafe.com> Hi everybody, I have been reading development mail list for a few months now, found it great for people to discuss code but I have not written any thing here until now. I guess the time has come. I am wanting a feature addition to ip2local module or some other similar module. Brief explanation of the customization follows: 1. Admin interface to add or delete region and group regions. Much like hierarchy taxonomy. So that admin can add Region 'Asia' and sub regions like India, China etc. 2. There is an admin interface to set default language for each sub region and region. 3. Much like multi-lingual interface in each node where user can select the language, there is now an additional interface to select the region the node belongs. A node can belong to more than one region, however. 4. The module should output a block where the user can select the region of the website he wants to see. See ibm.com for example. There is a region on the header where user can select the country/language. 5. Logic for content display: a. detect the user ip and thereby the location and display that particular location's content alone. b. If the location is not present in one of the regions set in the website, use a default region. c. detect the browser language and render that identified region's content in that language. Say for example, the region is detected as China but the browser language is English, then display chinese region content in English language. Adminstrator will take care of all the translation work needed. I will really appreciate if you guys can give me some pointers on where to start, a possible hint on hooks that I may need etc., I wanting to become a good drupal module developer and a community supporter. I hope you guys will initiate me into this. I am not aware of any existing module that gives similar functionality after some good search in contrib space. If there is any, pls let me know. Thanks a lot, Shankar From kb at 2bits.com Sat Jul 18 02:47:49 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Fri, 17 Jul 2009 22:47:49 -0400 Subject: [development] How to disable any block or sidebar from module In-Reply-To: <44dd1dd30907171201u587b3f1ag947c21e077bcfe3@mail.gmail.com> References: <593475f90907170933h74679406obbe619ab87373f7b@mail.gmail.com> <20090717180145.94775oh50p40en40@mail.siebunlimited.com> <4a9fdc630907171147i159bd40dyf429a9f3b522601d@mail.gmail.com> <4A60C944.9010207@comcast.net> <44dd1dd30907171201u587b3f1ag947c21e077bcfe3@mail.gmail.com> Message-ID: <4a9fdc630907171947ra0f5e54t6f811e2798e15165@mail.gmail.com> Owen Your solution takes the cake. Still in the theme though, but very minimal: function MYTHEME_preprocess_page(&$vars, $hook) { if (MYTHEME_custom_condition()) { unset($vars['right']); } } -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From nan_wich at bellsouth.net Sat Jul 18 13:31:35 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Sat, 18 Jul 2009 13:31:35 +0000 Subject: [development] Files table includes file_directory_path In-Reply-To: <1247859870.4174.14.camel@clemens-laptop.dev> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com><78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com><4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com><4A5F44C6.80609@garfieldtech.com> <1247859870.4174.14.camel@clemens-laptop.dev> Message-ID: <071820091331.15202.4A61CEB7000AA3F500003B6222216125569B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Clemens Tolboom wrote: > What is your sitekey structure in case of a multi-site environement I do the same as Crell. It can be anything that makes sense to you. For example, on my Drupal documentation site instead of sites/nanwich.info/files, I use files/docs. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From diego at softtailors.com Sun Jul 19 06:26:17 2009 From: diego at softtailors.com (Diego Iastrubni) Date: Sun, 19 Jul 2009 09:26:17 +0300 Subject: [development] new module ideas for localized content In-Reply-To: <4A60DA6F.9090600@musickafe.com> References: <4A60DA6F.9090600@musickafe.com> Message-ID: <4A62BC89.3090104@softtailors.com> Just a side note: I used your module in one of my sites, and I had a lot of problems with it. If "always" failed to update the IP DB. I digged around, and eventually downloaded the files manually, and hacked the code to load the files from the DS instead of "curl" (1), and then backup up the corresponding table (2) and removed the cron code. The trigger for the problem is that curl fails to download the site, due to max execution time in php. A way to avoid one of the problems is to delete the DB only after all the files have been downloaded (currently (3) the code clears up the DB and then downloads). Onother feature I would like as well is: 'dont update the IPs DB at all'. One other problem I found is that the IPs DB is so huge, that some of our hosts fail to update, again, since phpmyadmin (no console to those machines) fails to finish the transactions, due to php max execution time. This is due to the length of those tables (around 40k entries). I am not sure how to address this. Just my 3cents. Thanks for the module, helped a lot. (1) In reality, curl downloads to a temp directory and then loads up the file (2) like hell I am doing it again on a live customer site! (3) Might have changed since 2009/04/13 ... Shankar Dhanasekaran wrote: ... -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: softtailorssig.jpg Type: image/jpeg Size: 3218 bytes Desc: not available URL: From aldo at placenet.org Sun Jul 19 10:16:53 2009 From: aldo at placenet.org (Aldo Reset) Date: Sun, 19 Jul 2009 12:16:53 +0200 Subject: [development] rfc compliant Message-ID: <1247998613.3817.1.camel@home.placenet.fr> does core drupal for some field will be rfc compliant ? mail address: varchar(320) any domain name field: varchar(255). bst regards From larry at garfieldtech.com Mon Jul 20 05:11:05 2009 From: larry at garfieldtech.com (Larry Garfield) Date: Mon, 20 Jul 2009 00:11:05 -0500 Subject: [development] Files table includes file_directory_path In-Reply-To: <1247859870.4174.14.camel@clemens-laptop.dev> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <4A5F44C6.80609@garfieldtech.com> <1247859870.4174.14.camel@clemens-laptop.dev> Message-ID: <200907200011.06056.larry@garfieldtech.com> On Friday 17 July 2009 2:44:30 pm Clemens Tolboom wrote: > On Thu, 2009-07-16 at 10:18 -0500, larry at garfieldtech.com wrote: > > sites.php was actually added specifically for this sort of issue, > > because the sites/ directory structure was too brittle. > > > > Of course, for the files directories in particular I have long since > > dropped using sites//files in favor of files/, which > > sidesteps the issue entirely. That doesn't need to change no matter > > what server the site moves to. > > What is your sitekey structure in case of a multi-site environement and > what when doing a staging scenario ie move production to a demo of > regression environment? > > (With D5 multisite I moved from the files/ to > sites//files to get rid of painfull all at once D5 updates.) Anything recognizable to me will work. For example, on a D5 multi-site for a Chicago Pre-School program (http://www.virtualk.org/ and http://www.virtualpre-k.org) we used "vk" and "vpk" subdirectories. On another install where we're rolling out 40-50 micro sites all as third-level or fourth-level domains, we just use that part of the domain. (So foo.example.com and bar.example.com become files/foo and files/bar.) Drupal doesn't care what your files directory is or if it maps to a domain name; it just cares that you don't change it part-way through the site's life time. That's when stuff gets weird. -- Larry Garfield larry at garfieldtech.com From brian at brianvuyk.com Mon Jul 20 06:36:06 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Mon, 20 Jul 2009 02:36:06 -0400 Subject: [development] rfc compliant In-Reply-To: <1247998613.3817.1.camel@home.placenet.fr> References: <1247998613.3817.1.camel@home.placenet.fr> Message-ID: <4A641056.5000900@brianvuyk.com> I cannot comment on the domain name fields, but the email addresses are an issue I am involved in. In it's current state, D7 only supports 64-character email addresses, as in D5 and D6. However, there is an issue for this, and I intend to submit a patch to adjust the email field to varchar(254) for the following reasons: 1. D7's minimum requirement for MySQL is version 5.0. Varchar's larger than 255 are not supported until version 5.0.3 2. The errata for RFC 3696 specify that the maximum useful length of an email address is 256 character including the angled brackets. Since the brackets are not stored in the DB, the maximum length should be 254 characters. You can follow up the discussion, with references to the appropriate RFC's here: http://drupal.org/node/470306. Brian Vuyk Web Design & Development T: 613-534-2916 brian at brianvuyk.com | http://www.brianvuyk.com Aldo Reset wrote: > does core drupal for some field will be rfc compliant ? > > mail address: varchar(320) > any domain name field: varchar(255). > > > bst regards > > From aldo at placenet.org Mon Jul 20 11:00:39 2009 From: aldo at placenet.org (Aldo Reset) Date: Mon, 20 Jul 2009 13:00:39 +0200 Subject: [development] Weather module Message-ID: <1248087639.22344.1.camel@home.placenet.fr> hi, i notice a little bug in weather module. i think you must change   by   that is an unbrekable space. bst regards. From earnie at users.sourceforge.net Mon Jul 20 11:27:50 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 20 Jul 2009 11:27:50 +0000 Subject: [development] Weather module In-Reply-To: <1248087639.22344.1.camel@home.placenet.fr> References: <1248087639.22344.1.camel@home.placenet.fr> Message-ID: <20090720112750.70711bvzild4vum8@mail.siebunlimited.com> Quoting Aldo Reset : > hi, > > i notice a little bug in weather module. > > i think you must change   by   that is an unbrekable space. > Aldo, this list isn't for reporting bugs. See http://drupal.org/project/issues and pick the appropriate module. -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Mon Jul 20 12:38:04 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 20 Jul 2009 12:38:04 +0000 Subject: [development] Files table includes file_directory_path In-Reply-To: <1247859870.4174.14.camel@clemens-laptop.dev> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> <4A5F44C6.80609@garfieldtech.com> <1247859870.4174.14.camel@clemens-laptop.dev> Message-ID: <20090720123804.57875gfwg8eoknoc@mail.siebunlimited.com> Quoting Clemens Tolboom : > On Thu, 2009-07-16 at 10:18 -0500, larry at garfieldtech.com wrote: >> sites.php was actually added specifically for this sort of issue, >> because the sites/ directory structure was too brittle. >> >> Of course, for the files directories in particular I have long since >> dropped using sites//files in favor of files/, which >> sidesteps the issue entirely. That doesn't need to change no matter >> what server the site moves to. > > What is your sitekey structure in case of a multi-site environement and > what when doing a staging scenario ie move production to a demo of > regression environment? > > (With D5 multisite I moved from the files/ to > sites//files to get rid of painfull all at once D5 updates.) > > Thank you for this rebuttal of Larry's suggestion. Larry, with your layout of files/ how do you upgrade one site at a time? -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From stella at stellapower.net Mon Jul 20 12:32:05 2009 From: stella at stellapower.net (Stella Power) Date: Mon, 20 Jul 2009 13:32:05 +0100 Subject: [development] lightbox2 - co-maintainer needed! Message-ID: Hi all, The lightbox2 module's issue queue is just getting too large and busy for me to cope with all by myself. It's becoming increasingly difficult to keep on top of the issues as I just don't have as many free hours as I used to to devote to it. So I'm looking for a co-maintainer :) You don't need to be a PHP or JavaScript whiz - though if you are, great! Experience with jQuery and Firebug would help, however as long as you have some time to help out with the issue queue by investigating support issues, etc, then send me a mail. Cheers, Stella -------------- next part -------------- An HTML attachment was scrubbed... URL: From tracy.pilcher at gmail.com Mon Jul 20 15:50:53 2009 From: tracy.pilcher at gmail.com (Tracy Pilcher) Date: Mon, 20 Jul 2009 11:50:53 -0400 Subject: [development] lightbox2 - co-maintainer needed! In-Reply-To: References: Message-ID: <6d2a66410907200850m54e22c4by289a3d3ef756b2cf@mail.gmail.com> Hi Stella, I would be interested in being a co-maintainer for Lightbox. I do have experience with Drupal, PHP, Javascript, JQuery, Firebug, etc. I wouldn't say I am a "wiz" but it's what I do for a living and I am looking to make a contribution to Drupal. I am especially interested in Lightbox as I have started developing css overlay type ads for our websites. You can find my resume and some stuff that I have done on my personal website http://www.helloddrupal.org The sites that I maintain and develop for Pearson's Family Education Network are: Drupal sites: http://blogs.familyeducation.com http://forums.familyeducation.com http://comments.familyeducation.com Non Drupal: http://www.infoplease.com http://www.factmonster.com both of these latter sites are undergoing a much needed facelift, they look and function very 1998 right now :-) Thanks for your consideration. Sincerely, Tracy Pilcher drupal id: tracy_pilcher On Mon, Jul 20, 2009 at 8:32 AM, Stella Power wrote: > Hi all, > > The lightbox2 module's issue queue > is just getting too large and busy for me to cope with all by myself. It's > becoming increasingly difficult to keep on top of the issues as I just don't > have as many free hours as I used to to devote to it. > > So I'm looking for a co-maintainer :) You don't need to be a PHP or > JavaScript whiz - though if you are, great! Experience with jQuery and > Firebug would help, however as long as you have some time to help out with > the issue queue by investigating support issues, etc, then send me a mail. > > Cheers, > Stella -- Tracy Pilcher email: tracy.pilcher at gmail.com website: http://supergeeky.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From tracy.pilcher at gmail.com Mon Jul 20 15:54:17 2009 From: tracy.pilcher at gmail.com (Tracy Pilcher) Date: Mon, 20 Jul 2009 11:54:17 -0400 Subject: [development] lightbox2 - co-maintainer needed! In-Reply-To: <6d2a66410907200850m54e22c4by289a3d3ef756b2cf@mail.gmail.com> References: <6d2a66410907200850m54e22c4by289a3d3ef756b2cf@mail.gmail.com> Message-ID: <6d2a66410907200854l33c91b56v335578e36db8ddc6@mail.gmail.com> And I mis-typed my url, sorry I am trying to get this message out right before going into a meeting. my personal website is http://www.hellodrupal.org (one d not two :-) On Mon, Jul 20, 2009 at 11:50 AM, Tracy Pilcher wrote: > Hi Stella, > > I would be interested in being a co-maintainer for Lightbox. > > I do have experience with Drupal, PHP, Javascript, JQuery, Firebug, etc. I > wouldn't say I am a "wiz" but it's what I do for a living and I am looking > to make a contribution to Drupal. > > I am especially interested in Lightbox as I have started developing css > overlay type ads for our websites. > > You can find my resume and some stuff that I have done on my personal > website http://www.helloddrupal.org > > The sites that I maintain and develop for Pearson's Family Education > Network are: > > Drupal sites: > > http://blogs.familyeducation.com > http://forums.familyeducation.com > http://comments.familyeducation.com > > Non Drupal: > > http://www.infoplease.com > http://www.factmonster.com > > both of these latter sites are undergoing a much needed facelift, they look > and function very 1998 right now :-) > > Thanks for your consideration. > > Sincerely, > Tracy Pilcher > > drupal id: tracy_pilcher > > > > On Mon, Jul 20, 2009 at 8:32 AM, Stella Power wrote: > >> Hi all, >> >> The lightbox2 module's issue queue >> is just getting too large and busy for me to cope with all by myself. It's >> becoming increasingly difficult to keep on top of the issues as I just don't >> have as many free hours as I used to to devote to it. >> >> So I'm looking for a co-maintainer :) You don't need to be a PHP or >> JavaScript whiz - though if you are, great! Experience with jQuery and >> Firebug would help, however as long as you have some time to help out with >> the issue queue by investigating support issues, etc, then send me a mail. >> >> Cheers, >> Stella > > > > > -- > Tracy Pilcher > email: tracy.pilcher at gmail.com > website: http://supergeeky.org > -- Tracy Pilcher email: tracy.pilcher at gmail.com website: http://supergeeky.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From larry at garfieldtech.com Mon Jul 20 17:48:18 2009 From: larry at garfieldtech.com (larry at garfieldtech.com) Date: Mon, 20 Jul 2009 12:48:18 -0500 Subject: [development] Files table includes file_directory_path In-Reply-To: <20090720123804.57875gfwg8eoknoc@mail.siebunlimited.com> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> <4A5F44C6.80609@garfieldtech.com> <1247859870.4174.14.camel@clemens-laptop.dev> <20090720123804.57875gfwg8eoknoc@mail.siebunlimited.com> Message-ID: <4A64ADE2.70203@garfieldtech.com> Earnie Boyd wrote: > Quoting Clemens Tolboom : > >> On Thu, 2009-07-16 at 10:18 -0500, larry at garfieldtech.com wrote: >>> sites.php was actually added specifically for this sort of issue, >>> because the sites/ directory structure was too brittle. >>> >>> Of course, for the files directories in particular I have long since >>> dropped using sites//files in favor of files/, which >>> sidesteps the issue entirely. That doesn't need to change no matter >>> what server the site moves to. >> >> What is your sitekey structure in case of a multi-site environement and >> what when doing a staging scenario ie move production to a demo of >> regression environment? >> >> (With D5 multisite I moved from the files/ to >> sites//files to get rid of painfull all at once D5 updates.) >> >> > > Thank you for this rebuttal of Larry's suggestion. Larry, with your > layout of files/ how do you upgrade one site at a time? How do you upgrade one site at a time on any other multi-site? Yep, same way. As I said, Drupal doesn't care where the files directory is, as long as it doesn't change part way through the site's life time. --Larry Garfield From earnie at users.sourceforge.net Mon Jul 20 18:11:53 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 20 Jul 2009 18:11:53 +0000 Subject: [development] Files table includes file_directory_path In-Reply-To: <4A64ADE2.70203@garfieldtech.com> References: <73efcaae0907151454v4fbe6b53nf8364359ea00da9b@mail.gmail.com> <78789e870907151515g11247901lb03195300c983bf1@mail.gmail.com> <4a9fdc630907160716m1605b5ablf2f7ef52deb2c902@mail.gmail.com> <4A5F44C6.80609@garfieldtech.com> <1247859870.4174.14.camel@clemens-laptop.dev> <20090720123804.57875gfwg8eoknoc@mail.siebunlimited.com> <4A64ADE2.70203@garfieldtech.com> Message-ID: <20090720181153.12744gqekddyslus@mail.siebunlimited.com> Quoting "larry at garfieldtech.com" : > Earnie Boyd wrote: >> Quoting Clemens Tolboom : >> >>> On Thu, 2009-07-16 at 10:18 -0500, larry at garfieldtech.com wrote: >>>> sites.php was actually added specifically for this sort of issue, >>>> because the sites/ directory structure was too brittle. >>>> >>>> Of course, for the files directories in particular I have long since >>>> dropped using sites//files in favor of files/, which >>>> sidesteps the issue entirely. That doesn't need to change no matter >>>> what server the site moves to. >>> >>> What is your sitekey structure in case of a multi-site environement and >>> what when doing a staging scenario ie move production to a demo of >>> regression environment? >>> >>> (With D5 multisite I moved from the files/ to >>> sites//files to get rid of painfull all at once D5 updates.) >>> >>> >> >> Thank you for this rebuttal of Larry's suggestion. Larry, with >> your layout of files/ how do you upgrade one site at a time? > > How do you upgrade one site at a time on any other multi-site? Yep, > same way. > > As I said, Drupal doesn't care where the files directory is, as long > as it doesn't change part way through the site's life time. > > --Larry Garfield > Cool, so it doesn't matter where you put the files directory as long as you have the files separated by a site key. Makes sense to me. -- Earnie From tomi at vacilando.org Tue Jul 21 12:51:01 2009 From: tomi at vacilando.org (=?UTF-8?B?VG9tw6HFoSBGw7xsw7ZwcCAodmFjaWxhbmRvLm9yZyk=?=) Date: Tue, 21 Jul 2009 14:51:01 +0200 Subject: [development] Apollo 11 code for Drupal? Message-ID: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> Anybody wants to take a stab at using some open source code from the Apollo 11 onboard computer in Drupal? http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html 8-) -- Tom?? J. F?l?pp http://www.vacilando.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From list.development at gmail.com Tue Jul 21 15:14:39 2009 From: list.development at gmail.com (listdevelopment listdevelopment) Date: Tue, 21 Jul 2009 19:14:39 +0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> Message-ID: <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> PHP 3.0, No-Class, No-abstraction layers, No-template, No-full-admin-part, No little-need part. Horroble coding style, many difference module that writing many difference people in this style. Why you want see this garbig in appollo? 2009/7/21, Tom?? F?l?pp (vacilando.org) : > Anybody wants to take a stab at using some open source code from the Apollo > 11 onboard computer in Drupal? > > http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html > > 8-) > > -- > Tom?? J. F?l?pp > http://www.vacilando.org > From damz at prealable.org Tue Jul 21 15:16:22 2009 From: damz at prealable.org (Damien Tournoud) Date: Tue, 21 Jul 2009 17:16:22 +0200 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> Message-ID: On Tue, Jul 21, 2009 at 5:14 PM, listdevelopment listdevelopment < list.development at gmail.com> wrote: > PHP 3.0, No-Class, No-abstraction layers, No-template, > No-full-admin-part, No little-need part. Horroble coding style, many > difference module that writing many difference people in this style. > Why you want see this garbig in appollo? That a very brave anonymous message ;) Damien -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly at negyesi.net Tue Jul 21 15:23:13 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Tue, 21 Jul 2009 08:23:13 -0700 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> Message-ID: <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> Hm, I thought we required PHP 4.3.3 (and later 4.3.5) for recent Drupal versions. I can't even name a Drupal version off head that ran on PHP 3.0. Tell me more. On Tue, Jul 21, 2009 at 8:14 AM, listdevelopment listdevelopment wrote: > PHP 3.0, No-Class, No-abstraction layers, No-template, > No-full-admin-part, No little-need part. Horroble coding style, many > difference module that writing many difference people in this style. > Why you want see this garbig in appollo? > > 2009/7/21, Tom?? F?l?pp (vacilando.org) : >> Anybody wants to take a stab at using some open source code from the Apollo >> 11 onboard computer in Drupal? >> >> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >> >> 8-) >> >> -- >> Tom?? J. F?l?pp >> http://www.vacilando.org >> > From gerhard at killesreiter.de Tue Jul 21 15:33:01 2009 From: gerhard at killesreiter.de (Gerhard Killesreiter) Date: Tue, 21 Jul 2009 17:33:01 +0200 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> Message-ID: <4A65DFAD.3070602@killesreiter.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Karoly Negyesi schrieb: > Hm, I thought we required PHP 4.3.3 (and later 4.3.5) for recent > Drupal versions. I can't even name a Drupal version off head that ran > on PHP 3.0. Tell me more. I can't recall any, the earliest requirement I recall was 4.0.6. http://drupal.org/node/2991#comment-5100 Cheers, Gerhard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpl360ACgkQfg6TFvELooRfewCeNqPHWVvfSthlUf0rZfBsdr9K bsoAn1Q4+izkthnhUl2DHDv4U08yjx1Y =wmdN -----END PGP SIGNATURE----- From steev at initsix.co.uk Tue Jul 21 15:50:26 2009 From: steev at initsix.co.uk (Steve Power) Date: Tue, 21 Jul 2009 16:50:26 +0100 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <4A65DFAD.3070602@killesreiter.de> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> Message-ID: <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> In the spirit of the original post, lets backport D7 to php3. Or maybe cobol. A guy at work managed to tweet from a ZX spectrum, so this should be a breeze... On Tue, Jul 21, 2009 at 4:33 PM, Gerhard Killesreiter < gerhard at killesreiter.de> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Karoly Negyesi schrieb: > > Hm, I thought we required PHP 4.3.3 (and later 4.3.5) for recent > > Drupal versions. I can't even name a Drupal version off head that ran > > on PHP 3.0. Tell me more. > > > I can't recall any, the earliest requirement I recall was 4.0.6. > > http://drupal.org/node/2991#comment-5100 > > Cheers, > Gerhard > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkpl360ACgkQfg6TFvELooRfewCeNqPHWVvfSthlUf0rZfBsdr9K > bsoAn1Q4+izkthnhUl2DHDv4U08yjx1Y > =wmdN > -----END PGP SIGNATURE----- > -- -- -- Steve Power Principal Consultant Mobile: +44 (0) 7747 027 243 Initsix Technology and Media -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb at 2bits.com Tue Jul 21 15:58:31 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Tue, 21 Jul 2009 11:58:31 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> Message-ID: <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> ZX Spectrum? That was my first computer ever! Does he have a cassette tape with the Drupal port I can use? On Tue, Jul 21, 2009 at 11:50 AM, Steve Power wrote: > In the spirit of the original post, lets backport D7 to php3. Or maybe > cobol. A guy at work managed to tweet from a ZX spectrum, so this should be > a breeze... > > > On Tue, Jul 21, 2009 at 4:33 PM, Gerhard Killesreiter < > gerhard at killesreiter.de> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Karoly Negyesi schrieb: >> > Hm, I thought we required PHP 4.3.3 (and later 4.3.5) for recent >> > Drupal versions. I can't even name a Drupal version off head that ran >> > on PHP 3.0. Tell me more. >> >> >> I can't recall any, the earliest requirement I recall was 4.0.6. >> >> http://drupal.org/node/2991#comment-5100 >> >> Cheers, >> Gerhard >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.9 (GNU/Linux) >> >> iEYEARECAAYFAkpl360ACgkQfg6TFvELooRfewCeNqPHWVvfSthlUf0rZfBsdr9K >> bsoAn1Q4+izkthnhUl2DHDv4U08yjx1Y >> =wmdN >> -----END PGP SIGNATURE----- >> > > > > -- > -- > -- > Steve Power > Principal Consultant > Mobile: +44 (0) 7747 027 243 > Initsix Technology and Media > -- > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmitrig01 at gmail.com Tue Jul 21 16:18:52 2009 From: dmitrig01 at gmail.com (Dmitri G) Date: Tue, 21 Jul 2009 09:18:52 -0700 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> Message-ID: <9d2095ce0907210918o38c36ca9q50018fddc20ffa44@mail.gmail.com> I feel so young... (my first was a mac G4) On Tue, Jul 21, 2009 at 8:58 AM, Khalid Baheyeldin wrote: > ZX Spectrum? That was my first computer ever! > > Does he have a cassette tape with the Drupal port I can use? > > > On Tue, Jul 21, 2009 at 11:50 AM, Steve Power wrote: > >> In the spirit of the original post, lets backport D7 to php3. Or maybe >> cobol. A guy at work managed to tweet from a ZX spectrum, so this should be >> a breeze... >> >> >> On Tue, Jul 21, 2009 at 4:33 PM, Gerhard Killesreiter < >> gerhard at killesreiter.de> wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Karoly Negyesi schrieb: >>> > Hm, I thought we required PHP 4.3.3 (and later 4.3.5) for recent >>> > Drupal versions. I can't even name a Drupal version off head that ran >>> > on PHP 3.0. Tell me more. >>> >>> >>> I can't recall any, the earliest requirement I recall was 4.0.6. >>> >>> http://drupal.org/node/2991#comment-5100 >>> >>> Cheers, >>> Gerhard >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v1.4.9 (GNU/Linux) >>> >>> iEYEARECAAYFAkpl360ACgkQfg6TFvELooRfewCeNqPHWVvfSthlUf0rZfBsdr9K >>> bsoAn1Q4+izkthnhUl2DHDv4U08yjx1Y >>> =wmdN >>> -----END PGP SIGNATURE----- >>> >> >> >> >> -- >> -- >> -- >> Steve Power >> Principal Consultant >> Mobile: +44 (0) 7747 027 243 >> Initsix Technology and Media >> -- >> > > > > -- > Khalid M. Baheyeldin > 2bits.com, Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly at negyesi.net Tue Jul 21 16:27:33 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Tue, 21 Jul 2009 09:27:33 -0700 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <9d2095ce0907210918o38c36ca9q50018fddc20ffa44@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <9d2095ce0907210918o38c36ca9q50018fddc20ffa44@mail.gmail.com> Message-ID: <7e270cea0907210927n3027f0f5h5a8ca2c8fd437c6b@mail.gmail.com> You feel young? I wonder why. On Tue, Jul 21, 2009 at 9:18 AM, Dmitri G wrote: > I feel so young... (my first was a mac G4) From kb at 2bits.com Tue Jul 21 16:29:43 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Tue, 21 Jul 2009 12:29:43 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <7e270cea0907210927n3027f0f5h5a8ca2c8fd437c6b@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <9d2095ce0907210918o38c36ca9q50018fddc20ffa44@mail.gmail.com> <7e270cea0907210927n3027f0f5h5a8ca2c8fd437c6b@mail.gmail.com> Message-ID: <4a9fdc630907210929m39643e89mce9098c5b0aa8308@mail.gmail.com> Maybe because he *is* young ...? On Tue, Jul 21, 2009 at 12:27 PM, Karoly Negyesi wrote: > You feel young? I wonder why. > > On Tue, Jul 21, 2009 at 9:18 AM, Dmitri G wrote: > > I feel so young... (my first was a mac G4) > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly at negyesi.net Tue Jul 21 16:49:45 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Tue, 21 Jul 2009 09:49:45 -0700 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <4a9fdc630907210929m39643e89mce9098c5b0aa8308@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <9d2095ce0907210918o38c36ca9q50018fddc20ffa44@mail.gmail.com> <7e270cea0907210927n3027f0f5h5a8ca2c8fd437c6b@mail.gmail.com> <4a9fdc630907210929m39643e89mce9098c5b0aa8308@mail.gmail.com> Message-ID: <7e270cea0907210949k63260414le04c9701be621c07@mail.gmail.com> You don't say. Seriously? On Tue, Jul 21, 2009 at 9:29 AM, Khalid Baheyeldin wrote: > Maybe because he *is* young ...? > > On Tue, Jul 21, 2009 at 12:27 PM, Karoly Negyesi wrote: >> >> You feel young? I wonder why. >> >> On Tue, Jul 21, 2009 at 9:18 AM, Dmitri G wrote: >> > I feel so young... (my first was a mac G4) From victorkane at gmail.com Tue Jul 21 16:57:13 2009 From: victorkane at gmail.com (Victor Kane) Date: Tue, 21 Jul 2009 13:57:13 -0300 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> Message-ID: Here in Buenos Aires I had a shiny silver Timex-Sinclar 2000, and went in and had them put in a "double-boot" ROM and switch, so I could bring it up in ZX Spectrum or TS 2000 mode! Z80 Assembler!!! Victor Kane http://awebfactory.com.ar On Tue, Jul 21, 2009 at 12:58 PM, Khalid Baheyeldin wrote: > ZX Spectrum? That was my first computer ever! > > Does he have a cassette tape with the Drupal port I can use? > > > On Tue, Jul 21, 2009 at 11:50 AM, Steve Power wrote: > >> In the spirit of the original post, lets backport D7 to php3. Or maybe >> cobol. A guy at work managed to tweet from a ZX spectrum, so this should be >> a breeze... >> >> >> On Tue, Jul 21, 2009 at 4:33 PM, Gerhard Killesreiter < >> gerhard at killesreiter.de> wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Karoly Negyesi schrieb: >>> > Hm, I thought we required PHP 4.3.3 (and later 4.3.5) for recent >>> > Drupal versions. I can't even name a Drupal version off head that ran >>> > on PHP 3.0. Tell me more. >>> >>> >>> I can't recall any, the earliest requirement I recall was 4.0.6. >>> >>> http://drupal.org/node/2991#comment-5100 >>> >>> Cheers, >>> Gerhard >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v1.4.9 (GNU/Linux) >>> >>> iEYEARECAAYFAkpl360ACgkQfg6TFvELooRfewCeNqPHWVvfSthlUf0rZfBsdr9K >>> bsoAn1Q4+izkthnhUl2DHDv4U08yjx1Y >>> =wmdN >>> -----END PGP SIGNATURE----- >>> >> >> >> >> -- >> -- >> -- >> Steve Power >> Principal Consultant >> Mobile: +44 (0) 7747 027 243 >> Initsix Technology and Media >> -- >> > > > > -- > Khalid M. Baheyeldin > 2bits.com, Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly at negyesi.net Tue Jul 21 16:59:47 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Tue, 21 Jul 2009 09:59:47 -0700 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> Message-ID: <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> C9 was RET. I forgot the rest. It was so long ago. On Tue, Jul 21, 2009 at 9:57 AM, Victor Kane wrote: > Here in Buenos Aires I had a shiny silver Timex-Sinclar 2000, and went in > and had them put in a "double-boot" ROM and switch, so I could bring it up > in ZX Spectrum or TS 2000 mode! > > Z80 Assembler!!! From rwohleb at techsanctuary.com Tue Jul 21 20:20:35 2009 From: rwohleb at techsanctuary.com (Robert Wohleb) Date: Tue, 21 Jul 2009 13:20:35 -0700 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> Message-ID: I started programming on my first computer; a Tandy 1000 from Radio Shack. Assembly was so much easier on the 8088 processor. Ahh, the good ol' days. ~Rob On Tue, Jul 21, 2009 at 9:59 AM, Karoly Negyesi wrote: > C9 was RET. I forgot the rest. It was so long ago. > > On Tue, Jul 21, 2009 at 9:57 AM, Victor Kane wrote: > > Here in Buenos Aires I had a shiny silver Timex-Sinclar 2000, and went in > > and had them put in a "double-boot" ROM and switch, so I could bring it > up > > in ZX Spectrum or TS 2000 mode! > > > > Z80 Assembler!!! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From winborn at advomatic.com Tue Jul 21 20:31:07 2009 From: winborn at advomatic.com (Aaron Winborn) Date: Tue, 21 Jul 2009 16:31:07 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> Message-ID: <4A66258B.4000806@advomatic.com> An HTML attachment was scrubbed... URL: From winborn at advomatic.com Tue Jul 21 20:38:31 2009 From: winborn at advomatic.com (Aaron Winborn) Date: Tue, 21 Jul 2009 16:38:31 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <4A66258B.4000806@advomatic.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> <4A66258B.4000806@advomatic.com> Message-ID: <4A662747.7000103@advomatic.com> An HTML attachment was scrubbed... URL: From victorkane at gmail.com Tue Jul 21 20:42:50 2009 From: victorkane at gmail.com (Victor Kane) Date: Tue, 21 Jul 2009 17:42:50 -0300 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <4A66258B.4000806@advomatic.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> <4A66258B.4000806@advomatic.com> Message-ID: I did a complete suite of educational programs with a cross platform function dispatcher, so that once the system was installed (on disk :) the data would run on Radio Shack Color Computer (6809) Commodore (6502) IBM XT with a version for Spectrum... Really cool. Somewhere I have the 5.25 disks for the Commodore !!! Victor Kane http://awebfactory.com.ar On Tue, Jul 21, 2009 at 5:31 PM, Aaron Winborn wrote: > Mine was either the Trash-80, or the Vic-20; I don't remember which came > first. The TRS was at school, and the Commodore at home. The Vic-20 had 5K > RAM, and I fondly remember when we got a 16K expander cartridge (along with > the inevitable 'What will I do with all that memory?') The first thing I > remember writing was a scrolling adventure, where I created an Olde English > font pixel by pixel by hacking directly into its core memory. (I'm sure I > wrote practice stuff before that, but this is what, 30 years ago?) > > My father later gave me a CCP/M with a washing machine 8" floppy drive from > his office; the computer may have been older than the others, but I really > have no idea anymore. I wrote a text-based Star Wars game, complete with > X-Wing fighters and light sabers using DataStar on that computer. > > Aaron > > > Robert Wohleb wrote: > > I started programming on my first computer; a Tandy 1000 from Radio Shack. > Assembly was so much easier on the 8088 processor. Ahh, the good ol' days. > > ~Rob > > On Tue, Jul 21, 2009 at 9:59 AM, Karoly Negyesi wrote: > >> C9 was RET. I forgot the rest. It was so long ago. >> >> On Tue, Jul 21, 2009 at 9:57 AM, Victor Kane wrote: >> > Here in Buenos Aires I had a shiny silver Timex-Sinclar 2000, and went >> in >> > and had them put in a "double-boot" ROM and switch, so I could bring it >> up >> > in ZX Spectrum or TS 2000 mode! >> > >> > Z80 Assembler!!! >> > > > > -- > Aaron Winborn > > Advomatic, LLChttp://advomatic.com/ > > Drupal Multimedia available in September!http://www.packtpub.com/create-multimedia-website-with-drupal/book > > My blog:http://aaronwinborn.com/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From flabat at flabat.com Tue Jul 21 20:10:49 2009 From: flabat at flabat.com (Fabian Labat) Date: Tue, 21 Jul 2009 16:10:49 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> Message-ID: <102951930907211310m67afcc2fg2b55b611d8889d7f@mail.gmail.com> ZX Spectrum 48K RAM, external cassette player... I say rewrite Drupal in BASIC On Tue, Jul 21, 2009 at 12:59 PM, Karoly Negyesi wrote: > C9 was RET. I forgot the rest. It was so long ago. > > On Tue, Jul 21, 2009 at 9:57 AM, Victor Kane wrote: > > Here in Buenos Aires I had a shiny silver Timex-Sinclar 2000, and went in > > and had them put in a "double-boot" ROM and switch, so I could bring it > up > > in ZX Spectrum or TS 2000 mode! > > > > Z80 Assembler!!! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorkane at gmail.com Tue Jul 21 21:24:18 2009 From: victorkane at gmail.com (Victor Kane) Date: Tue, 21 Jul 2009 18:24:18 -0300 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <102951930907211310m67afcc2fg2b55b611d8889d7f@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <91980c1c0907210814n72c7d08ey8b6c607ac31606b7@mail.gmail.com> <7e270cea0907210823m872caf3u2e9dd9bc1bf341d9@mail.gmail.com> <4A65DFAD.3070602@killesreiter.de> <651c6d110907210850t2c3634edm8fcea712cb93c3a7@mail.gmail.com> <4a9fdc630907210858l6fd1e232w2c280e2789c84931@mail.gmail.com> <7e270cea0907210959h1acdfcb3u4e235b2a52763653@mail.gmail.com> <102951930907211310m67afcc2fg2b55b611d8889d7f@mail.gmail.com> Message-ID: in Assembler!!! On Tue, Jul 21, 2009 at 5:10 PM, Fabian Labat wrote: > ZX Spectrum 48K RAM, external cassette player... > I say rewrite Drupal in BASIC > > > > > On Tue, Jul 21, 2009 at 12:59 PM, Karoly Negyesi wrote: > >> C9 was RET. I forgot the rest. It was so long ago. >> >> On Tue, Jul 21, 2009 at 9:57 AM, Victor Kane wrote: >> > Here in Buenos Aires I had a shiny silver Timex-Sinclar 2000, and went >> in >> > and had them put in a "double-boot" ROM and switch, so I could bring it >> up >> > in ZX Spectrum or TS 2000 mode! >> > >> > Z80 Assembler!!! >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dev.sandip at gmail.com Tue Jul 21 21:43:14 2009 From: dev.sandip at gmail.com (Sandip Dev) Date: Wed, 22 Jul 2009 03:13:14 +0530 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> Message-ID: <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> Why would anyone want to use Apollo 11 code in Drupal? I really dont get it... Sandip On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < tomi at vacilando.org> wrote: > Anybody wants to take a stab at using some open source code from the Apollo > 11 onboard computer in Drupal? > > > http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html > > 8-) > > -- > Tom?? J. F?l?pp > http://www.vacilando.org > > -- Sandip Dev B.Tech, 3rd Year Computer Engineering, NIT-Surat www.blogs.sun.com/sandip www.itsallpartoftheplan.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorkane at gmail.com Tue Jul 21 21:49:05 2009 From: victorkane at gmail.com (Victor Kane) Date: Tue, 21 Jul 2009 18:49:05 -0300 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> Message-ID: It got to the moon, didn't it? No-one's landed there since, have they? Much better than the funky new Apollo 13 code. Victor Kane http://awebfactory.com.ar On Tue, Jul 21, 2009 at 6:43 PM, Sandip Dev wrote: > Why would anyone want to use Apollo 11 code in Drupal? I really dont get > it... > > Sandip > > > On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < > tomi at vacilando.org> wrote: > >> Anybody wants to take a stab at using some open source code from the >> Apollo 11 onboard computer in Drupal? >> >> >> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >> >> 8-) >> >> -- >> Tom?? J. F?l?pp >> http://www.vacilando.org >> >> > > > -- > Sandip Dev > B.Tech, 3rd Year > Computer Engineering, NIT-Surat > > www.blogs.sun.com/sandip > www.itsallpartoftheplan.wordpress.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dev.sandip at gmail.com Tue Jul 21 21:55:12 2009 From: dev.sandip at gmail.com (Sandip Dev) Date: Wed, 22 Jul 2009 03:25:12 +0530 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> Message-ID: <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> Thats not the point. I mean Apollo 11 code is not PHP..Drupal is....Apollo 11 code is nowhere related to a CMS...Drupal runs website, that code ran the whole goddam rocket...Thing is while the code is available, what sense does it make to use it in Drupal? And where exactly are we gonna use it? Correct me if I am wrong Sandip On Wed, Jul 22, 2009 at 3:19 AM, Victor Kane wrote: > It got to the moon, didn't it? > No-one's landed there since, have they? > > Much better than the funky new Apollo 13 code. > > Victor Kane > http://awebfactory.com.ar > > On Tue, Jul 21, 2009 at 6:43 PM, Sandip Dev wrote: > >> Why would anyone want to use Apollo 11 code in Drupal? I really dont get >> it... >> >> Sandip >> >> >> On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < >> tomi at vacilando.org> wrote: >> >>> Anybody wants to take a stab at using some open source code from the >>> Apollo 11 onboard computer in Drupal? >>> >>> >>> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >>> >>> 8-) >>> >>> -- >>> Tom?? J. F?l?pp >>> http://www.vacilando.org >>> >>> >> >> >> -- >> Sandip Dev >> B.Tech, 3rd Year >> Computer Engineering, NIT-Surat >> >> www.blogs.sun.com/sandip >> www.itsallpartoftheplan.wordpress.com >> > > -- Sandip Dev B.Tech, 3rd Year Computer Engineering, NIT-Surat www.blogs.sun.com/sandip www.itsallpartoftheplan.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorkane at gmail.com Tue Jul 21 22:05:07 2009 From: victorkane at gmail.com (Victor Kane) Date: Tue, 21 Jul 2009 19:05:07 -0300 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> Message-ID: Dude, it got to the moon... and back... We aren't going to use it... when something is that good you want it to youse us... And, it's online, isn't it? On Tue, Jul 21, 2009 at 6:55 PM, Sandip Dev wrote: > Thats not the point. I mean Apollo 11 code is not PHP..Drupal is....Apollo > 11 code is nowhere related to a CMS...Drupal runs website, that code ran the > whole goddam rocket...Thing is while the code is available, what sense does > it make to use it in Drupal? And where exactly are we gonna use it? Correct > me if I am wrong > > Sandip > > > On Wed, Jul 22, 2009 at 3:19 AM, Victor Kane wrote: > >> It got to the moon, didn't it? >> No-one's landed there since, have they? >> >> Much better than the funky new Apollo 13 code. >> >> Victor Kane >> http://awebfactory.com.ar >> >> On Tue, Jul 21, 2009 at 6:43 PM, Sandip Dev wrote: >> >>> Why would anyone want to use Apollo 11 code in Drupal? I really dont get >>> it... >>> >>> Sandip >>> >>> >>> On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < >>> tomi at vacilando.org> wrote: >>> >>>> Anybody wants to take a stab at using some open source code from the >>>> Apollo 11 onboard computer in Drupal? >>>> >>>> >>>> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >>>> >>>> 8-) >>>> >>>> -- >>>> Tom?? J. F?l?pp >>>> http://www.vacilando.org >>>> >>>> >>> >>> >>> -- >>> Sandip Dev >>> B.Tech, 3rd Year >>> Computer Engineering, NIT-Surat >>> >>> www.blogs.sun.com/sandip >>> www.itsallpartoftheplan.wordpress.com >>> >> >> > > > -- > Sandip Dev > B.Tech, 3rd Year > Computer Engineering, NIT-Surat > > www.blogs.sun.com/sandip > www.itsallpartoftheplan.wordpress.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From field.ninja at gmail.com Tue Jul 21 22:32:26 2009 From: field.ninja at gmail.com (Bushidodeep) Date: Tue, 21 Jul 2009 15:32:26 -0700 Subject: [development] File Storage and Path Display Message-ID: Hi, I've created a directory (i) inside the sites->default->files->i, upon a:hover, the path appears in the status bar. Is this customary or have I forgotten a setting in one of the path modules? CK From weitzman at tejasa.com Tue Jul 21 23:14:42 2009 From: weitzman at tejasa.com (Moshe Weitzman) Date: Tue, 21 Jul 2009 19:14:42 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> Message-ID: <6117a7500907211614l599dd2e7s9907aa8eb2bf7725@mail.gmail.com> well, do you want the chx/dww job_queue.inc or do want apollo's? take 5 mins to read http://history.nasa.gov/alsj/a11/a11.1201-fm.html. nothing like a software engineering drama. the apollo 13 drama is even more compelling - http://www.hq.nasa.gov/alsj/a13/a13.summary.html On Tue, Jul 21, 2009 at 5:55 PM, Sandip Dev wrote: > Thats not the point. I mean Apollo 11 code is not PHP..Drupal is....Apollo > 11 code is nowhere related to a CMS...Drupal runs website, that code ran the > whole goddam rocket...Thing is while the code is available, what sense does > it make to use it in Drupal? And where exactly are we gonna use it?? Correct > me if I am wrong > > Sandip From drewish at katherinehouse.com Tue Jul 21 23:34:55 2009 From: drewish at katherinehouse.com (andrew morton) Date: Tue, 21 Jul 2009 19:34:55 -0400 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <6117a7500907211614l599dd2e7s9907aa8eb2bf7725@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> <6117a7500907211614l599dd2e7s9907aa8eb2bf7725@mail.gmail.com> Message-ID: On Tue, Jul 21, 2009 at 7:14 PM, Moshe Weitzman wrote: > well, do you want the chx/dww job_queue.inc or do want apollo's? take > 5 mins to read http://history.nasa.gov/alsj/a11/a11.1201-fm.html. > nothing like a software engineering drama. This is by far my favorite Apollo drama: http://www.hq.nasa.gov/office/pao/History/monograph4/intro.htm The story is more bureaucratic/political but IMHO half of working on any big project (especially open source development) is understanding and navigating that terrain that so your technical arguments can get a fair hearing. andrew From victorkane at gmail.com Tue Jul 21 23:46:12 2009 From: victorkane at gmail.com (Victor Kane) Date: Tue, 21 Jul 2009 20:46:12 -0300 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <6117a7500907211614l599dd2e7s9907aa8eb2bf7725@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> <6117a7500907211614l599dd2e7s9907aa8eb2bf7725@mail.gmail.com> Message-ID: Awesome read. On Tue, Jul 21, 2009 at 8:14 PM, Moshe Weitzman wrote: > well, do you want the chx/dww job_queue.inc or do want apollo's? take > 5 mins to read http://history.nasa.gov/alsj/a11/a11.1201-fm.html. > nothing like a software engineering drama. > > the apollo 13 drama is even more compelling - > http://www.hq.nasa.gov/alsj/a13/a13.summary.html > > On Tue, Jul 21, 2009 at 5:55 PM, Sandip Dev wrote: > > Thats not the point. I mean Apollo 11 code is not PHP..Drupal > is....Apollo > > 11 code is nowhere related to a CMS...Drupal runs website, that code ran > the > > whole goddam rocket...Thing is while the code is available, what sense > does > > it make to use it in Drupal? And where exactly are we gonna use it? > Correct > > me if I am wrong > > > > Sandip > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steev at initsix.co.uk Wed Jul 22 07:47:13 2009 From: steev at initsix.co.uk (Steve Power) Date: Wed, 22 Jul 2009 08:47:13 +0100 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> Message-ID: <651c6d110907220047k5f65dcddq1c26bbaab2eaf17f@mail.gmail.com> On Tue, Jul 21, 2009 at 10:55 PM, Sandip Dev wrote: > Thats not the point. I mean Apollo 11 code is not PHP..Drupal is....Apollo > 11 code is nowhere related to a CMS...Drupal runs website, that code ran the > whole goddam rocket...Thing is while the code is available, what sense does > it make to use it in Drupal? And where exactly are we gonna use it? Correct > me if I am wrong I have a client (one of the galactic tourism companies, cant say which one) which is after some guidance code that they can use with a CCK field (i.e. they want to put moon coordinates in, then have the ship automatically fly there via rss). I told them that flying to the moon wasnt possible with Drupal (at least not on windows) so they have asked if i can build a module so they can use drupal not only inside the ship, but also on the internet. I believe there is a bounty of about $8m for the developer who gets drupal to interface with the mars lander (although i heard they went with joomla in the end - which is probably why it didnt last as long...). Basically, you have to get your ass-embler to mars, find the alien artifact, get the girl and kill the baddies. See you at the party Richter! > > > Sandip > > > On Wed, Jul 22, 2009 at 3:19 AM, Victor Kane wrote: > >> It got to the moon, didn't it? >> No-one's landed there since, have they? >> >> Much better than the funky new Apollo 13 code. >> >> Victor Kane >> http://awebfactory.com.ar >> >> On Tue, Jul 21, 2009 at 6:43 PM, Sandip Dev wrote: >> >>> Why would anyone want to use Apollo 11 code in Drupal? I really dont get >>> it... >>> >>> Sandip >>> >>> >>> On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < >>> tomi at vacilando.org> wrote: >>> >>>> Anybody wants to take a stab at using some open source code from the >>>> Apollo 11 onboard computer in Drupal? >>>> >>>> >>>> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >>>> >>>> 8-) >>>> >>>> -- >>>> Tom?? J. F?l?pp >>>> http://www.vacilando.org >>>> >>>> >>> >>> >>> -- >>> Sandip Dev >>> B.Tech, 3rd Year >>> Computer Engineering, NIT-Surat >>> >>> www.blogs.sun.com/sandip >>> www.itsallpartoftheplan.wordpress.com >>> >> >> > > > -- > Sandip Dev > B.Tech, 3rd Year > Computer Engineering, NIT-Surat > > www.blogs.sun.com/sandip > www.itsallpartoftheplan.wordpress.com > -- -- -- Steve Power Principal Consultant Mobile: +44 (0) 7747 027 243 Initsix Technology and Media -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipench at gmail.com Wed Jul 22 08:45:33 2009 From: dipench at gmail.com (Dipen) Date: Wed, 22 Jul 2009 14:15:33 +0530 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <651c6d110907220047k5f65dcddq1c26bbaab2eaf17f@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> <651c6d110907220047k5f65dcddq1c26bbaab2eaf17f@mail.gmail.com> Message-ID: <1fcccc8a0907220145q643f509s55e6437383b755b8@mail.gmail.com> LOL On Wed, Jul 22, 2009 at 1:17 PM, Steve Power wrote: > > On Tue, Jul 21, 2009 at 10:55 PM, Sandip Dev wrote: > >> Thats not the point. I mean Apollo 11 code is not PHP..Drupal is....Apollo >> 11 code is nowhere related to a CMS...Drupal runs website, that code ran the >> whole goddam rocket...Thing is while the code is available, what sense does >> it make to use it in Drupal? And where exactly are we gonna use it? Correct >> me if I am wrong > > > > > I have a client (one of the galactic tourism companies, cant say which one) > which is after some guidance code that they can use with a CCK field (i.e. > they want to put moon coordinates in, then have the ship automatically fly > there via rss). I told them that flying to the moon wasnt possible with > Drupal (at least not on windows) so they have asked if i can build a module > so they can use drupal not only inside the ship, but also on the internet. > > I believe there is a bounty of about $8m for the developer who gets drupal > to interface with the mars lander (although i heard they went with joomla in > the end - which is probably why it didnt last as long...). > > Basically, you have to get your ass-embler to mars, find the alien > artifact, get the girl and kill the baddies. See you at the party Richter! > > > > > > > >> >> >> Sandip >> >> >> On Wed, Jul 22, 2009 at 3:19 AM, Victor Kane wrote: >> >>> It got to the moon, didn't it? >>> No-one's landed there since, have they? >>> >>> Much better than the funky new Apollo 13 code. >>> >>> Victor Kane >>> http://awebfactory.com.ar >>> >>> On Tue, Jul 21, 2009 at 6:43 PM, Sandip Dev wrote: >>> >>>> Why would anyone want to use Apollo 11 code in Drupal? I really dont get >>>> it... >>>> >>>> Sandip >>>> >>>> >>>> On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < >>>> tomi at vacilando.org> wrote: >>>> >>>>> Anybody wants to take a stab at using some open source code from the >>>>> Apollo 11 onboard computer in Drupal? >>>>> >>>>> >>>>> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >>>>> >>>>> 8-) >>>>> >>>>> -- >>>>> Tom?? J. F?l?pp >>>>> http://www.vacilando.org >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sandip Dev >>>> B.Tech, 3rd Year >>>> Computer Engineering, NIT-Surat >>>> >>>> www.blogs.sun.com/sandip >>>> www.itsallpartoftheplan.wordpress.com >>>> >>> >>> >> >> >> -- >> Sandip Dev >> B.Tech, 3rd Year >> Computer Engineering, NIT-Surat >> >> www.blogs.sun.com/sandip >> www.itsallpartoftheplan.wordpress.com >> > > > > -- > -- > -- > Steve Power > Principal Consultant > Mobile: +44 (0) 7747 027 243 > Initsix Technology and Media > -- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dev.sandip at gmail.com Wed Jul 22 08:49:04 2009 From: dev.sandip at gmail.com (Sandip Dev) Date: Wed, 22 Jul 2009 14:19:04 +0530 Subject: [development] Apollo 11 code for Drupal? In-Reply-To: <1fcccc8a0907220145q643f509s55e6437383b755b8@mail.gmail.com> References: <593475f90907210551m44a08effq9059d737afa207b4@mail.gmail.com> <577b3d950907211443w1a831c93k55c554b3f3068f88@mail.gmail.com> <577b3d950907211455v3de60f7bt90ad0166ce9b2d5c@mail.gmail.com> <651c6d110907220047k5f65dcddq1c26bbaab2eaf17f@mail.gmail.com> <1fcccc8a0907220145q643f509s55e6437383b755b8@mail.gmail.com> Message-ID: <577b3d950907220149l69810786ua5a70a8f287ea9cf@mail.gmail.com> haha.... On Wed, Jul 22, 2009 at 2:15 PM, Dipen wrote: > LOL > > > > On Wed, Jul 22, 2009 at 1:17 PM, Steve Power wrote: > >> >> On Tue, Jul 21, 2009 at 10:55 PM, Sandip Dev wrote: >> >>> Thats not the point. I mean Apollo 11 code is not PHP..Drupal >>> is....Apollo 11 code is nowhere related to a CMS...Drupal runs website, that >>> code ran the whole goddam rocket...Thing is while the code is available, >>> what sense does it make to use it in Drupal? And where exactly are we gonna >>> use it? Correct me if I am wrong >> >> >> >> >> I have a client (one of the galactic tourism companies, cant say which >> one) which is after some guidance code that they can use with a CCK field >> (i.e. they want to put moon coordinates in, then have the ship automatically >> fly there via rss). I told them that flying to the moon wasnt possible with >> Drupal (at least not on windows) so they have asked if i can build a module >> so they can use drupal not only inside the ship, but also on the internet. >> >> I believe there is a bounty of about $8m for the developer who gets drupal >> to interface with the mars lander (although i heard they went with joomla in >> the end - which is probably why it didnt last as long...). >> >> Basically, you have to get your ass-embler to mars, find the alien >> artifact, get the girl and kill the baddies. See you at the party Richter! >> >> >> >> >> >> >> >>> >>> >>> Sandip >>> >>> On Wed, Jul 22, 2009 at 3:19 AM, Victor Kane wrote: >>> >>>> It got to the moon, didn't it? >>>> No-one's landed there since, have they? >>>> >>>> Much better than the funky new Apollo 13 code. >>>> >>>> Victor Kane >>>> http://awebfactory.com.ar >>>> >>>> On Tue, Jul 21, 2009 at 6:43 PM, Sandip Dev wrote: >>>> >>>>> Why would anyone want to use Apollo 11 code in Drupal? I really dont >>>>> get it... >>>>> >>>>> Sandip >>>>> >>>>> On Tue, Jul 21, 2009 at 6:21 PM, Tom?? F?l?pp (vacilando.org) < >>>>> tomi at vacilando.org> wrote: >>>>> >>>>>> Anybody wants to take a stab at using some open source code from the >>>>>> Apollo 11 onboard computer in Drupal? >>>>>> >>>>>> >>>>>> http://googlecode.blogspot.com/2009/07/apollo-11-missions-40th-anniversary-one.html >>>>>> >>>>>> 8-) >>>>>> >>>>>> -- >>>>>> Tom?? J. F?l?pp >>>>>> http://www.vacilando.org >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Sandip Dev >>>>> B.Tech, 3rd Year >>>>> Computer Engineering, NIT-Surat >>>>> >>>>> www.blogs.sun.com/sandip >>>>> www.itsallpartoftheplan.wordpress.com >>>>> >>>> >>>> >>> >>> >>> -- >>> Sandip Dev >>> B.Tech, 3rd Year >>> Computer Engineering, NIT-Surat >>> >>> www.blogs.sun.com/sandip >>> www.itsallpartoftheplan.wordpress.com >>> >> >> >> >> -- >> -- >> -- >> Steve Power >> Principal Consultant >> Mobile: +44 (0) 7747 027 243 >> Initsix Technology and Media >> -- >> > > -- Sandip Dev B.Tech, 3rd Year Computer Engineering, NIT-Surat www.blogs.sun.com/sandip www.itsallpartoftheplan.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sivaji2009 at gmail.com Fri Jul 24 07:51:07 2009 From: sivaji2009 at gmail.com (sivaji j.g) Date: Fri, 24 Jul 2009 13:21:07 +0530 Subject: [development] node_preview return access denied page Message-ID: I am working on quiz questions import module. This module allows quiz authors to create bulk of questions from csv text files. I have no problem in creating questions node from imported file and saving it to database. I would like to show a preview of import question (which are nodes) before they get saved into database. Node object generated from file looks like http://drupalbin.com/10639 . When i call node_view or node_preview with this node object it returns access denied page. Is there anything i need to do before calling node_preview ? Any help will be greatly appreciated. -- Thanks Sivaji -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipench at gmail.com Fri Jul 24 08:10:55 2009 From: dipench at gmail.com (Dipen) Date: Fri, 24 Jul 2009 13:40:55 +0530 Subject: [development] node_preview return access denied page In-Reply-To: References: Message-ID: <1fcccc8a0907240110o33db297fne6509d1d8a19c3cb@mail.gmail.com> Hi sivaji, Whats your implementation of hook_access? What all permissions you have defined for importing quiz items? Is your complete code available somewhere online? dipen On Fri, Jul 24, 2009 at 1:21 PM, sivaji j.g wrote: > I am working on quiz questions import module. This module allows quiz > authors to create bulk of questions from csv text files. I have no problem > in creating questions node from imported file and saving it to database. > > I would like to show a preview of import question (which are nodes) before > they get saved into database. Node object generated from file looks like > http://drupalbin.com/10639 . When i call node_view or node_preview with > this node object it returns access denied page. Is there anything i need to > do before calling node_preview ? > Any help will be greatly appreciated. > > > > -- > Thanks > Sivaji > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sivaji2009 at gmail.com Fri Jul 24 09:50:08 2009 From: sivaji2009 at gmail.com (sivaji j.g) Date: Fri, 24 Jul 2009 15:20:08 +0530 Subject: [development] node_preview return access denied page In-Reply-To: <1fcccc8a0907240110o33db297fne6509d1d8a19c3cb@mail.gmail.com> References: <1fcccc8a0907240110o33db297fne6509d1d8a19c3cb@mail.gmail.com> Message-ID: On Fri, Jul 24, 2009 at 1:40 PM, Dipen wrote: > Hi sivaji, > > Whats your implementation of hook_access? There is no hook_access. I just tried to write a hook_access which simply return TRUE on all the case, still its not working. > What all permissions you have defined for importing quiz items? function questions_import_perm() { return array('import_questions'); } > Is your complete code available somewhere online? http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/quiz/includes/questions_import/?pathrev=DRUPAL-6--4 This code has no questions node preview or node_preview call. It is written very badly, i am trying to refactor and add preview option to it. I just checking whether node_preview trick will work here or not. this is the code which return "access denied page" http://drupalbin.com/10641 around line no 31 > > > -- Thanks Sivaji -------------- next part -------------- An HTML attachment was scrubbed... URL: From nan_wich at bellsouth.net Fri Jul 24 16:40:13 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Fri, 24 Jul 2009 16:40:13 +0000 Subject: [development] Howto: Override $node_url in theme Message-ID: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> My module implements template_preprocess_hook, but when it fires, the $variables['node_url'] is not set yet. I have gone through the themong guide and tried just about every preprocess hook there is and none of them has that variable set when I get control. It is set in theme.inc in template_preprocess_node, without regard as to whether or not it is already set. I even tried mymodule_preprocess_node, and it is still not set there. The problem may be because my module's weight is -2 due to a timing problem with the user module. So I am probably getting called before node.module too. So how can I change that value? -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From field.ninja at gmail.com Fri Jul 24 17:55:25 2009 From: field.ninja at gmail.com (Bushidodeep) Date: Fri, 24 Jul 2009 10:55:25 -0700 Subject: [development] File Storage and Path Display Message-ID: <80EF87E9-F99D-4CA5-9E64-5D411C7AA561@gmail.com> Greetings, I've run into a "best practices" question, I've created a directory (i) inside the sites->default->files->i for storing thumbnails and custom logo and manually placed the thumbnails there. Linking to the thumbnails with a text link. Upon a:hover, the path to the files directory( sites/default/files/i) appears in the status bar. Is this customary or have I forgotten a setting in one of the path modules, that would obscure this? CK From ISimonHodes at jwa.org Fri Jul 24 18:03:59 2009 From: ISimonHodes at jwa.org (Isaac Simon Hodes) Date: Fri, 24 Jul 2009 14:03:59 -0400 Subject: [development] Custom form to create multiple related CCK nodes Message-ID: I need a form which will allow users to create several related CCK nodes at the same time. Node (a) will include a filefield. Node (b) will need to refer to node (a) using a nodereference field. I would like to use as much of CCK's built-in validation, submission, input widget, and security functionality as possible/practical. It seems that I should either create a custom form from scratch, or concatenate and manipulate the 'normal' node creation forms for the relevant content types. What is the best way to accomplish this in Drupal 6? Several CCK gurus have warned against using drupal_execute for this purpose, so I'd like to stay away from that. Thank you very much for your help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter at attiks.com Fri Jul 24 18:22:00 2009 From: Peter at attiks.com (Peter Droogmans) Date: Fri, 24 Jul 2009 20:22:00 +0200 Subject: [development] SPAM --- Howto: Override $node_url in theme In-Reply-To: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> References: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: The weight of modules can be found in the system table From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of nan_wich at bellsouth.net Sent: vrijdag 24 juli 2009 18:40 To: development Subject: SPAM --- [development] Howto: Override $node_url in theme My module implements template_preprocess_hook, but when it fires, the $variables['node_url'] is not set yet. I have gone through the themong guide and tried just about every preprocess hook there is and none of them has that variable set when I get control. It is set in theme.inc in template_preprocess_node, without regard as to whether or not it is already set. I even tried mymodule_preprocess_node, and it is still not set there. The problem may be because my module's weight is -2 due to a timing problem with the user module. So I am probably getting called before node.module too. So how can I change that value? -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steven.jones at computerminds.co.uk Fri Jul 24 18:32:26 2009 From: steven.jones at computerminds.co.uk (Steven Jones) Date: Fri, 24 Jul 2009 19:32:26 +0100 Subject: [development] Custom form to create multiple related CCK nodes In-Reply-To: References: Message-ID: We've done a lot of this kind of thing recently, and unfortunately having more than one node form on the same page is a recipe for disaster. If you really want to do this you should look at the subform_element module, and never add the same CCK field to two different content types. Also any AHAH will break badly. On Friday, July 24, 2009, Isaac Simon Hodes wrote: > > > > > > > > > > > I need a form which will allow users to create several related CCK nodes at > the same time. Node (a) will include a filefield. Node (b) will need to > refer to node (a) using a nodereference field. > > I would like to use as much of CCK's built-in validation, submission, input > widget, and security functionality as possible/practical. > > It seems that I should either create a custom form from scratch, or > concatenate and manipulate the 'normal' node creation forms for the relevant > content types. What is the best way to accomplish this in Drupal 6? > > Several CCK gurus have warned against using drupal_execute for this purpose, > so I'd like to stay away from that. > > Thank you very much for your help! > > > > > > -- Regards Steven Jones ComputerMinds ltd - Perfect Drupal Websites Phone : 024 7666 7277 Mobile : 07951 270 026 Twitter : darthsteven http://www.computerminds.co.uk From nan_wich at bellsouth.net Fri Jul 24 18:34:55 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Fri, 24 Jul 2009 18:34:55 +0000 Subject: [development] SPAM --- Howto: Override $node_url in theme In-Reply-To: References: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: <072420091834.16744.4A69FECF00068C5C0000416822216125569B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Peter Droogmans wrote: >The weight of modules can be found in the system table I am quite aware of how to change module weight. That is not the problem. The problem is how to set my own $variables['node_url'] in a theme preprocess function. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From paolomainardi at gmail.com Fri Jul 24 18:37:20 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Fri, 24 Jul 2009 20:37:20 +0200 Subject: [development] SPAM --- Howto: Override $node_url in theme In-Reply-To: References: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: Try this: http://drupal.org/project/moduleweight Paolo Mainardi CTO Twinbit http://www.paolomainardi.com Il giorno 24/lug/2009, alle ore 20.22, Peter Droogmans ha scritto: > The weight of modules can be found in the system table > > > > From: development-bounces at drupal.org [mailto:development- > bounces at drupal.org] On Behalf Of nan_wich at bellsouth.net > Sent: vrijdag 24 juli 2009 18:40 > To: development > Subject: SPAM --- [development] Howto: Override $node_url in theme > > > > > > > > My module implements template_preprocess_hook, but when it fires, > the $variables['node_url'] is not set yet. I have gone through the > themong guide and tried just about every preprocess hook there is > and none of them has that variable set when I get control. > > > > It is set in theme.inc in template_preprocess_node, without regard > as to whether or not it is already set. I even tried > mymodule_preprocess_node, and it is still not set there. > > > > The problem may be because my module's weight is -2 due to a timing > problem with the user module. So I am probably getting called before > node.module too. > > > > So how can I change that value? > > > > -- > Nancy E. Wichmann, PMP > > Injustice anywhere is a threat to justice everywhere. -- Dr. Martin > L. King, Jr. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at brianvuyk.com Fri Jul 24 18:37:42 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Fri, 24 Jul 2009 14:37:42 -0400 Subject: [development] Redirect a CCK node form Message-ID: <4A69FF76.5090208@brianvuyk.com> What is the best way to redirect a node form after submission? I've tried adding a new submit handler via hook_form_alter(), then setting $form_state['redirect'] in my submit handler. However, it appears to be overwritten later to go to the newly-saved module. -- Brian Vuyk Web Design & Development Phone: 613-534-2916 brian at brianvuyk.com | http://www.brianvuyk.com From jobs.cub at bushidodeep.com Fri Jul 24 19:26:32 2009 From: jobs.cub at bushidodeep.com (Bushidodeep) Date: Fri, 24 Jul 2009 12:26:32 -0700 Subject: [development] Custom Directories Message-ID: <6DBA29C6-4FE0-43D0-8163-5F22D159C61C@bushidodeep.com> Greetings, I've run into a "best practices" question, I've created a directory (i) inside the sites->default->files->i for storing thumbnails and custom logo and manually placed the thumbnails there. Linking to the thumbnails with a text link. Upon a:hover, the path to the files directory( sites/default/files/i) appears in the status bar. Is this customary or have I forgotten a setting in one of the path modules, that would obscure this? CK From predofaria at gmail.com Fri Jul 24 19:43:56 2009 From: predofaria at gmail.com (Pedro Faria de Miranda Pinto) Date: Fri, 24 Jul 2009 16:43:56 -0300 Subject: [development] Custom Directories In-Reply-To: <6DBA29C6-4FE0-43D0-8163-5F22D159C61C@bushidodeep.com> References: <6DBA29C6-4FE0-43D0-8163-5F22D159C61C@bushidodeep.com> Message-ID: Its normal unless if you set drupal to use a private mode. On Fri, Jul 24, 2009 at 4:26 PM, Bushidodeep wrote: > Greetings, > > I've run into a "best practices" question, I've created a directory (i) > inside the sites->default->files->i for storing > thumbnails and custom logo and manually placed the thumbnails there. > > Linking to the thumbnails with a text link. Upon a:hover, the path to the > files directory( sites/default/files/i) appears in the status bar. > Is this customary or have I forgotten a setting in one of the path modules, > that would obscure this? > > > > CK > > > > > > > > -- Pedro Faria de Miranda Pinto http://www.eusouopedro.com http://www.phpavancado.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at rootyhollow.com Fri Jul 24 18:31:43 2009 From: jim at rootyhollow.com (Jim Taylor) Date: Fri, 24 Jul 2009 14:31:43 -0400 Subject: [development] SPAM --- Howto: Override $node_url in theme In-Reply-To: References: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: <2f2379e70907241131u60185358tb54e34cb7c045776@mail.gmail.com> http://drupal.org/project/util On Fri, Jul 24, 2009 at 2:22 PM, Peter Droogmans wrote: > The weight of modules can be found in the system table > > > > *From:* development-bounces at drupal.org [mailto: > development-bounces at drupal.org] *On Behalf Of *nan_wich at bellsouth.net > *Sent:* vrijdag 24 juli 2009 18:40 > *To:* development > *Subject:* SPAM --- [development] Howto: Override $node_url in theme > > > > > > > > My module implements template_preprocess_hook, but when it fires, the > $variables['node_url'] is not set yet. I have gone through the themong guide > and tried just about every preprocess hook there is and none of them has > that variable set when I get control. > > > > It is set in theme.inc in template_preprocess_node, without regard as to > whether or not it is already set. I even tried mymodule_preprocess_node, and > it is still not set there. > > > > The problem may be because my module's weight is -2 due to a timing problem > with the user module. So I am probably getting called before node.module > too. > > > > So how can I change that value? > > > > -- > Nancy E. Wichmann, PMP > > Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. > King, Jr. > > > > > -- Jim Taylor Rooty Hollow LLC, Owner jim at rootyhollow.com www.rootyhollow.com (614) 432-8609 Twitter: jalama Linkedin: http://www.linkedin.com/in/rootyhollow -------------- next part -------------- An HTML attachment was scrubbed... URL: From william.darren at gmail.com Fri Jul 24 20:04:14 2009 From: william.darren at gmail.com (William Smith) Date: Fri, 24 Jul 2009 16:04:14 -0400 Subject: [development] SPAM --- Howto: Override $node_url in theme In-Reply-To: <2f2379e70907241131u60185358tb54e34cb7c045776@mail.gmail.com> References: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> <2f2379e70907241131u60185358tb54e34cb7c045776@mail.gmail.com> Message-ID: <74630ca20907241304j7dca12f3w21950b0b023d8314@mail.gmail.com> Everybody has given excellent suggestions regarding how to change a module's weight, but please do note the original question, as well as Nancy's follow up. She is not asking about how to set a module's weight, and obviously knows how to do this as she altered her module's weight intentionally and for (presumably) good reason. The question is about setting one of the $variable array elements within a theme_preprocess hook. Sorry Nancy, I don't have an answer for you. It sounds as though your suspicion is correct that because your code is being called before the node module's code, it is getting overwritten at that level. Maybe you could break out your preprocess function into a separate module space so that you can keep your -2 weighting for your base module but the section that needs to run after node.module is done its business could be at an unaltered weight. Not the cleanest solution, certainly .. and it may not work in your context depending on what you are doing. Best, William On Fri, Jul 24, 2009 at 2:31 PM, Jim Taylor wrote: > http://drupal.org/project/util > > > On Fri, Jul 24, 2009 at 2:22 PM, Peter Droogmans wrote: > >> The weight of modules can be found in the system table >> >> >> >> *From:* development-bounces at drupal.org [mailto: >> development-bounces at drupal.org] *On Behalf Of *nan_wich at bellsouth.net >> *Sent:* vrijdag 24 juli 2009 18:40 >> *To:* development >> *Subject:* SPAM --- [development] Howto: Override $node_url in theme >> >> >> >> >> >> >> >> My module implements template_preprocess_hook, but when it fires, the >> $variables['node_url'] is not set yet. I have gone through the themong guide >> and tried just about every preprocess hook there is and none of them has >> that variable set when I get control. >> >> >> >> It is set in theme.inc in template_preprocess_node, without regard as to >> whether or not it is already set. I even tried mymodule_preprocess_node, and >> it is still not set there. >> >> >> >> The problem may be because my module's weight is -2 due to a timing >> problem with the user module. So I am probably getting called before >> node.module too. >> >> >> >> So how can I change that value? >> >> >> >> -- >> Nancy E. Wichmann, PMP >> >> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. >> King, Jr. >> >> >> >> >> > > > -- > Jim Taylor > Rooty Hollow LLC, Owner > jim at rootyhollow.com > www.rootyhollow.com > (614) 432-8609 > > Twitter: jalama > Linkedin: http://www.linkedin.com/in/rootyhollow > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at siarp.de Fri Jul 24 21:48:52 2009 From: martin at siarp.de (Martin Stadler) Date: Fri, 24 Jul 2009 23:48:52 +0200 Subject: [development] File Storage and Path Display In-Reply-To: <80EF87E9-F99D-4CA5-9E64-5D411C7AA561@gmail.com> References: <80EF87E9-F99D-4CA5-9E64-5D411C7AA561@gmail.com> Message-ID: Am 24.07.2009 um 19:55 schrieb Bushidodeep: > Greetings, > > I've run into a "best practices" question, I've created a directory > (i) inside the sites->default->files->i for storing > thumbnails and custom logo and manually placed the thumbnails there. > > Linking to the thumbnails with a text link. Upon a:hover, the path > to the files directory( sites/default/files/i) appears in the status > bar. > Is this customary or have I forgotten a setting in one of the path > modules, that would obscure this? > > > > CK > Most browsers show the URL a link (a href) ist pointing to in the status bar if you hover over it with the mouse. Drupal does not do anything here. If you put something in your files directory and link to it, well, that is the URL (href). Why would you obscure this? And how is this about best practice? Martin From jobs.cub at bushidodeep.com Fri Jul 24 22:34:10 2009 From: jobs.cub at bushidodeep.com (Bushidodeep) Date: Fri, 24 Jul 2009 15:34:10 -0700 Subject: [development] File Storage and Path Display In-Reply-To: References: <80EF87E9-F99D-4CA5-9E64-5D411C7AA561@gmail.com> Message-ID: HI, I thought I had neglected a security measure, that would compromise "best practices". After reviewing some of the path modules, I misunderstood whether this path should be visible, but given an alias. CK On Jul 24, 2009, at 2:48 PM, Martin Stadler wrote: > > Am 24.07.2009 um 19:55 schrieb Bushidodeep: > >> Greetings, >> >> I've run into a "best practices" question, I've created a directory >> (i) inside the sites->default->files->i for storing >> thumbnails and custom logo and manually placed the thumbnails there. >> >> Linking to the thumbnails with a text link. Upon a:hover, the path >> to the files directory( sites/default/files/i) appears in the >> status bar. >> Is this customary or have I forgotten a setting in one of the path >> modules, that would obscure this? >> >> >> >> CK >> > > Most browsers show the URL a link (a href) ist pointing to in the > status bar if you hover over it with the mouse. Drupal does not do > anything here. If you put something in your files directory and link > to it, well, that is the URL (href). Why would you obscure this? And > how is this about best practice? > > Martin > From nan_wich at bellsouth.net Sat Jul 25 01:40:06 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Sat, 25 Jul 2009 01:40:06 +0000 Subject: [development] SPAM --- Howto: Override $node_url in theme In-Reply-To: <74630ca20907241304j7dca12f3w21950b0b023d8314@mail.gmail.com> References: <072420091640.16702.4A69E3ED00071E040000413E22243651029B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net><2f2379e70907241131u60185358tb54e34cb7c045776@mail.gmail.com> <74630ca20907241304j7dca12f3w21950b0b023d8314@mail.gmail.com> Message-ID: <072520090140.92.4A6A6275000EEC7D0000005C22230703729B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> William Smith wrote: > altered her module's weight intentionally and for (presumably) good reason. It's not terribly material, but the reason is because we wanted to "rescue" nodes from a user that gets deleted. The user.module does bad things before calling our module. There is an open issue about that. >It sounds as though your suspicion is correct that because your code is > being called before the node module's code, Actually, I don't believe that node.module is involved at all. This is done in theme.inc. Further, it dawned on me that the user timing issue is now actually in a separate add-on module, so I set the main module's weight to 1, so that it would run later and it made no difference. My suspicion now is that the theme.inc code runs after all the preprocess functions and there's not a lot I can do, except open an issue against D7 to have it check to see if that variable is already set before it changes it. That won't help my D6 code though. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From drupal-devel at webchick.net Sat Jul 25 06:57:23 2009 From: drupal-devel at webchick.net (Angela Byron) Date: Sat, 25 Jul 2009 02:57:23 -0400 Subject: [development] Announcing DRUPAL-7-0-UNSTABLE-8 Message-ID: <28839371-5887-422B-96B2-E29F0178E4D5@webchick.net> Howdy there, development list! Sadly, it's been a shamefully long time (almost two months!) since our last interim unstable release. But the good news is that this release is BURSTING with awesome. That's right. Not merely filled with awesome. BURSTING with it. More on that in a second. Since this will probably be the last interim unstable release before code freeze, I have some unsightly begging to do, and I also want to take as many opportunities as possible to point people towards existing efforts. This e-mail will be a bit long. You have been warned! First, remember that there are *less than 6 weeks* until code freeze, which is September 1 (same day Drupalcon Paris starts, which you already have your ticket for, RIGHT? :)). Remember: at code freeze, we need to turn off the glorious fountain of world-dominating awesome (also known as new features and API changes), and instead turn our attention to removing the scum that's accumulated on its sides and the bits of bird poop clogging its nozzles (also known as bug fixing). Hm. I think my analogy fell apart there a little bit... Anyway! The point being: there has NEVER been a more critical time to help drive forward important Drupal 7 patches than *right now*! To support this, I've identified some of these areas that need assistance inline with related new changes. Click a link, get a list of oodles of would- be-totally-fantastic things that need people to push them through! To help these efforts along, every weekend for the entire month of August I will heading up "virtual" patch review sprints on IRC in #drupal and #drupal-dev. Details on patch review sprints can be found at http://drupal.org/node/442368. *Anyone* can drop by, learn the ropes of reviewing patches from the Drupal ninjas, and help important new features get committed by trying out proposed changes and giving feedback. It would *also* be awesome for these sprints to coincide with "real life" patch review sprints at local Drupal meetups, as the LA group will be doing at their bug-fixing sprint: http://drupal.org/node/ 520184. So, please! Organize something in your own community for some weekend during the month of August! :) Maybe someone can head up compiling a big list of these somewhere. Finally, I am away for the next week on what my wife informs me is commonly referred to as some very bizarre word I've never heard of before (must be Sumerian) called "vacation." So I will not be on IRC, reading/responding to e-mail, or... committing patches. :( However! I'm told that these "vacations" are often very "relaxing" and sometimes you even get to catch up on "sleep" (so many of these new words!) so when I get back on August 2, I hope to be pounding at the issue queue with renewed vigor! A nice big fat RTBC queue waiting for me when I get back, filled with many fantastic improvements would be a wonderful welcome-home present! :) (Note: *especially* usability- related patches: I want end users to feel the same sense of wonder at Drupal 7's greatness that developers will feel!) Ok. Stepping off my soapbox, now. Let's get down to business: what's new in DRUPAL-7-0-UNSTABLE-8! --- Changes for developers: ======================= - Berdir has been leading the charge on lots of conversions to the new database abstraction layer in Drupal 7 (DBTNG). Most of core has now been converted, with just *two more* open issues! Check the "DBTNG Conversion" tag http://drupal.org/project/issues/search/drupal?status%5B%5D=Open&issue_tags=DBTNG+Conversion or the "database system" component for more general issues: http://drupal.org/project/issues/search/drupal?version []=7.x&component[]=database+system Note that this a *great* place to help out as you'll get a real jump-start on the new DBTNG syntax you'll need to know to code Drupal 7 modules. (Incidentally, it's also a great time to *port* your modules to Drupal 7 to ensure that the new DB layer contains everything you'll need to do the job!) - Speaking of database stuff, Schema API now has support for defining foreign key relations between tables. While core doesn't do anything with this information yet (due to the fact that we have to support stinky old MyISAM tables), contrib modules certainly could. There's also now support for queries to ignore slaves when you are using a replication set up, which is great for high performance sites. - The miserable DX suck-fest that is node_get_types() has been split up into much more reasonable function names like node_type_get_types() and node_type_get_names() etc. YAY! - Installation Profiles have at long last gotten some love! They now come with .info files where all of the various metadata such as name, description, dependencies, etc. goes. No more learning obscure PHP functions, and this lays important ground work for being able to smarten up the packaging system. Hooray! Adrian has big plans for a more robust installation profile system. Check the "installation profiles" tag for places to help out: http://drupal.org/project/issues/search/drupal?issue_tags=installation+profiles - Catch has been going bananas with a code profiler, filling the issue queue with all sorts of interesting optimization issues and patches. This is an important area, because right now D7's performance as compared to D6's is not so hot. Wanna help? Check out issues under the "Performance" tag: http://drupal.org/project/issues/search/drupal?issue_tags=Performance - Field API improvements galore, including conversion of node's "body" and "teaser" fields, a query API for our pluggable storage system, alter hooks for all of the various metadata and settings, and fieldable taxonomy terms. See the "Fields in Core" tag for many, many more places to help out! http://drupal.org/project/issues/search/drupal?issue_tags=Fields+in+Core - Lots of improvements in the testing world, including user interface improvements to SimpleTest module (you can now re-run the same batch of tests easily), a 'verbose' debugging mode, improved test coverage of long-neglected areas such as Poll module, and various under-the- hood improvements for rolling out version 2.0 of the testing bot. Check out http://drupal.org/project/issues/drupal?component=simpletest.module for issues about SimpleTest, or http://testing.drupal.org/%20PIFR-2-Client-Configuration-FAQs for how you can help bring about the next generation testing framework. - t() now supports additional contextual information for short strings, which comes in really handy since words like "View" can often mean entirely different things depending on what it's referring to. The "i18n sprint" tag at http://drupal.org/project/issues/search/drupal?issue_tags=i18n+sprint has many more issues vying for attention. Changes for themers: ==================== - Under the banner of "eliminating WTFs/minute for new themers", themes no longer auto-recognize scripts.js and style.css: you specify those in the .info file same as you do all other CSS/JS files. Additionally, themes no longer support the theme_engine prefix name on function calls: always use the theme name. http://drupal.org/project/issues/drupal?component=theme+system has lots of other theme improvements that need review and code. - All dynamic classes in templates are now in a single $classes string (and corresponding $classes_array). Good bye, class="node" and hello class="" w00t! Check out the tpl-refresh tag for similar .tpl.php clean-up patches: http://drupal.org/project/issues/search/drupal?issue_tags=tpl-refresh - New functions render(), hide(), and show() have been introduced for selecting exactly when and where to print *part* of a complex variable such as $content without having to micro-manage the whole thing. I'm very tired and doing a horrible job of explaining this, but hopefully http://drupal.org/update/theme/6/7#granular helps. - jQuery UI now ships with Drupal core! Would love to see some patches that take advantage of this library to improve user experience, and/or replace our old, crusty custom implementations of stuff like autocomplete. Additionally, a new drupal_add_library function was added, to provide a centralized registry for JS/CSS libraries such as jQuery UI. Are you a JS wizard? Hit up the "javascript" component: http://drupal.org/project/issues/drupal?component=javascript - Does accessibility tickle your fancy? mgifford and Everett Zufelt are heading up a massive movement for making Drupal conform to WAI- ARIA standards. http://drupal.org/project/issues/search/drupal?issue_tags=accessibility is the place to be to dive in there. Changes for end-users: ===================== - A swanky-looking new admin toolbar, and some re-working of administration paths. This isn't quite what you see in the mocks at http://www.d7ux.org/header/ (it's missing icons, for one), but lays the initial ground work for further improvements. The "d7ux" tag has a plethora of places to help drive this important work home, especially if you have front-end development (JavaScript, CSS, etc.) skills. http://drupal.org/project/issues/search/drupal?issue_tags=d7ux - IMAGE HANDLING IN CORE!! You heard it here first. (Well. Unless you heard it on Drupal Planet, or Twitter, or...) So far, we've got ImageCache in core - which allows the set up of "image styles" (like thumbnail or album cover) with various "image effects" attached (like "scale & crop" or "rotate") which can then be applied to any image in the system, such as user pictures. Check out the "ImageInCore" tag if you want to help quicksketch and drewish drive home the remaining patches: http://drupal.org/project/issues/search/drupal?issue_tags=ImageInCore - Tons of work is being put forth into an effort to move "Plugin Manager" into core. What is Plugin Manager you ask? Can you say automatic project updates from within Drupal? I *knew* you could! So far we have some underlying libraries for handling SSH/SFTP/FTP communication, but there's still much more work to be done before this is ready, and could use YOUR help. I don't think this one has a tag, but http://drupal.org/project/issues/search/drupal?text=plugin+manager+in+core should get you the relevant issues. - Path and Search module are now enabled in the default profile, thus eliminating the first step that 90% of Drupal site builders do once they've installed Drupal. Core also ships with an admin role, eliminating the second step that 90% of Drupal site builders do once they've installed Drupal. ;) There's more of this kind of stuff under the "usability" tag: http://drupal.org/project/issues/search/drupal?issue_tags=usability - The wall of text that appears when you first install Drupal, including (mysteriously) to anonymous visitors, and whose instructions "helpfully" disappears when you post your first piece of content thus leaving you completely straded, has been moved to the landing page of the help system. In its place is a simple message that there has been no front page content posted yet, and invites you to either create content or go change your home page. Drupal's default out-of-the-box experience is being discussed at http://drupal.org/node/483987. It would be wonderful to have some folks working on this before code freeze. - A variety of help text clean-up patches, mainly in removing useless or overly verbose messages. If squeaky-clean text is up your alley, try the "user interface text" component: http://drupal.org/project/issues/drupal?component=user+interface+text - Per-content type block visibility that we ripped out of core in Drupal 5 or so is now back! There'll now be a nice little selection for showing a block only on "Story" nodes, for example. - Form element titles no longer end with a colon by default. Goodbye, "How old are you?:" You will not be missed! --- Hm. I think those are all the commit messages that stand out to me at this hour. Thanks very much to everyone's tremendous efforts towards these great improvements, and thanks in advance to everyone who helps drive us through the most exciting 6 weeks of Drupal yet! :D -Angie From drupal-devel at webchick.net Sat Jul 25 07:24:55 2009 From: drupal-devel at webchick.net (Angela Byron) Date: Sat, 25 Jul 2009 03:24:55 -0400 Subject: [development] Announcing DRUPAL-7-0-UNSTABLE-8 In-Reply-To: <28839371-5887-422B-96B2-E29F0178E4D5@webchick.net> References: <28839371-5887-422B-96B2-E29F0178E4D5@webchick.net> Message-ID: <1016DFB9-2A71-44AD-B503-2E334D3F58FE@webchick.net> Oops! I forgot to attach the full list of commits. Sorry about that! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- On 25-Jul-09, at 2:57 AM, Angela Byron wrote: > > Howdy there, development list! > > Sadly, it's been a shamefully long time (almost two months!) since > our last interim unstable release. But the good news is that this > release is BURSTING with awesome. That's right. Not merely filled > with awesome. BURSTING with it. More on that in a second. Since this > will probably be the last interim unstable release before code > freeze, I have some unsightly begging to do, and I also want to take > as many opportunities as possible to point people towards existing > efforts. This e-mail will be a bit long. You have been warned! > > First, remember that there are *less than 6 weeks* until code > freeze, which is September 1 (same day Drupalcon Paris starts, which > you already have your ticket for, RIGHT? :)). Remember: at code > freeze, we need to turn off the glorious fountain of world- > dominating awesome (also known as new features and API changes), and > instead turn our attention to removing the scum that's accumulated > on its sides and the bits of bird poop clogging its nozzles (also > known as bug fixing). Hm. I think my analogy fell apart there a > little bit... Anyway! > > The point being: there has NEVER been a more critical time to help > drive forward important Drupal 7 patches than *right now*! To > support this, I've identified some of these areas that need > assistance inline with related new changes. Click a link, get a list > of oodles of would-be-totally-fantastic things that need people to > push them through! > > To help these efforts along, every weekend for the entire month of > August I will heading up "virtual" patch review sprints on IRC in > #drupal and #drupal-dev. Details on patch review sprints can be > found at http://drupal.org/node/442368. *Anyone* can drop by, learn > the ropes of reviewing patches from the Drupal ninjas, and help > important new features get committed by trying out proposed changes > and giving feedback. > > It would *also* be awesome for these sprints to coincide with "real > life" patch review sprints at local Drupal meetups, as the LA group > will be doing at their bug-fixing sprint: http://drupal.org/node/520184 > . So, please! Organize something in your own community for some > weekend during the month of August! :) Maybe someone can head up > compiling a big list of these somewhere. > > Finally, I am away for the next week on what my wife informs me is > commonly referred to as some very bizarre word I've never heard of > before (must be Sumerian) called "vacation." So I will not be on > IRC, reading/responding to e-mail, or... committing patches. : > ( However! I'm told that these "vacations" are often very "relaxing" > and sometimes you even get to catch up on "sleep" (so many of these > new words!) so when I get back on August 2, I hope to be pounding at > the issue queue with renewed vigor! A nice big fat RTBC queue > waiting for me when I get back, filled with many fantastic > improvements would be a wonderful welcome-home present! :) (Note: > *especially* usability-related patches: I want end users to feel the > same sense of wonder at Drupal 7's greatness that developers will > feel!) > > Ok. Stepping off my soapbox, now. Let's get down to business: what's > new in DRUPAL-7-0-UNSTABLE-8! > > --- > > Changes for developers: > ======================= > > - Berdir has been leading the charge on lots of conversions to the > new database abstraction layer in Drupal 7 (DBTNG). Most of core has > now been converted, with just *two more* open issues! Check the > "DBTNG Conversion" tag http://drupal.org/project/issues/search/drupal?status%5B%5D=Open&issue_tags=DBTNG+Conversion > or the "database system" component for more general issues: http://drupal.org/project/issues/search/drupal?version > []=7.x&component[]=database+system Note that this a *great* place to > help out as you'll get a real jump-start on the new DBTNG syntax > you'll need to know to code Drupal 7 modules. (Incidentally, it's > also a great time to *port* your modules to Drupal 7 to ensure that > the new DB layer contains everything you'll need to do the job!) > > - Speaking of database stuff, Schema API now has support for > defining foreign key relations between tables. While core doesn't do > anything with this information yet (due to the fact that we have to > support stinky old MyISAM tables), contrib modules certainly could. > There's also now support for queries to ignore slaves when you are > using a replication set up, which is great for high performance sites. > > - The miserable DX suck-fest that is node_get_types() has been split > up into much more reasonable function names like > node_type_get_types() and node_type_get_names() etc. YAY! > > - Installation Profiles have at long last gotten some love! They now > come with .info files where all of the various metadata such as > name, description, dependencies, etc. goes. No more learning obscure > PHP functions, and this lays important ground work for being able to > smarten up the packaging system. Hooray! Adrian has big plans for a > more robust installation profile system. Check the "installation > profiles" tag for places to help out: http://drupal.org/project/issues/search/drupal?issue_tags=installation+profiles > > - Catch has been going bananas with a code profiler, filling the > issue queue with all sorts of interesting optimization issues and > patches. This is an important area, because right now D7's > performance as compared to D6's is not so hot. Wanna help? Check out > issues under the "Performance" tag: http://drupal.org/project/issues/search/drupal?issue_tags=Performance > > - Field API improvements galore, including conversion of node's > "body" and "teaser" fields, a query API for our pluggable storage > system, alter hooks for all of the various metadata and settings, > and fieldable taxonomy terms. See the "Fields in Core" tag for many, > many more places to help out! http://drupal.org/project/issues/search/drupal?issue_tags=Fields+in+Core > > - Lots of improvements in the testing world, including user > interface improvements to SimpleTest module (you can now re-run the > same batch of tests easily), a 'verbose' debugging mode, improved > test coverage of long-neglected areas such as Poll module, and > various under-the-hood improvements for rolling out version 2.0 of > the testing bot. Check out http://drupal.org/project/issues/drupal?component=simpletest.module > for issues about SimpleTest, or http://testing.drupal.org/%20PIFR-2-Client-Configuration-FAQs > for how you can help bring about the next generation testing > framework. > > - t() now supports additional contextual information for short > strings, which comes in really handy since words like "View" can > often mean entirely different things depending on what it's > referring to. The "i18n sprint" tag at http://drupal.org/project/issues/search/drupal?issue_tags=i18n+sprint > has many more issues vying for attention. > > Changes for themers: > ==================== > - Under the banner of "eliminating WTFs/minute for new themers", > themes no longer auto-recognize scripts.js and style.css: you > specify those in the .info file same as you do all other CSS/JS > files. Additionally, themes no longer support the theme_engine > prefix name on function calls: always use the theme name. http://drupal.org/project/issues/drupal?component=theme+system > has lots of other theme improvements that need review and code. > > - All dynamic classes in templates are now in a single $classes > string (and corresponding $classes_array). Good bye, class="node php if ($sticky) { print ' sticky'; } ?> ' node-unpublished'; } ?>" and hello class="" > w00t! Check out the tpl-refresh tag for similar .tpl.php clean-up > patches: http://drupal.org/project/issues/search/drupal?issue_tags=tpl-refresh > > - New functions render(), hide(), and show() have been introduced > for selecting exactly when and where to print *part* of a complex > variable such as $content without having to micro-manage the whole > thing. I'm very tired and doing a horrible job of explaining this, > but hopefully http://drupal.org/update/theme/6/7#granular helps. > > - jQuery UI now ships with Drupal core! Would love to see some > patches that take advantage of this library to improve user > experience, and/or replace our old, crusty custom implementations of > stuff like autocomplete. Additionally, a new drupal_add_library > function was added, to provide a centralized registry for JS/CSS > libraries such as jQuery UI. Are you a JS wizard? Hit up the > "javascript" component: http://drupal.org/project/issues/drupal?component=javascript > > - Does accessibility tickle your fancy? mgifford and Everett Zufelt > are heading up a massive movement for making Drupal conform to WAI- > ARIA standards. http://drupal.org/project/issues/search/drupal?issue_tags=accessibility > is the place to be to dive in there. > > Changes for end-users: > ===================== > - A swanky-looking new admin toolbar, and some re-working of > administration paths. This isn't quite what you see in the mocks at http://www.d7ux.org/header/ > (it's missing icons, for one), but lays the initial ground work for > further improvements. The "d7ux" tag has a plethora of places to > help drive this important work home, especially if you have front- > end development (JavaScript, CSS, etc.) skills. http://drupal.org/project/issues/search/drupal?issue_tags=d7ux > > - IMAGE HANDLING IN CORE!! You heard it here first. (Well. Unless > you heard it on Drupal Planet, or Twitter, or...) So far, we've got > ImageCache in core - which allows the set up of "image styles" (like > thumbnail or album cover) with various "image effects" attached > (like "scale & crop" or "rotate") which can then be applied to any > image in the system, such as user pictures. Check out the > "ImageInCore" tag if you want to help quicksketch and drewish drive > home the remaining patches: http://drupal.org/project/issues/search/drupal?issue_tags=ImageInCore > > - Tons of work is being put forth into an effort to move "Plugin > Manager" into core. What is Plugin Manager you ask? Can you say > automatic project updates from within Drupal? I *knew* you could! So > far we have some underlying libraries for handling SSH/SFTP/FTP > communication, but there's still much more work to be done before > this is ready, and could use YOUR help. I don't think this one has a > tag, but http://drupal.org/project/issues/search/drupal?text=plugin+manager+in+core > should get you the relevant issues. > > - Path and Search module are now enabled in the default profile, > thus eliminating the first step that 90% of Drupal site builders do > once they've installed Drupal. Core also ships with an admin role, > eliminating the second step that 90% of Drupal site builders do once > they've installed Drupal. ;) There's more of this kind of stuff > under the "usability" tag: http://drupal.org/project/issues/search/drupal?issue_tags=usability > > - The wall of text that appears when you first install Drupal, > including (mysteriously) to anonymous visitors, and whose > instructions "helpfully" disappears when you post your first piece > of content thus leaving you completely straded, has been moved to > the landing page of the help system. In its place is a simple > message that there has been no front page content posted yet, and > invites you to either create content or go change your home page. > Drupal's default out-of-the-box experience is being discussed at http://drupal.org/node/483987 > . It would be wonderful to have some folks working on this before > code freeze. > > - A variety of help text clean-up patches, mainly in removing > useless or overly verbose messages. If squeaky-clean text is up your > alley, try the "user interface text" component: http://drupal.org/project/issues/drupal?component=user+interface+text > > - Per-content type block visibility that we ripped out of core in > Drupal 5 or so is now back! There'll now be a nice little selection > for showing a block only on "Story" nodes, for example. > > - Form element titles no longer end with a colon by default. > Goodbye, "How old are you?:" You will not be missed! > > --- > > Hm. I think those are all the commit messages that stand out to me > at this hour. Thanks very much to everyone's tremendous efforts > towards these great improvements, and thanks in advance to everyone > who helps drive us through the most exciting 6 weeks of Drupal yet! :D > > -Angie > From jonlee554 at gmail.com Sun Jul 26 03:05:36 2009 From: jonlee554 at gmail.com (Jon Lee) Date: Sat, 25 Jul 2009 23:05:36 -0400 Subject: [development] historical date field suggestions? Message-ID: Hello, I wish to make a CCK Date field that allows for approximate historical dates. As far as I understand in D6 you can have a from and to date, but the granularity is applied to both fields, for every use of the field. If I made a new content type called Historical Figure, and had birth and death dates, I would want to allow the user to be able to enter different kinds of birth dates, like "circa 1634", "April 1837", "Summer 1919" or "late 1600's". >From a db perspective I imagine I could make it a combination of a date or datetime plus an enum, and some drupal hook would be responsible for turning the date+enum into the phrase. What would be the best way of creating this new date field? I know the Date API has been extensively worked on, but am unsure how to hook into it. Should I just create a new date field type? Or try to use existing modules (say-- a multigroup of date + text area with the calculated fields module)? Thank you Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From winborn at advomatic.com Sun Jul 26 11:47:29 2009 From: winborn at advomatic.com (Aaron Winborn) Date: Sun, 26 Jul 2009 07:47:29 -0400 Subject: [development] Announcing DRUPAL-7-0-UNSTABLE-8 In-Reply-To: <28839371-5887-422B-96B2-E29F0178E4D5@webchick.net> References: <28839371-5887-422B-96B2-E29F0178E4D5@webchick.net> Message-ID: <4A6C4251.9050808@advomatic.com> Great work as usual, Angie! For those interested in some awesome media handling for d7, take a look at http://groups.drupal.org/node/24661 (a two day sprint in Philly). Join us in IRC today and tomorrow (Sunday & Monday, July 26-27). (Note I'll be aaronwinborn_ in IRC, because my desktop will be aaronwinborn, and I'll be on my laptop in Philly, two hours away. You can also ping drewish, jmstacey, alexua, justinrandell, pwolanin, or anyone else you happen to learn about being there). Patches planned for review: Support PHP stream wrappers: http://drupal.org/node/227232 File API Stream Wrapper Support (Part 1): http://drupal.org/node/519392 File API Stream Wrapper Support (Part 2): http://drupal.org/node/517814 Thanks, Aaron Angela Byron wrote: > > Howdy there, development list! > > Sadly, it's been a shamefully long time (almost two months!) since our > last interim unstable release. But the good news is that this release > is BURSTING with awesome. That's right. Not merely filled with > awesome. BURSTING with it. More on that in a second. Since this will > probably be the last interim unstable release before code freeze, I > have some unsightly begging to do, and I also want to take as many > opportunities as possible to point people towards existing efforts. > This e-mail will be a bit long. You have been warned! > > First, remember that there are *less than 6 weeks* until code freeze, > which is September 1 (same day Drupalcon Paris starts, which you > already have your ticket for, RIGHT? :)). Remember: at code freeze, we > need to turn off the glorious fountain of world-dominating awesome > (also known as new features and API changes), and instead turn our > attention to removing the scum that's accumulated on its sides and the > bits of bird poop clogging its nozzles (also known as bug fixing). Hm. > I think my analogy fell apart there a little bit... Anyway! > > The point being: there has NEVER been a more critical time to help > drive forward important Drupal 7 patches than *right now*! To support > this, I've identified some of these areas that need assistance inline > with related new changes. Click a link, get a list of oodles of > would-be-totally-fantastic things that need people to push them through! > > To help these efforts along, every weekend for the entire month of > August I will heading up "virtual" patch review sprints on IRC in > #drupal and #drupal-dev. Details on patch review sprints can be found > at http://drupal.org/node/442368. *Anyone* can drop by, learn the > ropes of reviewing patches from the Drupal ninjas, and help important > new features get committed by trying out proposed changes and giving > feedback. > > It would *also* be awesome for these sprints to coincide with "real > life" patch review sprints at local Drupal meetups, as the LA group > will be doing at their bug-fixing sprint: > http://drupal.org/node/520184. So, please! Organize something in your > own community for some weekend during the month of August! :) Maybe > someone can head up compiling a big list of these somewhere. > > Finally, I am away for the next week on what my wife informs me is > commonly referred to as some very bizarre word I've never heard of > before (must be Sumerian) called "vacation." So I will not be on IRC, > reading/responding to e-mail, or... committing patches. :( However! > I'm told that these "vacations" are often very "relaxing" and > sometimes you even get to catch up on "sleep" (so many of these new > words!) so when I get back on August 2, I hope to be pounding at the > issue queue with renewed vigor! A nice big fat RTBC queue waiting for > me when I get back, filled with many fantastic improvements would be a > wonderful welcome-home present! :) (Note: *especially* > usability-related patches: I want end users to feel the same sense of > wonder at Drupal 7's greatness that developers will feel!) > > Ok. Stepping off my soapbox, now. Let's get down to business: what's > new in DRUPAL-7-0-UNSTABLE-8! > > --- > > Changes for developers: > ======================= > > - Berdir has been leading the charge on lots of conversions to the new > database abstraction layer in Drupal 7 (DBTNG). Most of core has now > been converted, with just *two more* open issues! Check the "DBTNG > Conversion" tag > http://drupal.org/project/issues/search/drupal?status%5B%5D=Open&issue_tags=DBTNG+Conversion or > the "database system" component for more general issues: > http://drupal.org/project/issues/search/drupal?version[]=7.x&component[]=database+system > Note that this a *great* place to help out as you'll get a real > jump-start on the new DBTNG syntax you'll need to know to code Drupal > 7 modules. (Incidentally, it's also a great time to *port* your > modules to Drupal 7 to ensure that the new DB layer contains > everything you'll need to do the job!) > > - Speaking of database stuff, Schema API now has support for defining > foreign key relations between tables. While core doesn't do anything > with this information yet (due to the fact that we have to support > stinky old MyISAM tables), contrib modules certainly could. There's > also now support for queries to ignore slaves when you are using a > replication set up, which is great for high performance sites. > > - The miserable DX suck-fest that is node_get_types() has been split > up into much more reasonable function names like node_type_get_types() > and node_type_get_names() etc. YAY! > > - Installation Profiles have at long last gotten some love! They now > come with .info files where all of the various metadata such as name, > description, dependencies, etc. goes. No more learning obscure PHP > functions, and this lays important ground work for being able to > smarten up the packaging system. Hooray! Adrian has big plans for a > more robust installation profile system. Check the "installation > profiles" tag for places to help out: > http://drupal.org/project/issues/search/drupal?issue_tags=installation+profiles > > > - Catch has been going bananas with a code profiler, filling the issue > queue with all sorts of interesting optimization issues and patches. > This is an important area, because right now D7's performance as > compared to D6's is not so hot. Wanna help? Check out issues under the > "Performance" tag: > http://drupal.org/project/issues/search/drupal?issue_tags=Performance > > - Field API improvements galore, including conversion of node's "body" > and "teaser" fields, a query API for our pluggable storage system, > alter hooks for all of the various metadata and settings, and > fieldable taxonomy terms. See the "Fields in Core" tag for many, many > more places to help out! > http://drupal.org/project/issues/search/drupal?issue_tags=Fields+in+Core > > - Lots of improvements in the testing world, including user interface > improvements to SimpleTest module (you can now re-run the same batch > of tests easily), a 'verbose' debugging mode, improved test coverage > of long-neglected areas such as Poll module, and various > under-the-hood improvements for rolling out version 2.0 of the testing > bot. Check out > http://drupal.org/project/issues/drupal?component=simpletest.module for > issues about SimpleTest, or > http://testing.drupal.org/%20PIFR-2-Client-Configuration-FAQs for how > you can help bring about the next generation testing framework. > > - t() now supports additional contextual information for short > strings, which comes in really handy since words like "View" can often > mean entirely different things depending on what it's referring to. > The "i18n sprint" tag at > http://drupal.org/project/issues/search/drupal?issue_tags=i18n+sprint has > many more issues vying for attention. > > Changes for themers: > ==================== > - Under the banner of "eliminating WTFs/minute for new themers", > themes no longer auto-recognize scripts.js and style.css: you specify > those in the .info file same as you do all other CSS/JS files. > Additionally, themes no longer support the theme_engine prefix name on > function calls: always use the theme name. > http://drupal.org/project/issues/drupal?component=theme+system has > lots of other theme improvements that need review and code. > > - All dynamic classes in templates are now in a single $classes string > (and corresponding $classes_array). Good bye, class="node ($sticky) { print ' sticky'; } ?> node-unpublished'; } ?>" and hello class="" > w00t! Check out the tpl-refresh tag for similar .tpl.php clean-up > patches: > http://drupal.org/project/issues/search/drupal?issue_tags=tpl-refresh > > - New functions render(), hide(), and show() have been introduced for > selecting exactly when and where to print *part* of a complex variable > such as $content without having to micro-manage the whole thing. I'm > very tired and doing a horrible job of explaining this, but hopefully > http://drupal.org/update/theme/6/7#granular helps. > > - jQuery UI now ships with Drupal core! Would love to see some patches > that take advantage of this library to improve user experience, and/or > replace our old, crusty custom implementations of stuff like > autocomplete. Additionally, a new drupal_add_library function was > added, to provide a centralized registry for JS/CSS libraries such as > jQuery UI. Are you a JS wizard? Hit up the "javascript" component: > http://drupal.org/project/issues/drupal?component=javascript > > - Does accessibility tickle your fancy? mgifford and Everett Zufelt > are heading up a massive movement for making Drupal conform to > WAI-ARIA standards. > http://drupal.org/project/issues/search/drupal?issue_tags=accessibility is > the place to be to dive in there. > > Changes for end-users: > ===================== > - A swanky-looking new admin toolbar, and some re-working of > administration paths. This isn't quite what you see in the mocks at > http://www.d7ux.org/header/ (it's missing icons, for one), but lays > the initial ground work for further improvements. The "d7ux" tag has a > plethora of places to help drive this important work home, especially > if you have front-end development (JavaScript, CSS, etc.) skills. > http://drupal.org/project/issues/search/drupal?issue_tags=d7ux > > - IMAGE HANDLING IN CORE!! You heard it here first. (Well. Unless you > heard it on Drupal Planet, or Twitter, or...) So far, we've got > ImageCache in core - which allows the set up of "image styles" (like > thumbnail or album cover) with various "image effects" attached (like > "scale & crop" or "rotate") which can then be applied to any image in > the system, such as user pictures. Check out the "ImageInCore" tag if > you want to help quicksketch and drewish drive home the remaining > patches: > http://drupal.org/project/issues/search/drupal?issue_tags=ImageInCore > > - Tons of work is being put forth into an effort to move "Plugin > Manager" into core. What is Plugin Manager you ask? Can you say > automatic project updates from within Drupal? I *knew* you could! So > far we have some underlying libraries for handling SSH/SFTP/FTP > communication, but there's still much more work to be done before this > is ready, and could use YOUR help. I don't think this one has a tag, > but > http://drupal.org/project/issues/search/drupal?text=plugin+manager+in+core should > get you the relevant issues. > > - Path and Search module are now enabled in the default profile, thus > eliminating the first step that 90% of Drupal site builders do once > they've installed Drupal. Core also ships with an admin role, > eliminating the second step that 90% of Drupal site builders do once > they've installed Drupal. ;) There's more of this kind of stuff under > the "usability" tag: > http://drupal.org/project/issues/search/drupal?issue_tags=usability > > - The wall of text that appears when you first install Drupal, > including (mysteriously) to anonymous visitors, and whose instructions > "helpfully" disappears when you post your first piece of content thus > leaving you completely straded, has been moved to the landing page of > the help system. In its place is a simple message that there has been > no front page content posted yet, and invites you to either create > content or go change your home page. Drupal's default out-of-the-box > experience is being discussed at http://drupal.org/node/483987. It > would be wonderful to have some folks working on this before code freeze. > > - A variety of help text clean-up patches, mainly in removing useless > or overly verbose messages. If squeaky-clean text is up your alley, > try the "user interface text" component: > http://drupal.org/project/issues/drupal?component=user+interface+text > > - Per-content type block visibility that we ripped out of core in > Drupal 5 or so is now back! There'll now be a nice little selection > for showing a block only on "Story" nodes, for example. > > - Form element titles no longer end with a colon by default. Goodbye, > "How old are you?:" You will not be missed! > > --- > > Hm. I think those are all the commit messages that stand out to me at > this hour. Thanks very much to everyone's tremendous efforts towards > these great improvements, and thanks in advance to everyone who helps > drive us through the most exciting 6 weeks of Drupal yet! :D > > -Angie > -- Aaron Winborn Advomatic, LLC http://advomatic.com/ Drupal Multimedia available in September! http://www.packtpub.com/create-multimedia-website-with-drupal/book My blog: http://aaronwinborn.com/ From j.sintjago at xs4all.nl Sun Jul 26 20:56:50 2009 From: j.sintjago at xs4all.nl (Joop Sint Jago) Date: Sun, 26 Jul 2009 22:56:50 +0200 Subject: [development] Form Api - Passing arguments to a form Message-ID: <000901ca0e33$9906a170$cb13e450$@sintjago@xs4all.nl> Hello, I have searched d.org but cannot find the answer. I'm converting a D5 module to D6, but cannot succeed into passing some arguments when calling the form. $output = drupal_get_form('mymodule_form', $arguments_array); function mymodule_form($arguments_array) { // '#defualt_value' => $arguments_array['name'], // } If I'm not mistaken nothing changed at this point with D6. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hovercrafter at earthlink.net Sun Jul 26 21:10:55 2009 From: hovercrafter at earthlink.net (Jamie Holly) Date: Sun, 26 Jul 2009 17:10:55 -0400 Subject: [development] Form Api - Passing arguments to a form In-Reply-To: <000901ca0e33$9906a170$cb13e450$@sintjago@xs4all.nl> References: <000901ca0e33$9906a170$cb13e450$@sintjago@xs4all.nl> Message-ID: <4A6CC65F.2080601@earthlink.net> Drupal passes a form_state variable to the function first, so you need: function mymodule_form($form_state, $arguments_array) { Jamie Holly http://www.intoxination.net http://www.hollyit.net Joop Sint Jago wrote: > > Hello, > > I have searched d.org but cannot find the answer. > > I?m converting a D5 module to D6, but cannot succeed into passing some > arguments when calling the form. > > $output = drupal_get_form(?mymodule_form?, $arguments_array); > > function mymodule_form($arguments_array) { > > // > > ?#defualt_value? => $arguments_array[?name?], > // > > } > > If I?m not mistaken nothing changed at this point with D6. > > Thanks. > From rwohleb at techsanctuary.com Sun Jul 26 22:21:04 2009 From: rwohleb at techsanctuary.com (Robert Wohleb) Date: Sun, 26 Jul 2009 15:21:04 -0700 Subject: [development] Form Api - Passing arguments to a form In-Reply-To: <4A6CC65F.2080601@earthlink.net> References: <4A6CC65F.2080601@earthlink.net> Message-ID: The FAPI quick-start guide covers this, and some of the other changes. http://api.drupal.org/api/file/developer/topics/forms_api.html/6 ~Rob On Sun, Jul 26, 2009 at 2:10 PM, Jamie Holly wrote: > Drupal passes a form_state variable to the function first, so you need: > > function mymodule_form($form_state, $arguments_array) { > > > > Jamie Holly > http://www.intoxination.net http://www.hollyit.net > > > > > Joop Sint Jago wrote: > >> >> Hello, >> >> I have searched d.org but cannot find the answer. >> >> I?m converting a D5 module to D6, but cannot succeed into passing some >> arguments when calling the form. >> >> $output = drupal_get_form(?mymodule_form?, $arguments_array); >> >> function mymodule_form($arguments_array) { >> >> // >> >> ?#defualt_value? => $arguments_array[?name?], >> // >> >> } >> >> If I?m not mistaken nothing changed at this point with D6. >> >> Thanks. >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From earnie at users.sourceforge.net Mon Jul 27 12:42:33 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 27 Jul 2009 12:42:33 +0000 Subject: [development] Form Api - Passing arguments to a form In-Reply-To: <000901ca0e33$9906a170$cb13e450$@sintjago@xs4all.nl> References: <000901ca0e33$9906a170$cb13e450$@sintjago@xs4all.nl> Message-ID: <20090727124233.19505mxg4ukyi2sk@mail.siebunlimited.com> Quoting Joop Sint Jago : > Hello, > > I have searched d.org but cannot find the answer. > > > > I'm converting a D5 module to D6, but cannot succeed into passing some > arguments when calling the form. > > > > $output = drupal_get_form('mymodule_form', $arguments_array); > > > > function mymodule_form($arguments_array) { > > // > > '#defualt_value' => $arguments_array['name'], > // > > } > > > > If I'm not mistaken nothing changed at this point with D6. > I did the following search where I found http://drupal.org/node/114774 which then leads you quickly to http://drupal.org/node/144132. http://lmgtfy.com/?q=convert+5.x+site%3Adrupal.org -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From j.sintjago at xs4all.nl Mon Jul 27 13:04:20 2009 From: j.sintjago at xs4all.nl (Joop Sint Jago) Date: Mon, 27 Jul 2009 15:04:20 +0200 Subject: [development] Form Api - Passing arguments to a form In-Reply-To: <20090727124233.19505mxg4ukyi2sk@mail.siebunlimited.com> References: <000901ca0e33$9906a170$cb13e450$@sintjago@xs4all.nl> <20090727124233.19505mxg4ukyi2sk@mail.siebunlimited.com> Message-ID: <001201ca0eba$c1e29b80$45a7d280$@sintjago@xs4all.nl> Thanks all, I have misinterpreted the information available. It works now, Thanks -----Oorspronkelijk bericht----- Van: development-bounces at drupal.org [mailto:development-bounces at drupal.org] Namens Earnie Boyd Verzonden: maandag 27 juli 2009 14:43 Aan: development at drupal.org Onderwerp: Re: [development] Form Api - Passing arguments to a form Quoting Joop Sint Jago : > Hello, > > I have searched d.org but cannot find the answer. > > > > I'm converting a D5 module to D6, but cannot succeed into passing some > arguments when calling the form. > > > > $output = drupal_get_form('mymodule_form', $arguments_array); > > > > function mymodule_form($arguments_array) { > > // > > '#defualt_value' => $arguments_array['name'], > // > > } > > > > If I'm not mistaken nothing changed at this point with D6. > I did the following search where I found http://drupal.org/node/114774 which then leads you quickly to http://drupal.org/node/144132. http://lmgtfy.com/?q=convert+5.x+site%3Adrupal.org -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From oke at iisg.nl Mon Jul 27 19:24:28 2009 From: oke at iisg.nl (Ole Kerpel) Date: Mon, 27 Jul 2009 21:24:28 +0200 Subject: [development] hook_form Message-ID: Hi all, not very familiar with Drupal development, but I'm working my way through Pro Drupal Development which helps a lot. I was wondering how I could implement the hook_form, in order to create a form within the Drupal generated form. Can I add php in the _form or does Drupal offer ways here? Here is my case. I am creating a module that stores nodes with several textfields. One of the fields is mandatory and should contain a url. The user must be able to search for the urls by posting keywords to an web service. When the result comes back the user must be able to select a url which is then stored in the right field. after that, the user is able to add some text and then submit the form the Drupal way. Any help is welcome, thanks advance for the trouble taken. Ole Kerpel Developer Internationaal Instituut voor Sociale Geschiedenis Postbus 2169 1000 CD Amsterdam T: 0208500137 E: oke at iisg.nl www.iisg.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From field.ninja at gmail.com Mon Jul 27 19:29:04 2009 From: field.ninja at gmail.com (Bushidodeep) Date: Mon, 27 Jul 2009 12:29:04 -0700 Subject: [development] hook_form In-Reply-To: References: Message-ID: HI, See Chapter 10 The Form API in Pro Drupal Development. CK On Jul 27, 2009, at 12:24 PM, Ole Kerpel wrote: > Hi all, > > > not very familiar with Drupal development, but I'm working my way > through Pro Drupal Development which helps a lot. > > I was wondering how I could implement the hook_form, in order to > create a form within the Drupal generated form. > Can I add php in the _form or does Drupal offer ways here? > > > Here is my case. I am creating a module that stores nodes with > several textfields. One of the fields is mandatory and should > contain a url. The user must be able to search for the urls by > posting keywords to an web service. When the result comes back the > user must be able to select a url which is then stored in the right > field. after that, the user is able to add some text and then submit > the form the Drupal way. > > > Any help is welcome, thanks advance for the trouble taken. > > > > Ole Kerpel > Developer > > Internationaal Instituut voor Sociale Geschiedenis > Postbus 2169 > 1000 CD Amsterdam > T: 0208500137 > E: oke at iisg.nl > www.iisg.nl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at brianvuyk.com Mon Jul 27 19:34:06 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Mon, 27 Jul 2009 15:34:06 -0400 Subject: [development] hook_form In-Reply-To: References: Message-ID: <4A6E012E.8050504@brianvuyk.com> Ole, Would an autocomplete textfield work in your situation? Basically, when text is entered in the textfield, it triggers a function which takes the text and returns a list of results the user can select from. In your case, they user could type the textfields into the textbox, and the autocomplete function could return a list of URLs the user can select from. There's a quick set of instructions on autocomplete fields at http://drupal.org/node/208424#comment-686252. You can get more info by searching drupal.org. Brian Vuyk Web Design & Development T: 613-534-2916 brian at brianvuyk.com | http://www.brianvuyk.com Ole Kerpel wrote: > > Hi all, > > > not very familiar with Drupal development, but I'm working my way > through Pro Drupal Development which helps a lot. > > I was wondering how I could implement the hook_form, in order to > create a form within the Drupal generated form. > Can I add php in the _form or does Drupal offer ways here? > > > Here is my case. I am creating a module that stores nodes with several > textfields. One of the fields is mandatory and should contain a url. > The user must be able to search for the urls by posting keywords to an > web service. When the result comes back the user must be able to > select a url which is then stored in the right field. after that, the > user is able to add some text and then submit the form the Drupal way. > > > Any help is welcome, thanks advance for the trouble taken. > > > > Ole Kerpel > Developer > > Internationaal Instituut voor Sociale Geschiedenis > Postbus 2169 > 1000 CD Amsterdam > T: 0208500137 > E: oke at iisg.nl > www.iisg.nl > From ekes at aktivix.org Tue Jul 28 08:30:15 2009 From: ekes at aktivix.org (ekes) Date: Tue, 28 Jul 2009 10:30:15 +0200 Subject: [development] hook_form In-Reply-To: References: Message-ID: <4A6EB717.8050105@aktivix.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ole Kerpel wrote: > I was wondering how I could implement the hook_form, in order to > create a form within the Drupal generated form. Can I add php in the > _form or does Drupal offer ways here? Here it certainly sounds like you want hook_form_alter. You have a Drupal generated form and you can add stuff to it. > Here is my case. I am creating a module that stores nodes with > several textfields. One of the fields is mandatory and should contain > a url. The user must be able to search for the urls by posting > keywords to an web service. When the result comes back the user must > be able to select a url which is then stored in the right field. > after that, the user is able to add some text and then submit the > form the Drupal way. Is it possibly an idea to make this field a special CCK (text/url) field with appropriate widget? From what I understand, above, it is a two stage process - so take this example: the node_reference field with the http://drupal.org/project/popups_reference addition (if I recall correctly it makes a jquery 'pop up' for creating the node which it then uses to populate the node reference field). ekes - --- http://drupal.org/user/10083 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkputxcACgkQR9het8OQC6VkjgCeIr2lomJ62HsgiCrNzWH6NyGM baUAni5WEye2Mtxl3QqgHlsfj8UOhKP0 =xDkR -----END PGP SIGNATURE----- From field.ninja at gmail.com Tue Jul 28 21:54:54 2009 From: field.ninja at gmail.com (Bushidodeep) Date: Tue, 28 Jul 2009 14:54:54 -0700 Subject: [development] File Compression Message-ID: <75C60FF3-D218-4873-8CB9-154097158312@gmail.com> Hi, I was wondering how the following article on file optimization would be applied to DRUPAL. Is it necessary with or works in addition to throttling? CK From sdecabooter at gmail.com Wed Jul 29 07:37:50 2009 From: sdecabooter at gmail.com (Sven Decabooter) Date: Wed, 29 Jul 2009 09:37:50 +0200 Subject: [development] new module ideas for localized content In-Reply-To: <4A60DA6F.9090600@musickafe.com> References: <4A60DA6F.9090600@musickafe.com> Message-ID: <3f960de20907290037k3e504440g73ebfa3c410ed406@mail.gmail.com> It doesn't seem to provide the exact functionality that you want, but it might be worth taking a look at the Country code module ( http://drupal.org/project/country_code). 2009/7/17 Shankar Dhanasekaran > Hi everybody, > I have been reading development mail list for a few months now, found it > great for people to discuss code but I have not written any thing here until > now. I guess the time has come. > > I am wanting a feature addition to ip2local module or some other similar > module. Brief explanation of the customization follows: > > 1. Admin interface to add or delete region and group regions. Much like > hierarchy taxonomy. So that admin can add Region 'Asia' and sub regions like > India, China etc. > > 2. There is an admin interface to set default language for each sub region > and region. > > 3. Much like multi-lingual interface in each node where user can select the > language, there is now an additional interface to select the region the node > belongs. A node can belong to more than one region, however. > > 4. The module should output a block where the user can select the region of > the website he wants to see. See ibm.com > for example. There is a region on the header where user can select the > country/language. > > 5. Logic for content display: > a. detect the user ip and thereby the location and display that particular > location's content alone. > b. If the location is not present in one of the regions set in the website, > use a default region. > c. detect the browser language and render that identified region's content > in that language. Say for example, the region is detected as China but the > browser language is English, then display chinese region content in English > language. Adminstrator will take care of all the translation work needed. > > > I will really appreciate if you guys can give me some pointers on where to > start, a possible hint on hooks that I may need etc., I wanting to become a > good drupal module developer and a community supporter. I hope you guys will > initiate me into this. I am not aware of any existing module that gives > similar functionality after some good search in contrib space. If there is > any, pls let me know. > > Thanks a lot, > Shankar > -------------- next part -------------- An HTML attachment was scrubbed... URL: From earnie at users.sourceforge.net Wed Jul 29 13:13:21 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 29 Jul 2009 13:13:21 +0000 Subject: [development] File Compression In-Reply-To: <75C60FF3-D218-4873-8CB9-154097158312@gmail.com> References: <75C60FF3-D218-4873-8CB9-154097158312@gmail.com> Message-ID: <20090729131321.2058166o3kt41c00@mail.siebunlimited.com> Quoting Bushidodeep : > Hi, > > I was wondering how the following article on file > optimization > would be applied to DRUPAL. Is it necessary with or works in > addition to throttling? > I find this more a support question for the support list since I see no development in this question; see http://drupal.org/support. Have you seen admin/settings/performance? -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From field.ninja at gmail.com Wed Jul 29 18:26:35 2009 From: field.ninja at gmail.com (Bushidodeep) Date: Wed, 29 Jul 2009 11:26:35 -0700 Subject: [development] File Compression In-Reply-To: <20090729131321.2058166o3kt41c00@mail.siebunlimited.com> References: <75C60FF3-D218-4873-8CB9-154097158312@gmail.com> <20090729131321.2058166o3kt41c00@mail.siebunlimited.com> Message-ID: <9C484CD4-F113-48B7-971D-D64EF363DD4B@gmail.com> E, I'm new to the list and DRUPAL development. Certainly don't want my enthusiasm to clutter the list with off-topic questions. I posted the question on file optimization under the assumption that it may be a module in waiting. However, following your appreciated suggestion, I'll post at the support forum. C On Jul 29, 2009, at 6:13 AM, Earnie Boyd wrote: > Quoting Bushidodeep : > >> Hi, >> >> I was wondering how the following article on file optimization> > >> would be applied to DRUPAL. Is it necessary with or works in >> addition to throttling? >> > > I find this more a support question for the support list since I see > no development in this question; see http://drupal.org/support. > Have you seen admin/settings/performance? > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ > > From drupal at dave-cohen.com Thu Jul 30 02:11:58 2009 From: drupal at dave-cohen.com (David Cohen) Date: Wed, 29 Jul 2009 19:11:58 -0700 Subject: [development] upgrade d5 to d6 deletes themes and engines from system table Message-ID: <1248919918.3891.1327447863@webmail.messagingengine.com> I've seen loads of posts about trouble upgrading from D5 to D6, but no answers for my specific problem. That I know of, anyway. Apologies if this is answered elsewhere. I'm upgrading a site from Drupal 5.x to Drupal 6.x. After running the update.php script, I find the system table contains no owner values for any of my themes. I think I can hack these values, setting the owner column to "themes/engines/phptemplate/phptemplate.engine" for most of the themes. But what's the deal? Why wasn't this done during update.php? It might have to with open basedir restrictions. Because I've updated a local copy of the site and it didn't have this problem. but running update on the live server has this problem. And more importantly, are there any other parts of the upgrade that failed, but I haven't discovered yet? thanks for any help, -Dave From drupal at dave-cohen.com Thu Jul 30 02:20:28 2009 From: drupal at dave-cohen.com (David Cohen) Date: Wed, 29 Jul 2009 19:20:28 -0700 Subject: [development] upgrade d5 to d6 deletes themes and engines from system table In-Reply-To: <1248919918.3891.1327447863@webmail.messagingengine.com> References: <1248919918.3891.1327447863@webmail.messagingengine.com> Message-ID: <1248920428.4709.1327452805@webmail.messagingengine.com> Follow up to my own thread.... I hacked the system table, inserting values for the owner column. but as soon as I visit Site Building >> Themes and save settings, Drupal unsets my owner values. So I keep getting errors about an include failure in theme.inc. I'll keep investigating. Pain.... On Wed, 29 Jul 2009 19:11 -0700, "David Cohen" wrote: > I've seen loads of posts about trouble upgrading from D5 to D6, but no > answers for my specific problem. That I know of, anyway. Apologies if > this is answered elsewhere. > From drupal at dave-cohen.com Thu Jul 30 03:37:53 2009 From: drupal at dave-cohen.com (David Cohen) Date: Wed, 29 Jul 2009 20:37:53 -0700 Subject: [development] upgrade d5 to d6 deletes themes and engines from system table In-Reply-To: <1248919918.3891.1327447863@webmail.messagingengine.com> References: <1248919918.3891.1327447863@webmail.messagingengine.com> Message-ID: <1248925073.15293.1327460193@webmail.messagingengine.com> After painful investigation, I learned that Drupal was not recognizing the phptemplate.engine file, because a call to readdir() was simply not working properly. It did not return the phptemplate.engine file, until I touched a new file in that directory, and made a subdirectory. I did those two things just to test what was going wrong, and suddenly it did recognize the file. But still drupal refuses to find other files. So for example I don't see the themes in profiles/custom/themes in my themes list. I suspect something is wrong at my host. Has anyone seen anything like this? From nan_wich at bellsouth.net Thu Jul 30 04:37:52 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Thu, 30 Jul 2009 04:37:52 +0000 Subject: [development] upgrade d5 to d6 deletes themes and engines fromsystem table In-Reply-To: <1248919918.3891.1327447863@webmail.messagingengine.com> Message-ID: <073020090437.437.4A7123A000096C1E000001B522218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Wow, you've got a weird one there, Dave. I've done a couple dozen such upgrades and never had anything like this. Never any real significant problems at all (except with 6.8, which I had to skip). -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- Original message from "David Cohen" : -------------- > I'm upgrading a site from Drupal 5.x to Drupal 6.x. After running the > update.php script, I find the system table contains no owner values for > any of my themes. I think I can hack these values, setting the owner > column to "themes/engines/phptemplate/phptemplate.engine" for most of > the themes. But what's the deal? Why wasn't this done during > update.php? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From jobs.cub at bushidodeep.com Thu Jul 30 04:50:16 2009 From: jobs.cub at bushidodeep.com (Bushidodeep) Date: Wed, 29 Jul 2009 21:50:16 -0700 Subject: [development] upgrade d5 to d6 deletes themes and engines from system table In-Reply-To: <1248925073.15293.1327460193@webmail.messagingengine.com> References: <1248919918.3891.1327447863@webmail.messagingengine.com> <1248925073.15293.1327460193@webmail.messagingengine.com> Message-ID: Hi, Have you checked the mySQL configuration of your host? C On Jul 29, 2009, at 8:37 PM, David Cohen wrote: > After painful investigation, I learned that Drupal was not recognizing > the phptemplate.engine file, because a call to readdir() was simply > not > working properly. It did not return the phptemplate.engine file, > until > I touched a new file in that directory, and made a subdirectory. I > did > those two things just to test what was going wrong, and suddenly it > did > recognize the file. > > But still drupal refuses to find other files. So for example I don't > see the themes in profiles/custom/themes in my themes list. > > I suspect something is wrong at my host. Has anyone seen anything > like > this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From domenic at workhabit.com Thu Jul 30 07:06:02 2009 From: domenic at workhabit.com (Domenic Santangelo) Date: Thu, 30 Jul 2009 00:06:02 -0700 Subject: [development] upgrade d5 to d6 deletes themes and engines from system table In-Reply-To: <1248925073.15293.1327460193@webmail.messagingengine.com> References: <1248919918.3891.1327447863@webmail.messagingengine.com> <1248925073.15293.1327460193@webmail.messagingengine.com> Message-ID: <7F84EB8D-5BFF-419D-8C13-98C1527F2381@workhabit.com> Check perms/ownership on your dirs. Domenic Santangelo Director of Engineering, WorkHabit, Inc 530-902-2576 Direct Via iPhone On Jul 29, 2009, at 8:37 PM, "David Cohen" wrote: > After painful investigation, I learned that Drupal was not recognizing > the phptemplate.engine file, because a call to readdir() was simply > not > working properly. It did not return the phptemplate.engine file, > until > I touched a new file in that directory, and made a subdirectory. I > did > those two things just to test what was going wrong, and suddenly it > did > recognize the file. > > But still drupal refuses to find other files. So for example I don't > see the themes in profiles/custom/themes in my themes list. > > I suspect something is wrong at my host. Has anyone seen anything > like > this? From salbefe at gmail.com Thu Jul 30 14:03:11 2009 From: salbefe at gmail.com (Salvador Benimeli) Date: Thu, 30 Jul 2009 16:03:11 +0200 Subject: [development] After form submit Message-ID: Hello, I'm new to Drupal, and after looking FAPI documentation there are some kind of things that are not clear to me. Where go the data once the form has been submitted?? The data submitted on a form is stored as a node or other kind of content or have I to create a table on the database and storing post values inside that table??? How can I create a view where I can show all the data that has been submitted??? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorkane at gmail.com Thu Jul 30 14:52:46 2009 From: victorkane at gmail.com (Victor Kane) Date: Thu, 30 Jul 2009 11:52:46 -0300 Subject: [development] After form submit In-Reply-To: References: Message-ID: What is great about Drupal is that when you create a content type, even using CCK module and defining extra custom fields, everything is automagically persisted in the database and may be retrieved as nodes. You don't have to worry about that. And, Drupal has a contributed module which is really practically part of Drupal itself (no-one develops any serious sites without using it and CCK): the Views module, which is a query generator so you don't have to use SQL to list your nodes. There is a powerful graphical interface which allows you to create your query on the fly and even shows you a preview of the list you will be getting. The views module (http://drupal.org/project/views) also allows you to create as many displays of the view (Page/Block/RSS etc.) as you like. That's why everyone is flocking to Drupal! Victor Kane http://awebfactory.com.ar On Thu, Jul 30, 2009 at 11:03 AM, Salvador Benimeli wrote: > Hello, > > I'm new to Drupal, and after looking FAPI documentation there are some kind > of things that are not clear to me. > > Where go the data once the form has been submitted?? The data submitted on > a form is stored as a node or other kind of content or have I to create a > table on the database and storing post values inside that table??? > > How can I create a view where I can show all the data that has been > submitted??? > > Thanks in advance > -------------- next part -------------- An HTML attachment was scrubbed... URL: From salbefe at gmail.com Thu Jul 30 15:33:30 2009 From: salbefe at gmail.com (Salvador Benimeli) Date: Thu, 30 Jul 2009 17:33:30 +0200 Subject: [development] After form submit In-Reply-To: References: Message-ID: Hello Victor, My problem is, after submitting a form, post values are automatically persisted by Drupal or have I to do myself?? Thanks a lot 2009/7/30 Victor Kane > What is great about Drupal is that when you create a content type, even > using CCK module and defining extra custom fields, everything is > automagically persisted in the database and may be retrieved as nodes. You > don't have to worry about that. > > And, Drupal has a contributed module which is really practically part of > Drupal itself (no-one develops any serious sites without using it and CCK): > the Views module, which is a query generator so you don't have to use SQL to > list your nodes. There is a powerful graphical interface which allows you to > create your query on the fly and even shows you a preview of the list you > will be getting. > > The views module (http://drupal.org/project/views) also allows you to > create as many displays of the view (Page/Block/RSS etc.) as you like. > > That's why everyone is flocking to Drupal! > > Victor Kane > http://awebfactory.com.ar > > > On Thu, Jul 30, 2009 at 11:03 AM, Salvador Benimeli wrote: > >> Hello, >> >> I'm new to Drupal, and after looking FAPI documentation there are some >> kind of things that are not clear to me. >> >> Where go the data once the form has been submitted?? The data submitted on >> a form is stored as a node or other kind of content or have I to create a >> table on the database and storing post values inside that table??? >> >> How can I create a view where I can show all the data that has been >> submitted??? >> >> Thanks in advance >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nan_wich at bellsouth.net Thu Jul 30 15:37:24 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Thu, 30 Jul 2009 15:37:24 +0000 Subject: [development] After form submit In-Reply-To: References: Message-ID: <073020091537.17126.4A71BE34000183EA000042E622218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Frankly, I take this as an insult. Most of my sites do NOT use Views, and fewer use CCK. So you've just said that my sites are not serious. Yes, CCK and Views are are great when they are needed (I have one site that is nothing but CCK/Views), but they simply are not always needed. If I only need one or two "custom" queries, I am not going to pay the overhead of Views. If I have more complex needs, yes, I will use it. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- Original message from Victor Kane: -------------- Drupal has a contributed module which is really practically part of Drupal itself (no-one develops any serious sites without using it and CCK): the Views module, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From william.darren at gmail.com Thu Jul 30 15:38:10 2009 From: william.darren at gmail.com (William Smith) Date: Thu, 30 Jul 2009 10:38:10 -0500 Subject: [development] After form submit In-Reply-To: References: Message-ID: <74630ca20907300838s7e19cf1bree0df6308a91b9e3@mail.gmail.com> The data will be sent to your submit handling function - if you wish to persist the data, you can either manually store it in a db table, or you could programatically create a node containing the data. See the section "Submitting Forms" in http://api.drupal.org/api/file/developer/topics/forms_api.html/6 The short answer is yes, you have to do it yourself :) Best, William On Thu, Jul 30, 2009 at 10:33 AM, Salvador Benimeli wrote: > Hello Victor, > > My problem is, after submitting a form, post values are automatically > persisted by Drupal or have I to do myself?? > > Thanks a lot > > > 2009/7/30 Victor Kane > > What is great about Drupal is that when you create a content type, even >> using CCK module and defining extra custom fields, everything is >> automagically persisted in the database and may be retrieved as nodes. You >> don't have to worry about that. >> >> And, Drupal has a contributed module which is really practically part of >> Drupal itself (no-one develops any serious sites without using it and CCK): >> the Views module, which is a query generator so you don't have to use SQL to >> list your nodes. There is a powerful graphical interface which allows you to >> create your query on the fly and even shows you a preview of the list you >> will be getting. >> >> The views module (http://drupal.org/project/views) also allows you to >> create as many displays of the view (Page/Block/RSS etc.) as you like. >> >> That's why everyone is flocking to Drupal! >> >> Victor Kane >> http://awebfactory.com.ar >> >> >> On Thu, Jul 30, 2009 at 11:03 AM, Salvador Benimeli wrote: >> >>> Hello, >>> >>> I'm new to Drupal, and after looking FAPI documentation there are some >>> kind of things that are not clear to me. >>> >>> Where go the data once the form has been submitted?? The data submitted >>> on a form is stored as a node or other kind of content or have I to create a >>> table on the database and storing post values inside that table??? >>> >>> How can I create a view where I can show all the data that has been >>> submitted??? >>> >>> Thanks in advance >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorkane at gmail.com Thu Jul 30 15:38:24 2009 From: victorkane at gmail.com (Victor Kane) Date: Thu, 30 Jul 2009 12:38:24 -0300 Subject: [development] After form submit In-Reply-To: References: Message-ID: Automatic! You can see that, because, when you go to Add content, then fill in the fields, and click Submit, you actually see the resulting node (the nid (node id) is in the URL too). This is actually a page rendered by reading the new node from the database Victor On Thu, Jul 30, 2009 at 12:33 PM, Salvador Benimeli wrote: > Hello Victor, > > My problem is, after submitting a form, post values are automatically > persisted by Drupal or have I to do myself?? > > Thanks a lot > > > 2009/7/30 Victor Kane > > What is great about Drupal is that when you create a content type, even >> using CCK module and defining extra custom fields, everything is >> automagically persisted in the database and may be retrieved as nodes. You >> don't have to worry about that. >> >> And, Drupal has a contributed module which is really practically part of >> Drupal itself (no-one develops any serious sites without using it and CCK): >> the Views module, which is a query generator so you don't have to use SQL to >> list your nodes. There is a powerful graphical interface which allows you to >> create your query on the fly and even shows you a preview of the list you >> will be getting. >> >> The views module (http://drupal.org/project/views) also allows you to >> create as many displays of the view (Page/Block/RSS etc.) as you like. >> >> That's why everyone is flocking to Drupal! >> >> Victor Kane >> http://awebfactory.com.ar >> >> >> On Thu, Jul 30, 2009 at 11:03 AM, Salvador Benimeli wrote: >> >>> Hello, >>> >>> I'm new to Drupal, and after looking FAPI documentation there are some >>> kind of things that are not clear to me. >>> >>> Where go the data once the form has been submitted?? The data submitted >>> on a form is stored as a node or other kind of content or have I to create a >>> table on the database and storing post values inside that table??? >>> >>> How can I create a view where I can show all the data that has been >>> submitted??? >>> >>> Thanks in advance >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nan_wich at bellsouth.net Thu Jul 30 15:42:51 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Thu, 30 Jul 2009 15:42:51 +0000 Subject: [development] After form submit In-Reply-To: Message-ID: <073020091542.26507.4A71BF7A000E281E0000678B22218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> If you are creating your own forms for data input, then, yes, you are responsible for managing it. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- Original message from Salvador Benimeli: -------------- Where go the data once the form has been submitted?? The data submitted on a form is stored as a node or other kind of content or have I to create a table on the database and storing post values inside that table??? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From victorkane at gmail.com Thu Jul 30 15:43:27 2009 From: victorkane at gmail.com (Victor Kane) Date: Thu, 30 Jul 2009 12:43:27 -0300 Subject: [development] After form submit In-Reply-To: <74630ca20907300838s7e19cf1bree0df6308a91b9e3@mail.gmail.com> References: <74630ca20907300838s7e19cf1bree0df6308a91b9e3@mail.gmail.com> Message-ID: Ah, it was not clear to me that Salvador was talking about a custom form... On Thu, Jul 30, 2009 at 12:38 PM, William Smith wrote: > The data will be sent to your submit handling function - if you wish to > persist the data, you can either manually store it in a db table, or you > could programatically create a node containing the data. See the section > "Submitting Forms" in > http://api.drupal.org/api/file/developer/topics/forms_api.html/6 > > The short answer is yes, you have to do it yourself :) > > Best, > William > > On Thu, Jul 30, 2009 at 10:33 AM, Salvador Benimeli wrote: > >> Hello Victor, >> >> My problem is, after submitting a form, post values are automatically >> persisted by Drupal or have I to do myself?? >> >> Thanks a lot >> >> >> 2009/7/30 Victor Kane >> >> What is great about Drupal is that when you create a content type, even >>> using CCK module and defining extra custom fields, everything is >>> automagically persisted in the database and may be retrieved as nodes. You >>> don't have to worry about that. >>> >>> And, Drupal has a contributed module which is really practically part of >>> Drupal itself (no-one develops any serious sites without using it and CCK): >>> the Views module, which is a query generator so you don't have to use SQL to >>> list your nodes. There is a powerful graphical interface which allows you to >>> create your query on the fly and even shows you a preview of the list you >>> will be getting. >>> >>> The views module (http://drupal.org/project/views) also allows you to >>> create as many displays of the view (Page/Block/RSS etc.) as you like. >>> >>> That's why everyone is flocking to Drupal! >>> >>> Victor Kane >>> http://awebfactory.com.ar >>> >>> >>> On Thu, Jul 30, 2009 at 11:03 AM, Salvador Benimeli wrote: >>> >>>> Hello, >>>> >>>> I'm new to Drupal, and after looking FAPI documentation there are some >>>> kind of things that are not clear to me. >>>> >>>> Where go the data once the form has been submitted?? The data submitted >>>> on a form is stored as a node or other kind of content or have I to create a >>>> table on the database and storing post values inside that table??? >>>> >>>> How can I create a view where I can show all the data that has been >>>> submitted??? >>>> >>>> Thanks in advance >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorkane at gmail.com Thu Jul 30 15:48:11 2009 From: victorkane at gmail.com (Victor Kane) Date: Thu, 30 Jul 2009 12:48:11 -0300 Subject: [development] After form submit In-Reply-To: <073020091537.17126.4A71BE34000183EA000042E622218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> References: <073020091537.17126.4A71BE34000183EA000042E622218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: Sorry, Nancy, I didn't mean to belittle sites that don't use Views. I should have said any serious Drupal site containing business objects and wishing to avoid tying oneself down to soon-to-be-dated SQL. Cheers, Victor On Thu, Jul 30, 2009 at 12:37 PM, wrote: > > Frankly, I take this as an insult. Most of my sites do NOT use Views, and > fewer use CCK. So you've just said that my sites are not serious. > > Yes, CCK and Views are are great when they are needed (I have one site that > is nothing but CCK/Views), but they simply are not always needed. If I only > need one or two "custom" queries, I am not going to pay the overhead of > Views. If I have more complex needs, yes, I will use it. > > -- > Nancy E. Wichmann, PMP > > Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. > King, Jr. > > > -------------- Original message from Victor Kane: -------------- > > Drupal has a contributed module which is really practically part of Drupal > itself (no-one develops any serious sites without using it and CCK): the > Views module, > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From salbefe at gmail.com Thu Jul 30 16:13:14 2009 From: salbefe at gmail.com (Salvador Benimeli) Date: Thu, 30 Jul 2009 18:13:14 +0200 Subject: [development] After form submit In-Reply-To: <073020091542.26507.4A71BF7A000E281E0000678B22218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> References: <073020091542.26507.4A71BF7A000E281E0000678B22218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: One question more now I know I have to manage myself form post data. If I persist the data on a custom table inside my database and later I want to do something with that data...what should I do? For example, once the data is inside a table on a database I would like to create a 'view' as a list from it. As I read, I can't use views module because that data is not a node. How can I do "custom" queries and then display it?? Thanks a lot 2009/7/30 > > If you are creating your own forms for data input, then, yes, you are > responsible for managing it. > > -- > Nancy E. Wichmann, PMP > > Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. > King, Jr. > > > -------------- Original message from Salvador Benimeli: -------------- > > Where go the data once the form has been submitted?? The data submitted on > a form is stored as a node or other kind of content or have I to create a > table on the database and storing post values inside that table??? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at treslerdesigns.com Thu Jul 30 15:48:52 2009 From: sam at treslerdesigns.com (Sam Tresler) Date: Thu, 30 Jul 2009 11:48:52 -0400 Subject: [development] After form submit In-Reply-To: References: Message-ID: <4A71C0E4.8040301@treslerdesigns.com> The short answer is yes, you have to do it yourself :) Victor Kane wrote: > Automatic! Wow. So, what are you doing, Salvador, so that we might better answer your question? Are you writing a module? -Sam From victorkane at gmail.com Thu Jul 30 16:19:59 2009 From: victorkane at gmail.com (Victor Kane) Date: Thu, 30 Jul 2009 13:19:59 -0300 Subject: [development] After form submit In-Reply-To: References: <073020091542.26507.4A71BF7A000E281E0000678B22218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: For that reason, the drupal way would be to try to use CCK with business objects and if you use custom forms for some reason, persist that data to a node, as described in another answer. These are the services offered by the Drupal Framework. Victor On Thu, Jul 30, 2009 at 1:13 PM, Salvador Benimeli wrote: > One question more now I know I have to manage myself form post data. If I > persist the data on a custom table inside my database and later I want to do > something with that data...what should I do? For example, once the data is > inside a table on a database I would like to create a 'view' as a list from > it. As I read, I can't use views module because that data is not a node. How > can I do "custom" queries and then display it?? > > Thanks a lot > > 2009/7/30 > > >> If you are creating your own forms for data input, then, yes, you are >> responsible for managing it. >> >> -- >> Nancy E. Wichmann, PMP >> >> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. >> King, Jr. >> >> >> -------------- Original message from Salvador Benimeli: -------------- >> >> Where go the data once the form has been submitted?? The data submitted on >> a form is stored as a node or other kind of content or have I to create a >> table on the database and storing post values inside that table??? >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From salbefe at gmail.com Thu Jul 30 16:37:10 2009 From: salbefe at gmail.com (Salvador Benimeli) Date: Thu, 30 Jul 2009 18:37:10 +0200 Subject: [development] After form submit In-Reply-To: <4A71C0E4.8040301@treslerdesigns.com> References: <4A71C0E4.8040301@treslerdesigns.com> Message-ID: Hello Sam, I have made a form using FAPI. That form is for subscribe users for participate in a race. Once a user is subscribed I have to send a email to that user with race information, etc. Once thing more, users have to paid for subscribing in that race. After submitting that form, they have five days to paid. If a user do not paid in that period it should be removed. That's what I'm doing. I'm not sure If it would be easier with CCK and views or with FAPI or I can't do that with drupal Thanks a lot 2009/7/30 Sam Tresler > The short answer is yes, you have to do it yourself :) > > Victor Kane wrote: > >> Automatic! >> > > Wow. So, what are you doing, Salvador, so that we might better answer your > question? Are you writing a module? > > -Sam > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewberry at sentex.net Thu Jul 30 17:06:39 2009 From: andrewberry at sentex.net (Andrew Berry) Date: Thu, 30 Jul 2009 13:06:39 -0400 Subject: [development] After form submit In-Reply-To: References: <4A71C0E4.8040301@treslerdesigns.com> Message-ID: On 30-Jul-09, at 12:37 PM, Salvador Benimeli wrote: > I'm not sure If it would be easier with CCK and views or with FAPI > or I can't do that with drupal A few options: - http://drupal.org/project/webform is great for creating forms which send off emails. You'd still have to write something to automatically mark and remove unpaid participants. - http://drupal.org/project/signup and related modules may also do what you need, possibly without any coding at all (see the list of modules on the page) - You could probably do the whole ecommerce flow (with online payment) with ubercart + cck + views + workflow modules. - You could write a form yourself as it sounds like you're all ready doing, with a second form for admins to mark payment (assuming that's your plan). Your goals sound simple enough that if you want to learn module development, this would be a good way to go. You'll probably want to read: http://api.drupal.org/api/file/developer/topics/forms_api.html/6 (implementing the validate and submit functions for your forms, to answer your original question) http://api.drupal.org/api/function/hook_cron (for expiring unpaid entries) http://api.drupal.org/api/function/drupal_mail (don't call mail() directly) http://api.drupal.org/api/function/check_plain (to ensure your site doesn't get hacked via XSS - just as important as db_query() with placeholders) Depending on how much time you have, it's probably worth playing around with a few of these options to see what fits best. HTH, --Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2672 bytes Desc: not available URL: From gpperez at gmail.com Thu Jul 30 17:14:43 2009 From: gpperez at gmail.com (=?ISO-8859-1?Q?Gast=F3n_Pablo_P=E9rez?=) Date: Thu, 30 Jul 2009 14:14:43 -0300 Subject: [development] Import data from excel into drupal Message-ID: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> Hi! I would like implement a functionality in a web site for able to upload an excel file, with a determined format, and then, I want to generate nodes with this information. Exists a module or a medium to do that? or how can i insert data into drupal database from an excel file? thanks a lot -- "La perseverancia es un ?rbol de ra?ces amargas, pero de frutos muy dulces." Gast?n Pablo Perez Email:gpperez at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathews.kyle at gmail.com Thu Jul 30 17:19:00 2009 From: mathews.kyle at gmail.com (Kyle Mathews) Date: Thu, 30 Jul 2009 11:19:00 -0600 Subject: [development] Import data from excel into drupal In-Reply-To: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> References: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> Message-ID: Feedapi + parser_csv + feed element mapper + cck http://drupal.org/project/feedapi http://drupal.org/project/parser_csv http://drupal.org/project/feedapi_mapper Kyle Research Assistant Entrepreneurship and Technology Center @ BYU kyle.mathews2000.com/blog 2009/7/30 Gast?n Pablo P?rez > Hi! > > I would like implement a functionality in a web site for able to upload an > excel file, with a determined format, and then, I want to generate nodes > with this information. > Exists a module or a medium to do that? or how can i insert data into > drupal database from an excel file? > > thanks a lot > > -- > "La perseverancia es un ?rbol de ra?ces amargas, pero de frutos muy > dulces." > > Gast?n Pablo Perez > Email:gpperez at gmail.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil.hastings at gmail.com Thu Jul 30 17:27:21 2009 From: neil.hastings at gmail.com (Neil Hastings) Date: Thu, 30 Jul 2009 13:27:21 -0400 Subject: [development] Import data from excel into drupal In-Reply-To: References: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> Message-ID: <17f7fa700907301027m47e4f82elf3c0406a02e1a4db@mail.gmail.com> That's easier then what I did. Using http://code.google.com/p/parsecsv-for-php/ Example code: function opcerts_import_person() { //add person $csv = new parseCSV; $csv->auto('/var/www/import.csv'); foreach ($csv->data as $key => $row) { //get the nid if the person already exists $nid = opcerts_person_check_emp_id($row['emp_id']); if (!$nid) { $person = new stdClass; //add person $person->uid = 1; $person->type = 'person'; $person->field_last_name[0]['value'] = $row['l_name']; $person->field_first_name[0]['value'] = $row['f_name']; $person->field_emp_id[0]['value'] = $row['emp_id']; $person->field_position[0]['value'] = $row['title_tid']; $person->field_unit[0]['value'] = $row['unit_tid']; $person->field_middle[0]['value'] = $row['m_name']; $person->field_other_name[0]['value'] = $row['o_name']; } else { //add the unit to the person $person = node_load($nid); array_unshift($person->field_unit, array('value' => $row['unit_tid'])); } node_object_prepare($person); node_save($person); unset($person); } } Cheers, Neil http://code-dreamers.com On Thu, Jul 30, 2009 at 1:19 PM, Kyle Mathews wrote: > Feedapi + parser_csv + feed element mapper + cck > > http://drupal.org/project/feedapi > http://drupal.org/project/parser_csv > http://drupal.org/project/feedapi_mapper > > Kyle > > Research Assistant > Entrepreneurship and Technology Center @ BYU > kyle.mathews2000.com/blog > > > 2009/7/30 Gast?n Pablo P?rez > > Hi! >> >> I would like implement a functionality in a web site for able to upload an >> excel file, with a determined format, and then, I want to generate nodes >> with this information. >> Exists a module or a medium to do that? or how can i insert data into >> drupal database from an excel file? >> >> thanks a lot >> >> -- >> "La perseverancia es un ?rbol de ra?ces amargas, pero de frutos muy >> dulces." >> >> Gast?n Pablo Perez >> Email:gpperez at gmail.com >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From salbefe at gmail.com Thu Jul 30 17:44:40 2009 From: salbefe at gmail.com (Salvador Benimeli) Date: Thu, 30 Jul 2009 19:44:40 +0200 Subject: [development] After form submit In-Reply-To: References: <4A71C0E4.8040301@treslerdesigns.com> Message-ID: Thank you very much for your responses, I think I will do using FAPI and building two forms. 2009/7/30 Andrew Berry > On 30-Jul-09, at 12:37 PM, Salvador Benimeli wrote: > > I'm not sure If it would be easier with CCK and views or with FAPI or I >> can't do that with drupal >> > > A few options: > > - http://drupal.org/project/webform is great for creating forms which send > off emails. You'd still have to write something to automatically mark and > remove unpaid participants. > > - http://drupal.org/project/signup and related modules may also do what > you need, possibly without any coding at all (see the list of modules on the > page) > > - You could probably do the whole ecommerce flow (with online payment) with > ubercart + cck + views + workflow modules. > > - You could write a form yourself as it sounds like you're all ready doing, > with a second form for admins to mark payment (assuming that's your plan). > Your goals sound simple enough that if you want to learn module development, > this would be a good way to go. You'll probably want to read: > > http://api.drupal.org/api/file/developer/topics/forms_api.html/6(implementing the validate and submit functions for your forms, to answer > your original question) > http://api.drupal.org/api/function/hook_cron (for expiring unpaid entries) > http://api.drupal.org/api/function/drupal_mail (don't call mail() > directly) > http://api.drupal.org/api/function/check_plain (to ensure your site > doesn't get hacked via XSS - just as important as db_query() with > placeholders) > > Depending on how much time you have, it's probably worth playing around > with a few of these options to see what fits best. > > HTH, > --Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at brianvuyk.com Thu Jul 30 17:47:00 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Thu, 30 Jul 2009 13:47:00 -0400 Subject: [development] Import data from excel into drupal In-Reply-To: <17f7fa700907301027m47e4f82elf3c0406a02e1a4db@mail.gmail.com> References: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> <17f7fa700907301027m47e4f82elf3c0406a02e1a4db@mail.gmail.com> Message-ID: <4A71DC94.7040708@brianvuyk.com> Php has a nice function to get data from a CSV: http://us3.php.net/manual/en/function.fgetcsv.php $handle = fopen("test.csv", "r"); while (($data = fgetcsv($handle)) !== FALSE) { // $data is an array of entries from that row. $node->field_data[0]['value'] = $data[0]; $node->field_other_data[0]['value'] = $data[1]; $node_save($node); } Brian Neil Hastings wrote: > That's easier then what I did. Using > http://code.google.com/p/parsecsv-for-php/ > > Example code: > function opcerts_import_person() { > //add person > $csv = new parseCSV; > $csv->auto('/var/www/import.csv'); > > foreach ($csv->data as $key => $row) { > //get the nid if the person already exists > $nid = opcerts_person_check_emp_id($row['emp_id']); > if (!$nid) { > $person = new stdClass; > > //add person > $person->uid = 1; > $person->type = 'person'; > $person->field_last_name[0]['value'] = $row['l_name']; > $person->field_first_name[0]['value'] = $row['f_name']; > $person->field_emp_id[0]['value'] = $row['emp_id']; > $person->field_position[0]['value'] = $row['title_tid']; > $person->field_unit[0]['value'] = $row['unit_tid']; > $person->field_middle[0]['value'] = $row['m_name']; > $person->field_other_name[0]['value'] = $row['o_name']; > } > else { > //add the unit to the person > $person = node_load($nid); > array_unshift($person->field_unit, array('value' => > $row['unit_tid'])); > } > node_object_prepare($person); > node_save($person); > unset($person); > } > } > > Cheers, > Neil > http://code-dreamers.com > > On Thu, Jul 30, 2009 at 1:19 PM, Kyle Mathews > wrote: > > Feedapi + parser_csv + feed element mapper + cck > > http://drupal.org/project/feedapi > http://drupal.org/project/parser_csv > http://drupal.org/project/feedapi_mapper > > Kyle > > Research Assistant > Entrepreneurship and Technology Center @ BYU > kyle.mathews2000.com/blog > > > 2009/7/30 Gast?n Pablo P?rez > > > Hi! > > I would like implement a functionality in a web site for able > to upload an excel file, with a determined format, and then, I > want to generate nodes with this information. > Exists a module or a medium to do that? or how can i insert > data into drupal database from an excel file? > > thanks a lot > > -- > "La perseverancia es un ?rbol de ra?ces amargas, pero de > frutos muy dulces." > > Gast?n Pablo Perez > Email:gpperez at gmail.com > > > From sivaji2009 at gmail.com Thu Jul 30 17:54:26 2009 From: sivaji2009 at gmail.com (sivaji j.g) Date: Thu, 30 Jul 2009 23:24:26 +0530 Subject: [development] Import data from excel into drupal In-Reply-To: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> References: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> Message-ID: 2009/7/30 Gast?n Pablo P?rez > Hi! > This is developer mailing list, for support questions use support at drupal.org > I would like implement a functionality in a web site for able to upload an > excel file, with a determined format, and then, I want to generate nodes > with this information. > Exists a module or a medium to do that? or how can i insert data into > drupal database from an excel file? node_import may help you refer http://drupal.org/project/node_import > -- Thanks Sivaji -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at brianvuyk.com Thu Jul 30 17:56:39 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Thu, 30 Jul 2009 13:56:39 -0400 Subject: [development] Import data from excel into drupal In-Reply-To: References: <7e4b6dfa0907301014k34d4cf48r5272352e86f9bebb@mail.gmail.com> Message-ID: <4A71DED7.8040506@brianvuyk.com> Fits in development at drupal.org just fine. Brian sivaji j.g wrote: > > > 2009/7/30 Gast?n Pablo P?rez > > > Hi! > > > This is developer mailing list, for support questions use > support at drupal.org > > > I would like implement a functionality in a web site for able to > upload an excel file, with a determined format, and then, I want > to generate nodes with this information. > Exists a module or a medium to do that? or how can i insert data > into drupal database from an excel file? > > > node_import may help you refer http://drupal.org/project/node_import > > > -- > Thanks > Sivaji From nan_wich at bellsouth.net Thu Jul 30 18:00:58 2009 From: nan_wich at bellsouth.net (nan_wich at bellsouth.net) Date: Thu, 30 Jul 2009 18:00:58 +0000 Subject: [development] After form submit In-Reply-To: References: <073020091542.26507.4A71BF7A000E281E0000678B22218801869B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> Message-ID: <073020091800.27353.4A71DFDA000780C000006AD922230682329B0A02D2089B9A019C04040A0DBF080C0799A1020E02@att.net> If the data is extra stuff for a node (i.e. beyond a title and body), then yes, it is a node, but your node module still needs to let Views know about the extra fields and how to get to them. As Victor keeps harping, CCK does this for you. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- Original message from Salvador Benimeli : -------------- One question more now I know I have to manage myself form post data. If I persist the data on a custom table inside my database and later I want to do something with that data...what should I do? For example, once the data is inside a table on a database I would like to create a 'view' as a list from it. As I read, I can't use views module because that data is not a node. How can I do "custom" queries and then display it?? Thanks a lot 2009/7/30 If you are creating your own forms for data input, then, yes, you are responsible for managing it. -- Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. -------------- Original message from Salvador Benimeli: -------------- Where go the data once the form has been submitted?? The data submitted on a form is stored as a node or other kind of content or have I to create a table on the database and storing post values inside that table??? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4752 bytes Desc: spring_01.gif URL: From ankur.khicha at gmail.com Fri Jul 31 05:49:04 2009 From: ankur.khicha at gmail.com (Ankur Jain) Date: Fri, 31 Jul 2009 11:19:04 +0530 Subject: [development] Query about new page Message-ID: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> Hi , I am new to drupal and i want to create new page like abc.php but i don't want to create this page from admin section create content -> page / story ... bco'z it save the page into database ... i want to create new php page by my own and then let say call this from one of the menu item ( on click of the menu ) .. how can i do that ... and also wanted to know why drupal is saving all the page in database ... is for some optimization or achieve some functionality. ankur -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter at attiks.com Fri Jul 31 06:44:28 2009 From: Peter at attiks.com (Peter Droogmans) Date: Fri, 31 Jul 2009 08:44:28 +0200 Subject: [development] Query about new page In-Reply-To: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> References: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> Message-ID: What you want to do is possible, have a look at hook_menu, this defines the path for your page, but I don't really understand what's your objection to saving your data in the database. What is it you want to achieve? Best regards, Peter Droogmans Attiks Ketsstraat 94 2140 Borgerhout Belgium 32 3 288 61 17 32 497 44 44 77 From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of Ankur Jain Sent: vrijdag 31 juli 2009 07:49 To: development at drupal.org Subject: [development] Query about new page Hi , I am new to drupal and i want to create new page like abc.php but i don't want to create this page from admin section create content -> page / story ... bco'z it save the page into database ... i want to create new php page by my own and then let say call this from one of the menu item ( on click of the menu ) .. how can i do that ... and also wanted to know why drupal is saving all the page in database ... is for some optimization or achieve some functionality. ankur -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankur.khicha at gmail.com Fri Jul 31 08:25:57 2009 From: ankur.khicha at gmail.com (Ankur Jain) Date: Fri, 31 Jul 2009 13:55:57 +0530 Subject: [development] Query about new page In-Reply-To: References: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> Message-ID: <272cc4f40907310125s2da3207dr6b914c1921766f2f@mail.gmail.com> i just wanted to know why drupal is saving all the page content in database .. if we have many pages then it may slow down the database and also page loading. On Fri, Jul 31, 2009 at 12:14 PM, Peter Droogmans wrote: > What you want to do is possible, have a look at hook_menu, this defines > the path for your page, but I don?t really understand what?s your objection > to saving your data in the database. What is it you want to achieve? > > > > > > Best regards, > > Peter Droogmans > > Attiks > > Ketsstraat 94 > > 2140 Borgerhout > > Belgium > > 32 3 288 61 17 > > 32 497 44 44 77 > > > > > > > > *From:* development-bounces at drupal.org [mailto: > development-bounces at drupal.org] *On Behalf Of *Ankur Jain > *Sent:* vrijdag 31 juli 2009 07:49 > *To:* development at drupal.org > *Subject:* [development] Query about new page > > > > Hi , > I am new to drupal and i want to create new page like abc.php > but i don't want to create this page from admin section create content -> > page / story ... bco'z it save the page into database ... i want to create > new php page by my own and then let say call this from one of the menu item > ( on click of the menu ) .. how can i do that ... > and also wanted to know why drupal is saving all the page in database ... > is for some optimization or achieve some functionality. > > > ankur > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter at attiks.com Fri Jul 31 08:29:23 2009 From: Peter at attiks.com (Peter Droogmans) Date: Fri, 31 Jul 2009 10:29:23 +0200 Subject: [development] Query about new page In-Reply-To: <272cc4f40907310125s2da3207dr6b914c1921766f2f@mail.gmail.com> References: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> <272cc4f40907310125s2da3207dr6b914c1921766f2f@mail.gmail.com> Message-ID: That's way Drupal has several layers of caching, the biggest advantage of a database is that's easy to move your site or for heavy visited sites you can use several front-end web servers to serve page. Amongst many other benefits of using a database (multi-user, stable, easy to backup, ...) Regarding the speed, a good database running on a decent server is as fast as file I/O From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of Ankur Jain Sent: vrijdag 31 juli 2009 10:26 To: development at drupal.org Subject: Re: [development] Query about new page i just wanted to know why drupal is saving all the page content in database .. if we have many pages then it may slow down the database and also page loading. On Fri, Jul 31, 2009 at 12:14 PM, Peter Droogmans > wrote: What you want to do is possible, have a look at hook_menu, this defines the path for your page, but I don't really understand what's your objection to saving your data in the database. What is it you want to achieve? Best regards, Peter Droogmans Attiks Ketsstraat 94 2140 Borgerhout Belgium 32 3 288 61 17 32 497 44 44 77 From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of Ankur Jain Sent: vrijdag 31 juli 2009 07:49 To: development at drupal.org Subject: [development] Query about new page Hi , I am new to drupal and i want to create new page like abc.php but i don't want to create this page from admin section create content -> page / story ... bco'z it save the page into database ... i want to create new php page by my own and then let say call this from one of the menu item ( on click of the menu ) .. how can i do that ... and also wanted to know why drupal is saving all the page in database ... is for some optimization or achieve some functionality. ankur -------------- next part -------------- An HTML attachment was scrubbed... URL: From earnie at users.sourceforge.net Fri Jul 31 14:04:24 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Fri, 31 Jul 2009 14:04:24 +0000 Subject: [development] After form submit In-Reply-To: References: <4A71C0E4.8040301@treslerdesigns.com> Message-ID: <20090731140424.16526j2qgks4rc4k@mail.siebunlimited.com> Quoting Salvador Benimeli : > Hello Sam, > > I have made a form using FAPI. That form is for subscribe users for > participate in a race. Once a user is subscribed I have to send a email to > that user with race information, etc. Once thing more, users have to paid > for subscribing in that race. After submitting that form, they have five > days to paid. If a user do not paid in that period it should be removed. > That's what I'm doing. I'm not sure If it would be easier with CCK and views > or with FAPI or I can't do that with drupal > I would use FAPI with hook_form_alter. There may be modules already written that will allow you to manage your subscriptions to races. I would use one of the online services such as PayPal to accept the dollar amount for the subscription. You need to decide if you want to retain the user after the race event or expire them. You need to decide if one user can apply to more than one race or if it is one user to one race. -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From kb at 2bits.com Fri Jul 31 15:10:47 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Fri, 31 Jul 2009 11:10:47 -0400 Subject: [development] Query about new page In-Reply-To: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> References: <272cc4f40907302249w7b3cae40r6ac53c306131eaa2@mail.gmail.com> Message-ID: <4a9fdc630907310810k4a8ec86cjc41ac0db0f3fe461@mail.gmail.com> Drupal is a content management system. Any piece of content (node) is stored in the database, because it is created by someone who has certain permission, created on a certain date, can have comments, votes, points, ...etc. Can be organized in taxonomy, book, and the like. You are better off converting the .php file that you talk about into a Drupal module (.info and .module at a minimum), and having a hook_menu for it to be called as a path, so instead of example.com/something.php, it would only be example.com/something. If you insist on having external PHP, it is best to bootstrap Drupal in them and then use Drupal's API normally afterwards, so something.php will be like: Having said that, if you have more than a few of these, or worse, you plan to have a lot of HTML markup in them, then you are doing something wrong, and not using Drupal correctly. On Fri, Jul 31, 2009 at 1:49 AM, Ankur Jain wrote: > Hi , > I am new to drupal and i want to create new page like abc.php > but i don't want to create this page from admin section create content -> > page / story ... bco'z it save the page into database ... i want to create > new php page by my own and then let say call this from one of the menu item > ( on click of the menu ) .. how can i do that ... > and also wanted to know why drupal is saving all the page in database ... > is for some optimization or achieve some functionality. > > > ankur > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at treslerdesigns.com Fri Jul 31 19:26:03 2009 From: sam at treslerdesigns.com (Sam Tresler) Date: Fri, 31 Jul 2009 15:26:03 -0400 Subject: [development] Vim for Drupal request Message-ID: <4A73454B.7080400@treslerdesigns.com> I am working on a drupalcomplete.vim file and would like to generate an list of all of Drupal 6 (and eventually 5,7, etc) functions, objects, and anything else that might warrant code completion. I believe that api.drupal.org scrapes this automatically from core. I can manipulate the data to match the format I need no problem, but I thought I would ask here before I went about finding my own way to scrape the data from a cvs checkout. This was broached before here http://lists.drupal.org/pipermail/development/2009-February/032090.html but appears stalled. yes, I have too much time on my hands currently. Cheers. -Sam From drumm at delocalizedham.com Fri Jul 31 19:41:58 2009 From: drumm at delocalizedham.com (Neil Drumm) Date: Fri, 31 Jul 2009 12:41:58 -0700 Subject: [development] Vim for Drupal request In-Reply-To: <4A73454B.7080400@treslerdesigns.com> References: <4A73454B.7080400@treslerdesigns.com> Message-ID: http://api.drupal.org/api/function_dump/6 might have worked at some point. I honestly haven't paid any attention to that page, which might integrate with IDEs; apparently no one else has either. This list is already available in JSON format in the development version of API module. That or another format should be present in the future for an api_filter module to provide an input format filter without running the api module. -Neil On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler wrote: > I am working on a drupalcomplete.vim file and would like to generate an > list of all of Drupal 6 (and eventually 5,7, etc) functions, objects, and > anything else that might warrant code completion. > > I believe that api.drupal.org scrapes this automatically from core. I can > manipulate the data to match the format I need no problem, but I thought I > would ask here before I went about finding my own way to scrape the data > from a cvs checkout. > > This was broached before here > http://lists.drupal.org/pipermail/development/2009-February/032090.htmlbut appears stalled. > > yes, I have too much time on my hands currently. > > Cheers. -Sam > -- Neil Drumm http://delocalizedham.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at treslerdesigns.com Fri Jul 31 21:03:57 2009 From: sam at treslerdesigns.com (Sam Tresler) Date: Fri, 31 Jul 2009 17:03:57 -0400 Subject: [development] Vim for Drupal request In-Reply-To: References: <4A73454B.7080400@treslerdesigns.com> Message-ID: <4A735C3D.8030203@treslerdesigns.com> Thanks Neil, Some further digging and I found out that php code completion in vim can map to a ctags output file, which is pretty easy to generate. ctags -R -o drupal6.tags --langmap=php:.module * then load it in vim :set tags=drupal6.tags and you have code complete for every function in core. However, this unfortunately doesn't get code complete on hooks, as they aren't actually named in core, but constructed from modulename_function(). So, I guess my next question is where are the hook function definitions from api.drupal.org generated? Thanks in advance. -S Neil Drumm wrote: > http://api.drupal.org/api/function_dump/6 might have worked at some > point. I honestly haven't paid any attention to that page, which might > integrate with IDEs; apparently no one else has either. > > This list is already available in JSON format in the development version > of API module. That or another format should be present in the future > for an api_filter module to provide an input format filter without > running the api module. > > -Neil > > On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler > wrote: > > I am working on a drupalcomplete.vim file and would like to generate > an list of all of Drupal 6 (and eventually 5,7, etc) functions, > objects, and anything else that might warrant code completion. > > I believe that api.drupal.org scrapes this > automatically from core. I can manipulate the data to match the > format I need no problem, but I thought I would ask here before I > went about finding my own way to scrape the data from a cvs checkout. > > This was broached before here > http://lists.drupal.org/pipermail/development/2009-February/032090.html > but appears stalled. > > yes, I have too much time on my hands currently. > > Cheers. -Sam > > > > > -- > Neil Drumm > http://delocalizedham.com From drumm at delocalizedham.com Fri Jul 31 21:33:44 2009 From: drumm at delocalizedham.com (Neil Drumm) Date: Fri, 31 Jul 2009 14:33:44 -0700 Subject: [development] Vim for Drupal request In-Reply-To: <4A735C3D.8030203@treslerdesigns.com> References: <4A73454B.7080400@treslerdesigns.com> <4A735C3D.8030203@treslerdesigns.com> Message-ID: 6.x and lower: http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hooks/?pathrev=DRUPAL-6--17.x: *.api.php in module directories. -Neil On Fri, Jul 31, 2009 at 2:03 PM, Sam Tresler wrote: > Thanks Neil, > Some further digging and I found out that php code completion in vim can > map to a ctags output file, which is pretty easy to generate. > > ctags -R -o drupal6.tags --langmap=php:.module * > > then load it in vim > > :set tags=drupal6.tags > > and you have code complete for every function in core. > > However, this unfortunately doesn't get code complete on hooks, as they > aren't actually named in core, but constructed from modulename_function(). > > So, I guess my next question is where are the hook function definitions > from api.drupal.org generated? > > Thanks in advance. > > -S > > > > > Neil Drumm wrote: > >> http://api.drupal.org/api/function_dump/6 might have worked at some >> point. I honestly haven't paid any attention to that page, which might >> integrate with IDEs; apparently no one else has either. >> >> This list is already available in JSON format in the development version >> of API module. That or another format should be present in the future for an >> api_filter module to provide an input format filter without running the api >> module. >> >> -Neil >> >> On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler > sam at treslerdesigns.com>> wrote: >> >> I am working on a drupalcomplete.vim file and would like to generate >> an list of all of Drupal 6 (and eventually 5,7, etc) functions, >> objects, and anything else that might warrant code completion. >> >> I believe that api.drupal.org scrapes this >> automatically from core. I can manipulate the data to match the >> format I need no problem, but I thought I would ask here before I >> went about finding my own way to scrape the data from a cvs checkout. >> >> This was broached before here >> >> http://lists.drupal.org/pipermail/development/2009-February/032090.html >> but appears stalled. >> >> yes, I have too much time on my hands currently. >> >> Cheers. -Sam >> >> >> >> >> -- >> Neil Drumm >> http://delocalizedham.com >> > -- Neil Drumm http://delocalizedham.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at treslerdesigns.com Fri Jul 31 21:58:06 2009 From: sam at treslerdesigns.com (Sam Tresler) Date: Fri, 31 Jul 2009 17:58:06 -0400 Subject: [development] Vim for Drupal request In-Reply-To: References: <4A73454B.7080400@treslerdesigns.com> <4A735C3D.8030203@treslerdesigns.com> Message-ID: <4A7368EE.9020203@treslerdesigns.com> You know... it said that at the top of the api.drupal.org page, but I guess it didn't occur to me to actually look... Thanks. Works like a charm. I'd really rather skip the first incarnation I had, and just have the hooks loaded. I'll update the vim docs here shortly, but for the record. $ cvs -z6 -d:pserver:anonymous:anonymous at cvs.drupal.org:/cvs/drupal-contrib co -r DRUPAL-6--1 -d drupal6 contributions/docs/developer/hooks $ ctags -R -o drupal6.tags hooks $ mv drupal.tags ~/.vim (make the .vim directory if you need to) Then add this to ~/.vimrc if has("autocmd") " Drupal *.module and *.install files. augroup module autocmd BufRead,BufNewFile *.module set filetype=php autocmd BufRead,BufNewFile *.install set filetype=php set tags=.vim/drupal6.tags augroup END endif And you have code-hinting for drupal core in vim. Just remember to update it as you change versions. But it sounds like in Drupal 7 this can scrape directly from .api.php files; I haven't even looked at those yet. Now what was I doing before this diversion.... -S Neil Drumm wrote: > 6.x and > lower: http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hooks/?pathrev=DRUPAL-6--1 > 7.x: *.api.php in module directories. > > -Neil > > On Fri, Jul 31, 2009 at 2:03 PM, Sam Tresler > wrote: > > Thanks Neil, > Some further digging and I found out that php code completion in > vim can map to a ctags output file, which is pretty easy to generate. > > ctags -R -o drupal6.tags --langmap=php:.module * > > then load it in vim > > :set tags=drupal6.tags > > and you have code complete for every function in core. > > However, this unfortunately doesn't get code complete on hooks, as > they aren't actually named in core, but constructed from > modulename_function(). > > So, I guess my next question is where are the hook function > definitions from api.drupal.org generated? > > Thanks in advance. > > -S > > > > > Neil Drumm wrote: > > http://api.drupal.org/api/function_dump/6 might have worked at > some point. I honestly haven't paid any attention to that page, > which might integrate with IDEs; apparently no one else has either. > > This list is already available in JSON format in the development > version of API module. That or another format should be present > in the future for an api_filter module to provide an input > format filter without running the api module. > > -Neil > > On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler > > >> > wrote: > > I am working on a drupalcomplete.vim file and would like to > generate > an list of all of Drupal 6 (and eventually 5,7, etc) functions, > objects, and anything else that might warrant code completion. > > I believe that api.drupal.org > scrapes this > > automatically from core. I can manipulate the data to match the > format I need no problem, but I thought I would ask here before I > went about finding my own way to scrape the data from a cvs > checkout. > > This was broached before here > > http://lists.drupal.org/pipermail/development/2009-February/032090.html > but appears stalled. > > yes, I have too much time on my hands currently. > > Cheers. -Sam > > > > > -- > Neil Drumm > http://delocalizedham.com > > > > > -- > Neil Drumm > http://delocalizedham.com From kb at 2bits.com Fri Jul 31 22:37:41 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Fri, 31 Jul 2009 18:37:41 -0400 Subject: [development] Vim for Drupal request In-Reply-To: <4A7368EE.9020203@treslerdesigns.com> References: <4A73454B.7080400@treslerdesigns.com> <4A735C3D.8030203@treslerdesigns.com> <4A7368EE.9020203@treslerdesigns.com> Message-ID: <4a9fdc630907311537g6e7b1b71xba79a189fbbb93b0@mail.gmail.com> A page on d.o summarizing this would be really great! Also a blog post would get it in Google for future searches! On Fri, Jul 31, 2009 at 5:58 PM, Sam Tresler wrote: > You know... it said that at the top of the api.drupal.org page, but I > guess it didn't occur to me to actually look... Thanks. > > Works like a charm. I'd really rather skip the first incarnation I had, > and just have the hooks loaded. I'll update the vim docs here shortly, but > for the record. > > > $ cvs -z6 -d:pserver:anonymous:anonymous at cvs.drupal.org:/cvs/drupal-contrib > co -r DRUPAL-6--1 -d drupal6 contributions/docs/developer/hooks > $ ctags -R -o drupal6.tags hooks > $ mv drupal.tags ~/.vim > > (make the .vim directory if you need to) > > Then add this to ~/.vimrc > > if has("autocmd") > " Drupal *.module and *.install files. > augroup module > autocmd BufRead,BufNewFile *.module set filetype=php > autocmd BufRead,BufNewFile *.install set filetype=php > set tags=.vim/drupal6.tags > augroup END > endif > > And you have code-hinting for drupal core in vim. Just remember to update > it as you change versions. But it sounds like in Drupal 7 this can scrape > directly from .api.php files; I haven't even looked at those yet. > > Now what was I doing before this diversion.... > > -S > > > > > Neil Drumm wrote: > >> 6.x and lower: >> http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hooks/?pathrev=DRUPAL-6--1 >> 7.x: *.api.php in module directories. >> >> -Neil >> >> On Fri, Jul 31, 2009 at 2:03 PM, Sam Tresler > sam at treslerdesigns.com>> wrote: >> >> Thanks Neil, >> Some further digging and I found out that php code completion in >> vim can map to a ctags output file, which is pretty easy to generate. >> >> ctags -R -o drupal6.tags --langmap=php:.module * >> >> then load it in vim >> >> :set tags=drupal6.tags >> >> and you have code complete for every function in core. >> >> However, this unfortunately doesn't get code complete on hooks, as >> they aren't actually named in core, but constructed from >> modulename_function(). >> >> So, I guess my next question is where are the hook function >> definitions from api.drupal.org generated? >> >> Thanks in advance. >> >> -S >> >> >> >> >> Neil Drumm wrote: >> >> http://api.drupal.org/api/function_dump/6 might have worked at >> some point. I honestly haven't paid any attention to that page, >> which might integrate with IDEs; apparently no one else has either. >> >> This list is already available in JSON format in the development >> version of API module. That or another format should be present >> in the future for an api_filter module to provide an input >> format filter without running the api module. >> >> -Neil >> >> On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler >> >> >> >> wrote: >> >> I am working on a drupalcomplete.vim file and would like to >> generate >> an list of all of Drupal 6 (and eventually 5,7, etc) functions, >> objects, and anything else that might warrant code completion. >> >> I believe that api.drupal.org >> scrapes this >> >> automatically from core. I can manipulate the data to match the >> format I need no problem, but I thought I would ask here before >> I >> went about finding my own way to scrape the data from a cvs >> checkout. >> >> This was broached before here >> >> http://lists.drupal.org/pipermail/development/2009-February/032090.html >> but appears stalled. >> >> yes, I have too much time on my hands currently. >> >> Cheers. -Sam >> >> >> >> >> -- Neil Drumm >> http://delocalizedham.com >> >> >> >> >> -- >> Neil Drumm >> http://delocalizedham.com >> > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: