trex-model 1.5.25__tar.gz → 1.5.26__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of trex-model might be problematic. Click here for more details.
- {trex-model-1.5.25 → trex-model-1.5.26}/PKG-INFO +1 -1
- {trex-model-1.5.25 → trex-model-1.5.26}/setup.py +1 -1
- {trex-model-1.5.25 → trex-model-1.5.26}/trex_model.egg-info/PKG-INFO +1 -1
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/marketing_models.py +17 -1
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/merchant_helpers.py +3 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/LICENSE +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/MANIFEST.in +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/README.md +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/setup.cfg +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trex_model.egg-info/SOURCES.txt +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trex_model.egg-info/dependency_links.txt +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trex_model.egg-info/requires.txt +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trex_model.egg-info/top_level.txt +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/conf.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/admin_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/analytic_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/app_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/coporate_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/customer_model_helpers.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/customer_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/fb_subsriber_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/helper/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/helper/reward_model_helpers.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/helper/reward_transaction_helper.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/import_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/inventory_model.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/loyalty_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/lucky_draw_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/membership_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/merchant_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/merchant_promotion_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/message_model_helper.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/message_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/model_decorators.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/ndb_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/pos_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/prepaid_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/product_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/program_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/rating_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/recruit_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/redeem_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/redemption_catalogue_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/referral_program_model.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/reward_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/spending_base_program_model.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/system_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/task_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/test_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/transaction_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/user_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/voucher_models.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/model_decorator.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/prepaid_helpers.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/pos_conf.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/program_conf.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/utils/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/utils/gcloud/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/utils/gcloud/datastore_util.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/utils/model/__init__.py +0 -0
- {trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/utils/model/model_util.py +0 -0
|
@@ -224,6 +224,22 @@ class MarketingImage(BaseNModel, DictModel):
|
|
|
224
224
|
|
|
225
225
|
return image_file
|
|
226
226
|
|
|
227
|
+
@staticmethod
|
|
228
|
+
def create_upload_file(image_label, image_file_storage_filename, public_url, merchant_acct, image_file_type=None):
|
|
229
|
+
logger.debug('image_file_type=%s', image_file_type)
|
|
230
|
+
|
|
231
|
+
image_file = MarketingImage(
|
|
232
|
+
parent = merchant_acct.create_ndb_key(),
|
|
233
|
+
image_label = image_label,
|
|
234
|
+
image_file_public_url = public_url,
|
|
235
|
+
image_file_storage_filename = image_file_storage_filename,
|
|
236
|
+
image_file_type = image_file_type,
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
image_file.put()
|
|
240
|
+
|
|
241
|
+
return image_file
|
|
242
|
+
|
|
227
243
|
@staticmethod
|
|
228
244
|
def remove_file(image_file, bucket):
|
|
229
245
|
|
|
@@ -331,7 +347,7 @@ class MerchantNewsFile(BaseNModel, DictModel):
|
|
|
331
347
|
|
|
332
348
|
@property
|
|
333
349
|
def news_public_url(self):
|
|
334
|
-
return '%s
|
|
350
|
+
return '%s/merchant/marketing/news/%s/show' % (MERCHANT_NEWS_BASE_URL, self.key_in_str)
|
|
335
351
|
|
|
336
352
|
@property
|
|
337
353
|
def completed_progress_in_percentage(self):
|
|
@@ -45,6 +45,9 @@ def construct_merchant_acct_info(merchant_acct):
|
|
|
45
45
|
|
|
46
46
|
if merchant_acct.published_news_configuration:
|
|
47
47
|
merchant_news_list = merchant_acct.published_news_configuration['news']
|
|
48
|
+
|
|
49
|
+
for news in merchant_news_list:
|
|
50
|
+
logger.debug('news public url=%s', news.get('news_public_url'))
|
|
48
51
|
|
|
49
52
|
published_redemption_catalogue_configuration = merchant_acct.published_redemption_catalogue_configuration
|
|
50
53
|
catalogues_list = []
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/customer_model_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/helper/reward_model_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/merchant_promotion_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/redemption_catalogue_models.py
RENAMED
|
File without changes
|
{trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/referral_program_model.py
RENAMED
|
File without changes
|
|
File without changes
|
{trex-model-1.5.25 → trex-model-1.5.26}/trexmodel/models/datastore/spending_base_program_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|