Commit 17bc1e5b authored by Jérome Perrin's avatar Jérome Perrin

remove methods that are no longer in use


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4234 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a7d2b50
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params></params>
# Host: localhost
# Database: coramy
# Table: 'message'
#
CREATE TABLE `message` (
`path` varchar(255) default NULL,
`method_id` varchar(40) default NULL,
`message` blob,
KEY `path` (`path`),
KEY `method_id` (`method_id`)
) TYPE=InnoDB;
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid_query </params>
DELETE FROM
catalog
WHERE
<dtml-var uid_query>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid_query </params>
DELETE FROM
movement
WHERE
<dtml-var uid_query>
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid_query </params>
DELETE FROM
stock
WHERE
<dtml-var uid_query>
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>values</params>
INSERT INTO
catalog(uid, parent_uid, path, relative_url, portal_type)
VALUES
<dtml-var values>;
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>values</params>
INSERT INTO
category(uid, base_category_uid, category_uid, category_strict_membership)
VALUES
<dtml-var values>;
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>values</params>
INSERT INTO
movement
VALUES
<dtml-var values>;
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid
getAcquiredCategoryList
getCategoryList
isMovement</params>
<dtml-if isMovement>
<dtml-if getCategoryList>
<dtml-let uid_list="portal_categories.getCategoryParentUidList(getCategoryList)">
<dtml-if uid_list>
INSERT INTO category VALUES
<dtml-in "uid_list">
(<dtml-sqlvar uid type="int">, <dtml-var "_['sequence-item'][0]" >, <dtml-var "_['sequence-item'][1]" >, <dtml-var "_['sequence-item'][2]" >)
<dtml-if
sequence-end><dtml-else>,</dtml-if>
</dtml-in>
;
<dtml-else>
INSERT INTO category VALUES (<dtml-sqlvar uid type="int">, NULL, NULL,1);
</dtml-if>
</dtml-let>
<dtml-else>
INSERT INTO category VALUES (<dtml-sqlvar uid type="int">, NULL, NULL,1);
</dtml-if>
<dtml-else>
<dtml-if getAcquiredCategoryList>
<dtml-let uid_list="portal_categories.getCategoryParentUidList(getAcquiredCategoryList)">
<dtml-if uid_list>
INSERT INTO category VALUES
<dtml-in "uid_list">
(<dtml-sqlvar uid type="int">, <dtml-var "_['sequence-item'][0]" >, <dtml-var "_['sequence-item'][1]" >, <dtml-var "_['sequence-item'][2]" >)
<dtml-if
sequence-end><dtml-else>,</dtml-if>
</dtml-in>
;
<dtml-else>
INSERT INTO category VALUES (<dtml-sqlvar uid type="int">, NULL, NULL,1);
</dtml-if>
</dtml-let>
<dtml-else>
INSERT INTO category VALUES (<dtml-sqlvar uid type="int">, NULL, NULL,1);
</dtml-if>
</dtml-if>
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid
Creator
Date
PrincipiaSearchSource
SearchableText
CreationDate
EffectiveDate
ExpiresDate
ModificationDate
Type
bobobase_modification_time
created
effective
expires
getIcon
in_reply_to
modified
review_state
summary
</params>
INSERT INTO compatibility VALUES (
<dtml-sqlvar uid type="int">,
<dtml-sqlvar Creator type="string" optional>,
<dtml-sqlvar Date type="datetime" optional>,
<dtml-sqlvar PrincipiaSearchSource type="string" optional>,
<dtml-sqlvar SearchableText type="string" optional>,
<dtml-sqlvar CreationDate type="datetime" optional>,
<dtml-sqlvar EffectiveDate type="datetime" optional>,
<dtml-sqlvar ExpiresDate type="datetime" optional>,
<dtml-sqlvar ModificationDate type="datetime" optional>,
<dtml-sqlvar Type type="string" optional>,
<dtml-sqlvar bobobase_modification_time type="datetime" optional>,
<dtml-sqlvar created type="datetime" optional>,
<dtml-sqlvar effective type="datetime" optional>,
<dtml-sqlvar expires type="datetime" optional>,
<dtml-sqlvar getIcon type="string" optional>,
<dtml-sqlvar in_reply_to type="string" optional>,
<dtml-sqlvar modified type="datetime" optional>,
<dtml-sqlvar review_state type="string" optional>,
<dtml-sqlvar summary type="string" optional>
);
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>isMovement
uid
getAggregateUidList
getDestinationUid
getDestinationSectionUid
getResourceUid
getStopDate
getVariationText</params>
<dtml-if isMovement>
<dtml-if isAccountable>
<dtml-if getAggregateUidList>
INSERT INTO item VALUES <dtml-in getAggregateUidList>(
<dtml-sqlvar uid type="int">,
<dtml-sqlvar getStopDate type="datetime" optional>,
<dtml-sqlvar getDestinationUid type="int" optional>,
<dtml-sqlvar getDestinationSectionUid type="int" optional>,
<dtml-sqlvar getResourceUid type="int" optional>,
<dtml-sqlvar sequence-item type="int" optional>,
<dtml-sqlvar getVariationText type="string" optional>
)<dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>;
</dtml-if>
</dtml-if>
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>isMovement
uid
getExplanationUid
getSourceUid
getDestinationUid
getResourceUid
getInventoriatedQuantity
getStartDate
getStopDate
getPrice
isAccountable
isOrderable
isDeliverable
isDivergent
getVariationText</params>
<dtml-if isMovement>
INSERT INTO movement VALUES (
<dtml-sqlvar uid type="int">,
<dtml-if getExplanationUid><dtml-sqlvar getExplanationUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourceUid><dtml-sqlvar getSourceUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getDestinationUid ><dtml-sqlvar getDestinationUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getResourceUid><dtml-sqlvar getResourceUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getInventoriatedQuantity><dtml-sqlvar getInventoriatedQuantity type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStartDate><dtml-sqlvar getStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getStopDate><dtml-sqlvar getStopDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if "isAccountable is not None"><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if "isOrderable is not None"><dtml-sqlvar isOrderable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if "isDeliverable is not None"><dtml-sqlvar isDeliverable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if "isDivergent is not None"><dtml-sqlvar isDivergent type="int"><dtml-else>NULL</dtml-if>,
<dtml-if "getVariationText is not None"><dtml-sqlvar getVariationText type="string"><dtml-else>NULL</dtml-if>
);
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid
isPredicate
predicate_property_dict</params>
<dtml-if isPredicate>
<dtml-if expr="predicate_property_dict.has_key('membership_criterion_category_list')">
<dtml-let uid_list="portal_categories.getCategoryParentUidList(predicate_property_dict['membership_criterion_category_list'])">
<dtml-if uid_list>
INSERT INTO predicate_category VALUES
<dtml-in "uid_list">
(<dtml-sqlvar uid type="int">, <dtml-var "_['sequence-item'][0]" >, <dtml-var "_['sequence-item'][1]" >, <dtml-var "_['sequence-item'][2]" >)
<dtml-if
sequence-end><dtml-else>,</dtml-if>
</dtml-in>
;
<dtml-else>
INSERT INTO predicate_category VALUES (<dtml-sqlvar uid type="int">, NULL, NULL,1);
</dtml-if>
</dtml-let>
<dtml-else>
INSERT INTO predicate_category VALUES (<dtml-sqlvar uid type="int">, NULL, NULL,1);
</dtml-if>
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>security_uid
optimised_roles_and_users</params>
<dtml-if optimised_roles_and_users>
INSERT INTO roles_and_users VALUES
<dtml-in optimised_roles_and_users>
(<dtml-sqlvar security_uid type="int">, <dtml-sqlvar sequence-item type=string>)
<dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in>
;
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid
getResourceUid
getInventoriatedQuantity
getSourceUid
getDestinationUid
getSourceSectionUid
getDestinationSectionUid
isMovement
getSourcePaymentUid
getDestinationPaymentUid
getSourceFunctionUid
getDestinationFunctionUid
getSourceProjectUid
getDestinationProjectUid
getSimulationState
getPrice
getStartDate
getStopDate
isAccountable
getPortalType
getVariationText</params>
<dtml-if isMovement>
<dtml-if getResourceUid>
<dtml-if getDestinationUid>
INSERT INTO
stock
VALUES
(
<dtml-sqlvar uid type="int">,
<dtml-sqlvar getDestinationUid type="int">,
<dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getDestinationPaymentUid><dtml-sqlvar getDestinationPaymentUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getDestinationFunctionUid><dtml-sqlvar getDestinationFunctionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getDestinationProjectUid><dtml-sqlvar getDestinationProjectUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-sqlvar getResourceUid type="int">,
<dtml-if getInventoriatedQuantity><dtml-sqlvar "getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStopDate><dtml-sqlvar getStopDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>,
<dtml-if getSimulationState><dtml-sqlvar getSimulationState type="string"><dtml-else>NULL</dtml-if>,
<dtml-if "getVariationText is not None"><dtml-sqlvar getVariationText type="string"><dtml-else>NULL</dtml-if>
)
<dtml-if getSourceUid>
,
(
<dtml-sqlvar uid type="int">,
<dtml-sqlvar getSourceUid type="int">,
<dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourcePaymentUid><dtml-sqlvar getSourcePaymentUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourceFunctionUid><dtml-sqlvar getSourceFunctionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourceProjectUid><dtml-sqlvar getSourceProjectUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-sqlvar getResourceUid type="int">,
<dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStartDate><dtml-sqlvar getStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>,
<dtml-if getSimulationState><dtml-sqlvar getSimulationState type="string"><dtml-else>NULL</dtml-if>,
<dtml-if "getVariationText is not None"><dtml-sqlvar getVariationText type="string"><dtml-else>NULL</dtml-if>
)
</dtml-if>
<dtml-else>
<dtml-if getSourceUid>
INSERT INTO
stock
VALUES
(
<dtml-sqlvar uid type="int">,
<dtml-sqlvar getSourceUid type="int">,
<dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourcePaymentUid><dtml-sqlvar getSourcePaymentUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourceFunctionUid><dtml-sqlvar getSourceFunctionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getSourceProjectUid><dtml-sqlvar getSourceProjectUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-sqlvar getResourceUid type="int">,
<dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStartDate><dtml-sqlvar getStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>,
<dtml-if getSimulationState><dtml-sqlvar getSimulationState type="string"><dtml-else>NULL</dtml-if>,
<dtml-if "getVariationText is not None"><dtml-sqlvar getVariationText type="string"><dtml-else>NULL</dtml-if>
)
</dtml-if>
</dtml-if>
</dtml-if>
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid
Subject</params>
<dtml-if Subject>
INSERT INTO subject VALUES
<dtml-try>
<dtml-in "Subject.split()">
(<dtml-sqlvar uid type="int">, <dtml-sqlvar sequence-item
type=string>)<dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in>
;
<dtml-except>
<dtml-in Subject>
(<dtml-sqlvar uid type="int">, <dtml-sqlvar sequence-item
type=string>)<dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in>
;
</dtml-try>
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>isDelivery
uid
getSourceUid
getDestinationUid
getSourceSectionUid
getDestinationSectionUid
getResourceUid
getStartDate
getStartDateRangeMin
getStartDateRangeMax
getStopDate
getStopDateRangeMin
getStopDateRangeMax
insert_line</params>
<dtml-if insert_line>
INSERT INTO delivery(uid) VALUES (<dtml-sqlvar uid type="int">);
<dtml-var "'\0'">
</dtml-if>
<dtml-if isDelivery>
UPDATE delivery SET
uid=<dtml-sqlvar uid type="int">,
source_uid=<dtml-sqlvar getSourceUid type="int" optional>,
destination_uid=<dtml-sqlvar getDestinationUid type="int" optional>,
source_section_uid=<dtml-sqlvar getSourceSectionUid type="int" optional>,
destination_section_uid=<dtml-sqlvar getDestinationSectionUid type="int" optional>,
resource_uid=<dtml-sqlvar getResourceUid type="int" optional>,
start_date=<dtml-sqlvar getStartDate type="datetime" optional>,
start_date_range_min=<dtml-sqlvar getStartDateRangeMin type="datetime" optional>,
start_date_range_max=<dtml-sqlvar getStartDateRangeMax type="datetime" optional>,
stop_date=<dtml-sqlvar getStopDate type="datetime" optional>,
stop_date_range_min=<dtml-sqlvar getStopDateRangeMin type="datetime" optional>,
stop_date_range_max=<dtml-sqlvar getStopDateRangeMax type="datetime" optional>
WHERE <dtml-sqltest uid op=eq type=int>
</dtml-if>
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>uid
security_uid
getPath
getRelativeUrl
getParentUid
id
getDescription
getTitle
meta_type
getPortalType
opportunity_state
getEan13Code
getSimulationState
causality_state
invoice_state
validation_state
payment_state
event_state
getReference
getGroupingReference
getSourceReference
getDestinationReference
getStringIndex
getIntIndex
getFloatIndex
getCorporateRegistrationCode
insert_catalog_line
hasCellContent</params>
<dtml-if insert_catalog_line>
INSERT INTO catalog(uid) VALUES (<dtml-sqlvar uid type="int">);
<dtml-var "'\0'">
</dtml-if>
UPDATE catalog SET uid=<dtml-sqlvar uid type="int">,
security_uid=<dtml-sqlvar security_uid type="int">,
path=<dtml-sqlvar getPath type="string">,
relative_url=<dtml-sqlvar getRelativeUrl type="string">,
parent_uid=<dtml-sqlvar getParentUid type="int" optional>,
id=<dtml-sqlvar id type="string" optional>,
description=<dtml-sqlvar getDescription type="string" optional>,
title=<dtml-sqlvar getTitle type="string" optional>,
meta_type=<dtml-sqlvar meta_type type="string" optional>,
portal_type=<dtml-sqlvar getPortalType type="string" optional>,
opportunity_state=<dtml-sqlvar opportunity_state type="string" optional>,
corporate_registration_code=<dtml-sqlvar getCorporateRegistrationCode type="string" optional>,
ean13_code=<dtml-sqlvar getEan13Code type="string" optional>,
validation_state=<dtml-sqlvar validation_state type="string" optional>,
simulation_state=<dtml-sqlvar getSimulationState type="string" optional>,
causality_state=<dtml-sqlvar causality_state type="string" optional>,
payment_state=<dtml-sqlvar payment_state type="string" optional>,
event_state=<dtml-sqlvar event_state type="string" optional>,
invoice_state=<dtml-sqlvar invoice_state type="string" optional>,
reference=<dtml-sqlvar getReference type="string" optional>,
grouping_reference=<dtml-sqlvar getGroupingReference type="string" optional>,
source_reference=<dtml-sqlvar getSourceReference type="string" optional>,
destination_reference=<dtml-sqlvar getDestinationReference type="string" optional>,
string_index=<dtml-sqlvar getStringIndex type="string" optional>,
int_index=<dtml-sqlvar getIntIndex type="int" optional>,
float_index=<dtml-sqlvar getFloatIndex type="float" optional>,
has_cell_content=<dtml-sqlvar hasCellContent type="int" optional>
WHERE <dtml-sqltest uid op=eq type=int>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment