Skip to content
Browse files

Add some lookup tables of data types

So we can lookup what to do with them rather than large if/else structures
  • Loading branch information...
1 parent be4ba7e commit 227bd3050f144fce89c6c534c8121ea4ba418ffe @afresh1 committed Aug 11, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 rt-ticket-importer
View
22 rt-ticket-importer
@@ -41,6 +41,28 @@ unless ( !$opts{'h'} && $cf && $rtname && $directory ) {
exit;
}
+my %user_types = map { $_ => 1 } qw(
+ Owner
+ Creator
+ LastUpdatedBy
+ Requestor
+ Cc
+ AdminCc
+ AddWatcher
+ DelWatcher
+ Take
+);
+
+my %link_types = map { $_ => 1 } qw(
+ DependsOn
+ DependedOnBy
+ RefersTo
+ ReferredToBy
+ MemberOf
+ MergedInto
+ HasMember
+);
+
# clean out all the nasties from the environment..
CleanEnv();

0 comments on commit 227bd30

Please sign in to comment.
Something went wrong with that request. Please try again.