skip to navigation
skip to content

Not Logged In

dwupload 0.1.4

Demandware upload file watcher. Keeps your files in sync with your sandbox so you don't have to use Eclipse

The dwupload program is a Demandware cartridge file watcher. The script watches the file system and synchronizes files with your sandbox via webdav. The script assumes you are watching from the cartridges root path e.g. /some/path/cartridges/ this path would then contain your dw cartridges below.

The script assumes that you have all your cartridges in one folder, which may change depending on use cases. Currently for my use case our git repository contains all of our cartridges in one folder.

If the cartridge path is not set correctly the program can wipe all the files on your sandbox. To fix this simply run a clean using Demandware Studio and then try fixing the root watch path. You may also run into issues if both Demandware Studio and the dwupload script are both running, but I haven’t had a problem so far.

This script has been tested on both 10.8.5 and Windows XP/7. Your mileage may vary.

Getting Started

  • Install Python 2.7 if it’s not already installed

  • Install setuptools

  • Run python setup.py install

  • Create a configuration file there is an example in the dwupload package.
    • On unix based systems you can create .dwsettings in your home folder. This might work on windows, but has not been tested
  • If you have .dwsettings just run dwupload to start the file system watcher.
    • If you do not have .dwsettings you can specify the -c flag to supply the path to the config file
    • Alternatively you can add the DWUPLOAD_CONFIG_PATH environment variable so you do not have to specify the config path every time
  • Use dwupload -h to see the program’s help text

0.1.4 — - Added multiple configurations in one config file with section_name argument - Prompt user for password if password is not stored in config for security reasons

0.1.3 —

  • Added connection test on startup to make sure connection is working or will fail with an error

0.1.2 —

  • Fixed bug that locked files on Windows 7 preventing script from working on consecutive uploads

0.1.1 —

  • Bug fixes for url paths on Windows
  • Fixed bug not allowing config to be overridden via the command line
  • Removed logging statements

0.1

  • Initial version
 
File Type Py Version Uploaded on Size
dwupload-0.1.4.tar.gz (md5) Source 2014-07-29 5KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 18 downloads in the last week
  • 167 downloads in the last month
  • Author: Charlie Choiniere
  • Keywords: demandware
  • License:
    The MIT License (MIT)
    
    Copyright (c) 2014 Charlie Choiniere
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
  • Categories
  • Package Index Owner: nek4life
  • DOAP record: dwupload-0.1.4.xml