"""
Base forms for creating forms that
validate requests from BERG Cloud
"""
from django import forms

from .fields import (
    BergCloudDateTimeField
)


class BergCloudPublicationForm(forms.Form):
    """
    A form that defines the common query params passed by
    BERG Cloud whilst requesting an edition
    """
    local_delivery_time = BergCloudDateTimeField(required=False)
    delivery_count = forms.IntegerField(required=False)

    def get_meta(self):
        """
        Gets meta data for the publication
        """
        if hasattr(self, 'meta'):
            return self.meta
        raise NotImplementedError(
            'Set meta attribute on your publication form'
        )


a8bcd4a1c5819327db956c73eea6ec32fbebd943
<mask token>


class BergCloudPublicationForm(forms.Form):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class BergCloudPublicationForm(forms.Form):
    <mask token>
    local_delivery_time = BergCloudDateTimeField(required=False)
    delivery_count = forms.IntegerField(required=False)

    def get_meta(self):
        """
        Gets meta data for the publication
        """
        if hasattr(self, 'meta'):
            return self.meta
        raise NotImplementedError('Set meta attribute on your publication form'
            )

<mask token>


class BergCloudPublicationForm(forms.Form):
    """
    A form that defines the common query params passed by
    BERG Cloud whilst requesting an edition
    """
    local_delivery_time = BergCloudDateTimeField(required=False)
    delivery_count = forms.IntegerField(required=False)

    def get_meta(self):
        """
        Gets meta data for the publication
        """
        if hasattr(self, 'meta'):
            return self.meta
        raise NotImplementedError('Set meta attribute on your publication form'
            )

<mask token>
from django import forms
from .fields import BergCloudDateTimeField


class BergCloudPublicationForm(forms.Form):
    """
    A form that defines the common query params passed by
    BERG Cloud whilst requesting an edition
    """
    local_delivery_time = BergCloudDateTimeField(required=False)
    delivery_count = forms.IntegerField(required=False)

    def get_meta(self):
        """
        Gets meta data for the publication
        """
        if hasattr(self, 'meta'):
            return self.meta
        raise NotImplementedError('Set meta attribute on your publication form'
            )

"""
Base forms for creating forms that
validate requests from BERG Cloud
"""
from django import forms

from .fields import (
    BergCloudDateTimeField
)


class BergCloudPublicationForm(forms.Form):
    """
    A form that defines the common query params passed by
    BERG Cloud whilst requesting an edition
    """
    local_delivery_time = BergCloudDateTimeField(required=False)
    delivery_count = forms.IntegerField(required=False)

    def get_meta(self):
        """
        Gets meta data for the publication
        """
        if hasattr(self, 'meta'):
            return self.meta
        raise NotImplementedError(
            'Set meta attribute on your publication form'
        )

